http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46511
Summary: [4.6 Regression] Bootstrap failure: ICE in decide_is_variable_needed, at varpool.c:338 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: domi...@lps.ens.fr CC: j...@suse.cz Host: *-apple-darwin* Target: *-apple-darwin* Build: *-apple-darwin* Created attachment 22426 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22426 preprocessed file barrier.i The assert introduced at revision 166812 triggers on *-apple-darwin*: [macbook] x86_64-apple-darwin10.5.0/libgomp% /opt/gcc/build_w/gcc/xgcc -B/opt/gcc/build_w/gcc/ -I. -I../../../work/libgomp -I../../../work/libgomp/config/posix ../../../work/libgomp/barrier.c ../../../work/libgomp/barrier.c:41:1: internal compiler error: in decide_is_variable_needed, at varpool.c:338 (see also http://gcc.gnu.org/ml/gcc-regression/2010-11/msg00205.html for powerpc-apple-darwin9). The backtrace is #0 fancy_abort (file=0x100e4b6c2 "../../work/gcc/varpool.c", line=338, function=0x100e4b7d3 "decide_is_variable_needed") at ../../work/gcc/diagnostic.c:893 #1 0x0000000100d49cd1 in decide_is_variable_needed (node=0x142d0b6e8, decl=0x142ddfaa0) at ../../work/gcc/varpool.c:338 #2 0x0000000100d4a240 in varpool_finalize_decl (decl=0x142ddfaa0) at ../../work/gcc/varpool.c:421 #3 0x00000001009dfdbb in new_emutls_decl (decl=0x142d088c0) at ../../work/gcc/tree-emutls.c:327 #4 0x00000001009e19ce in ipa_lower_emutls () at ../../work/gcc/tree-emutls.c:723 #5 0x000000010084e9ae in execute_one_pass (pass=0x1010a9400) at ../../work/gcc/passes.c:1560 #6 0x000000010084f9bf in execute_ipa_pass_list (pass=0x1010a9400) at ../../work/gcc/passes.c:1927 #7 0x0000000100cdebc9 in ipa_passes () at ../../work/gcc/cgraphunit.c:1696 #8 0x0000000100cdedac in cgraph_optimize () at ../../work/gcc/cgraphunit.c:1765 #9 0x0000000100cdc149 in cgraph_finalize_compilation_unit () at ../../work/gcc/cgraphunit.c:1017 #10 0x000000010003082d in c_write_global_declarations () at ../../work/gcc/c-decl.c:9837 #11 0x0000000100968d52 in compile_file () at ../../work/gcc/toplev.c:885 #12 0x000000010096be68 in do_compile () at ../../work/gcc/toplev.c:2319 #13 0x000000010096bfb0 in toplev_main (argc=4, argv=0x7fff5fbfda78) at ../../work/gcc/toplev.c:2380 #14 0x00000001001151dc in main (argc=4, argv=0x7fff5fbfda78) at ../../work/gcc/main.c:36 Note that I have bootstrapped gcc+gfortran with --enable-checking=release after having commented out the assert.