NetBSD-Bugs archive

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

Re: toolchain/48026: devel/bison crashes on earm because of compilerbug



The following reply was made to PR toolchain/48026; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: mlelstv%serpens.de@localhost
Cc: gnats-bugs%NetBSD.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: toolchain/48026: devel/bison crashes on earm because of compilerbug
Date: Tue, 9 Jul 2013 00:09:17 +0900

 mlelstv@ wrote:
 
 > > >  pkgsrc/devel/bison/hacks.mk already has the following lines:
 > > >  ---
 > > >  ### gcc-4.5.3 in NetBSD/arm 5.99.59 also breaks bison in net/libIDL.
 > > >  ### -O seems enough for workaround in this case.
 > > >  .if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) && 
 > > > !empty(CC_VERSION:Mgcc-4.5.*)
 > > >  PKG_HACKS+=             optimisation
 > > >  BUILDLINK_TRANSFORM+=   rename:-O[0-9]*:-O
 > > >  .endif
 > > 
 > > I included MACHINE_PLATFORM:MNetBSD-*-earm, and the bison compiled
 > > with just -O does not crash.
 > 
 > The same problem exists for graphics/png. The hack that disables the
 > optimization should probably always match for arm and earm platforms
 > until the compiler bug is fixed.
 
 I wonder which is better:
 (1) disable -fipa-sra by default in src/external/gpl3/gcc/dist/gcc/opts.c
 (2) set "DBG?= -O2 -fno-ipa-sra" in src/share/mk/sys.mk
     in case of ${MACHINE_CPU} == arm
 
 gcc also has a bug ticket "IPA-SRA decreases quality of debug info"
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47858
 and opensuse had a patch that disabled -fipa-sra on gcc-4.5.x to avoid it:
 http://lists.opensuse.org/archive/opensuse-commit/2010-05/msg00505.html
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index