http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53522
Bug #: 53522 Summary: [4.8 Summary] Bootstrap is broken for x86_64-apple-darwin10 at r187977 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: domi...@lps.ens.fr CC: ia...@gcc.gnu.org, rgue...@gcc.gnu.org Host: x86_64-apple-darwin10 Target: x86_64-apple-darwin10 Build: x86_64-apple-darwin10 Created attachment 27517 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27517 preprocessed source Bootstrap fails on x86_64-apple-darwin10 at revision 187977: ... libtool: compile: /opt/gcc/build_w/./gcc/g++ -B/opt/gcc/build_w/./gcc/ -nostdinc++ -nostdinc++ -I/opt/gcc/build_w/x86_64-apple-darwin10.8.0/libstdc++-v3/include/x86_64-apple-darwin10.8.0 -I/opt/gcc/build_w/x86_64-apple-darwin10.8.0/libstdc++-v3/include -I/opt/gcc/work/libstdc++-v3/libsupc++ -I/opt/gcc/work/libstdc++-v3/include/backward -I/opt/gcc/work/libstdc++-v3/testsuite/util -L/opt/gcc/build_w/x86_64-apple-darwin10.8.0/libstdc++-v3/src -L/opt/gcc/build_w/x86_64-apple-darwin10.8.0/libstdc++-v3/src/.libs -B/opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/bin/ -B/opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/lib/ -isystem /opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/include -isystem /opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/sys-include -DHAVE_CONFIG_H -I. -I../../../work/libitm -I../../../work/libitm/config/x86 -I../../../work/libitm/config/posix -I../../../work/libitm/config/generic -I../../../work/libitm -Wall -pthread -Werror -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -fabi-version=4 -g -O2 -MT alloc_c.lo -MD -MP -MF .deps/alloc_c.Tpo -c ../../../work/libitm/alloc_c.cc -fno-common -DPIC -o .libs/alloc_c.o ../../../work/libitm/alloc_c.cc: In function 'void _ITM_free(void*)': ../../../work/libitm/alloc_c.cc:72:1: internal compiler error: in add_referenced_var_1, at tree-dfa.c:568 } // extern "C" The ICE occurs in the assert introduced in r187955. The preprocessed source is attached and generate the error when compiled with /opt/gcc/build_w/gcc/cc1plus -nostdinc++ -DHAVE_CONFIG_H -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -fabi-version=4 -g -O2 alloc_c.ii -fno-common -DPIC The backtrace is #0 fancy_abort (file=0x100c06c63 "../../work/gcc/tree-dfa.c", line=568, function=0x100cd70c0 "add_referenced_var_1") at ../../work/gcc/diagnostic.c:1010 #1 0x00000001008ba3f0 in add_referenced_var_1 (var=<value optimized out>, fn=<value optimized out>) at ../../work/gcc/tree-dfa.c:566 #2 0x00000001008ce8e5 in lower_emutls_1 (ptr=<value optimized out>, walk_subtrees=<value optimized out>, cb_data=<value optimized out>) at ../../work/gcc/tree-emutls.c:437 #3 0x0000000100ab2f64 in walk_tree_1 (tp=<value optimized out>, func=<value optimized out>, data=<value optimized out>, pset=<value optimized out>, lh=<value optimized out>) at ../../work/gcc/tree.c:10548 #4 0x0000000100ab3a2b in walk_tree_1 (tp=<value optimized out>, func=<value optimized out>, data=<value optimized out>, pset=<value optimized out>, lh=<value optimized out>) at ../../work/gcc/tree.c:10804 #5 0x000000010063aabe in walk_gimple_op (stmt=<value optimized out>, callback_op=<value optimized out>, wi=<value optimized out>) at ../../work/gcc/gimple.c:1445 #6 0x00000001008ce284 in ipa_lower_emutls () at ../../work/gcc/tree-emutls.c:571 #7 0x00000001007aa819 in execute_one_pass (pass=<value optimized out>) at ../../work/gcc/passes.c:2182 #8 0x00000001007ab0d2 in execute_ipa_pass_list (pass=<value optimized out>) at ../../work/gcc/passes.c:2549 #9 0x00000001004aa22e in compile () at ../../work/gcc/cgraphunit.c:1844 #10 0x00000001004aaa1f in finalize_compilation_unit () at ../../work/gcc/cgraphunit.c:2095 #11 0x00000001000f4b4b in cp_write_global_declarations () at ../../work/gcc/cp/decl2.c:4023 #12 0x000000010086d1ba in toplev_main (argc=13, argv=0x7fff5fbfd720) at ../../work/gcc/toplev.c:567 #13 0x0000000100001af4 in start ()