freebsd-ports/net/etherboot/files/patch-gcc34
Doug Ambrisko 7441c92832 From the PR:
Without this patch GCC optimizer removes all card driver code
  resulting in nonworking rom image.

  There are some bugs in GCC-3.4.2, maybe updating system compiler to latest
  gcc snapshot will be good idea also.

This still occurs in 7-current gcc version 3.4.4 [FreeBSD] 20050518.
So adding in the patch.

PR:	78834
Submitted by:	Radim Kolar
2005-10-07 21:54:29 +00:00

27 lines
903 B
Text

--- ./arch/i386/Config.orig Mon Feb 23 02:26:09 2004
+++ ./arch/i386/Config Wed Feb 2 17:32:30 2005
@@ -101,11 +101,11 @@
# LCONFIG+= -DBBS_BUT_NOT_PNP_COMPLIANT
# LCONFIG+= -DBOOT_INT18H
-CFLAGS+= -fstrength-reduce -fomit-frame-pointer -mcpu=i386 -march=i386
+CFLAGS+= -fstrength-reduce -fomit-frame-pointer -march=i386
# Squeeze the code in as little space as possible.
# These old options generate warnings from gcc 3.3,
# but I can't get rid of them until everybody upgrades
-CFLAGS+= -malign-jumps=1 -malign-loops=1 -malign-functions=1
+CFLAGS+= -falign-jumps=1 -falign-loops=1 -falign-functions=1
LDFLAGS+= -N -Ttext $(RELOCADDR)
--- ./Config.orig Wed Feb 2 17:30:16 2005
+++ ./Config Wed Feb 2 17:30:27 2005
@@ -327,7 +327,7 @@
RANLIB= ranlib
OBJCOPY= objcopy
-CFLAGS+= -Os -ffreestanding
+CFLAGS+= -O -ffreestanding
CFLAGS+= -Wall -W -Wno-format
ASFLAGS+=
LDFLAGS+=