Date: Sun, 13 Mar 2005 18:58:37 +0100 From: Radim Kolar <hsn@netmag.cz> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ambrisko@FreeBSD.org Subject: ports/78834: [PATCH] net/etherboot: gcc-3.4 fix Message-ID: <E1DAXML-0004Aj-SQ@sanatana.dharma> Resent-Message-ID: <200503141750.j2EHo2sr045020@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 78834 >Category: ports >Synopsis: [PATCH] net/etherboot: gcc-3.4 fix >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 14 17:50:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Radim Kolar >Release: FreeBSD 5.4-PRERELEASE i386 >Organization: Sanatana Dharma >Environment: System: FreeBSD sanatana.dharma 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #7: Sat Mar 12 12:08:42 CET 2005 >Description: 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. Added file(s): - files/patch-gcc34 Port maintainer (ambrisko@freebsd.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- etherboot-5.2.4_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/net/etherboot/files/patch-gcc34 /home/hsn/hacked/etherboot/files/patch-gcc34 --- /usr/ports/net/etherboot/files/patch-gcc34 Thu Jan 1 01:00:00 1970 +++ /home/hsn/hacked/etherboot/files/patch-gcc34 Wed Feb 2 17:50:14 2005 @@ -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+= --- etherboot-5.2.4_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1DAXML-0004Aj-SQ>