------- Comment #5 from ro at techfak dot uni-bielefeld dot de 2009-04-27 13:35 ------- Subject: Re: [4.5 Regression]: build breakage for cris-elf building libstdc++-v3
ebotcazou at gcc dot gnu dot org writes: > The revision corresponding to the fix for the PR should bootstrap. Indeed it does. Starting from there (and the fact that insert_partition_copy_on_edge occurs in the cc1 stacktrace), I could identify this patch as the culprit: 2009-04-26 Michael Matz <m...@suse.de> Expand from SSA. The ICE occurs while building the sparcv9 libgcc: % cc1 libgcc2.i -mptr64 -mstack-bias -mno-v8plus -mcpu=v9 -m64 -auxbase-strip _absvsi2.o -O2 -fPIC __absvdi2 __absvsi2 Analyzing compilation unit Performing interprocedural optimizations <visibility> <early_local_cleanups> <summary generate> <cp> <inline> <static-var> <pure-const>Assembling functions: __absvsi2 /vol/gcc/src/gcc-dist/libgcc/../gcc/libgcc2.c: In function '__absvsi2': /vol/gcc/src/gcc-dist/libgcc/../gcc/libgcc2.c:240: internal compiler error: in emit_move_insn, at expr.c:3387 I get the following cc1 stacktrace: Breakpoint 1, fancy_abort (file=0xdf8758 "/vol/gcc/src/gcc-dist/gcc/expr.c", line=3387, function=0xdf8af8 "emit_move_insn") at /vol/gcc/src/gcc-dist/gcc/diagnostic.c:724 (gdb) where #0 fancy_abort (file=0xdf8758 "/vol/gcc/src/gcc-dist/gcc/expr.c", line=3387, function=0xdf8af8 "emit_move_insn") at /vol/gcc/src/gcc-dist/gcc/diagnostic.c:724 #1 0x003cbf18 in emit_move_insn (x=0xff0b3f80, y=0xff11a048) at /vol/gcc/src/gcc-dist/gcc/expr.c:3386 #2 0x00cfe0c4 in insert_partition_copy_on_edge (e=0xff1d09f0, dest=3, src=0) at /vol/gcc/src/gcc-dist/gcc/tree-outof-ssa.c:155 #3 0x00cfff0c in elim_create (g=0xf79ae0, T=3) at /vol/gcc/src/gcc-dist/gcc/tree-outof-ssa.c:542 #4 0x00d00434 in eliminate_phi (e=0xff1d09f0, g=0xf79ae0) at /vol/gcc/src/gcc-dist/gcc/tree-outof-ssa.c:583 #5 0x00d01480 in expand_phi_nodes (sa=0xf3bb5c) at /vol/gcc/src/gcc-dist/gcc/tree-outof-ssa.c:756 #6 0x00c129ac in gimple_expand_cfg () at /vol/gcc/src/gcc-dist/gcc/cfgexpand.c:2505 #7 0x00662284 in execute_one_pass (pass=0xe9c7f8) at /vol/gcc/src/gcc-dist/gcc/passes.c:1286 #8 0x00662638 in execute_pass_list (pass=0xe9c7f8) at /vol/gcc/src/gcc-dist/gcc/passes.c:1335 #9 0x00866fc4 in tree_rest_of_compilation (fndecl=0xff0dc180) at /vol/gcc/src/gcc-dist/gcc/tree-optimize.c:394 #10 0x00afe8a4 in cgraph_expand_function (node=0xfef8ea00) at /vol/gcc/src/gcc-dist/gcc/cgraphunit.c:1051 #11 0x00afeb40 in cgraph_expand_all_functions () at /vol/gcc/src/gcc-dist/gcc/cgraphunit.c:1110 #12 0x00aff39c in cgraph_optimize () at /vol/gcc/src/gcc-dist/gcc/cgraphunit.c:1324 #13 0x001267a8 in c_write_global_declarations () at /vol/gcc/src/gcc-dist/gcc/c-decl.c:8306 #14 0x007c4750 in compile_file () at /vol/gcc/src/gcc-dist/gcc/toplev.c:988 #15 0x007c7a5c in do_compile () at /vol/gcc/src/gcc-dist/gcc/toplev.c:2248 #16 0x007c7b80 in toplev_main (argc=11, argv=0xffbff604) at /vol/gcc/src/gcc-dist/gcc/toplev.c:2293 #17 0x00213aa4 in main (argc=11, argv=0xffbff604) at /vol/gcc/src/gcc-dist/gcc/main.c:35 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39927