From 7441c9283250d6da7e952b439897dfa80a8ce94d Mon Sep 17 00:00:00 2001 From: Doug Ambrisko Date: Fri, 7 Oct 2005 21:54:29 +0000 Subject: 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 --- net/etherboot/files/patch-gcc34 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 net/etherboot/files/patch-gcc34 (limited to 'net/etherboot/files') diff --git a/net/etherboot/files/patch-gcc34 b/net/etherboot/files/patch-gcc34 new file mode 100644 index 000000000000..4de58d6c5bfe --- /dev/null +++ b/net/etherboot/files/patch-gcc34 @@ -0,0 +1,27 @@ +--- ./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+= -- cgit v1.2.3