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

Bug#635153: g++-4.6: ICE on ia64 when building iceweasel 5.0-4



This is still a problem on gcc 4.6.3(-12). I am able to successfully compile the given test code with gcc 4.7.2 though: 

figgles@itanic:~$ g++-4.7 bug635153.c -fvisibility=hidden -fno-exceptions -g -Os -c

Also, it appears that the combination of flags has an effect on producing the ICE.

figgles@itanic:~$ g++ bug635153.c -fvisibility=hidden -fno-exceptions -g -Os -c
In file included from nsRuleNode.cpp:82:0:
CSSCalc.h: In function 'typename CalcOps::result_type mozilla::css::ComputeCalc(const typename CalcOps::input_type&, CalcOps&) [with CalcOps = CalcLengthCalcOps, typename CalcOps::result_type = int, typename CalcOps::input_type = nsCSSValue]':
CSSCalc.h:144:1: internal compiler error: in dwarf2out_cfi_begin_epilogue, at dwarf2out.c:3015
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
^C
figgles@itanic:~$ g++ bug635153.c -fvisibility=hidden -fno-exceptions -Os -c
figgles@itanic:~$ g++ bug635153.c  -fno-exceptions -g -Os -c
figgles@itanic:~$ g++ bug635153.c -fvisibility=hidden -fno-exceptions -g -c

In other words:


With "-Os -g -fvisibility=hidden" -> CRASH
With "-Os -fvisibility=hidden" -> OK
With "-Os -g" -> OK
With "-g -fvisibility=hidden" -> OK

Apparenly when "-Os" is enabled AND *both* "-g" and "-fvisibility=hidden" are enabled, THEN you get a crash. Using "-Os" with only one of "-g" and "-fvisibility=hidden" will successfully compile it.

Patrick

Reply to: