pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46356: lang/gcc46: patch for NetBSD current i386



>Number:         46356
>Category:       pkg
>Synopsis:       lang/gcc46: patch for NetBSD current i386
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 19 06:55:00 +0000 2012
>Originator:     Kai-Uwe Eckhardt
>Release:        6.0_BETA (GENERIC) i386 (from 20120714)
>Organization:
>Environment:
NetBSD 6.0_BETA (GENERIC) i386
>Description:
Building lang/gcc46 on NetBSB current i386 fails due to a bug in
gcc-4.5 while building libiberty/physmem.c (see toolchain/45673 for
details).
>How-To-Repeat:
Build lang/gcc46 on NetBSD current (6.0, 6.99 and older ones with
gcc-4.5 as system compiler). 
>Fix:
Changing -g to -g -O2 emits the correct assembler code for i386.
It builds and and gives good testresults with the following patch
file patches/patch-libiberty_Makefile.in :

$NetBSD$

--- libiberty/Makefile.in.orig  2012-04-18 13:01:41.000000000 +0000
+++ libiberty/Makefile.in
@@ -908,7 +908,7 @@ $(CONFIGURED_OFILES): stamp-picdir
 ./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
        $(INCDIR)/libiberty.h
        if [ x"$(PICFLAG)" != x ]; then \
-         $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
+         $(COMPILE.c) $(PICFLAG) -g -O2 $(srcdir)/physmem.c -o pic/$@; \
        else true; fi
        $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
 



Home | Main Index | Thread Index | Old Index