http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50768
Bug #: 50768
Summary: [4.7 Regression] ICE: in execute_todo, at
passes.c:1731 with -O2 -ftracer
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 25532
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25532
reduced testcase
Compiler output:
$ gcc -O2 -ftracer testcase.c
testcase.c: In function 'test1':
testcase.c:5:1: internal compiler error: in execute_todo, at passes.c:1731
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
(gdb) bt
#0 fancy_abort (file=0x1266d78 "/mnt/svn/gcc-trunk/gcc/passes.c", line=1731,
function=0x1267329 "execute_todo")
at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1 0x00000000008e1c9d in execute_todo (flags=32768) at
/mnt/svn/gcc-trunk/gcc/passes.c:1731
#2 0x00000000008e4dea in execute_one_pass (pass=0x179e2a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2087
#3 0x00000000008e50e5 in execute_pass_list (pass=0x179e2a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2119
#4 0x0000000000a3c12e in tree_rest_of_compilation (fndecl=0x7ffff5688b00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:420
#5 0x00000000006938ba in cgraph_expand_function (node=0x7ffff55886c0) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1804
#6 0x000000000069580c in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1871
#7 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2148
#8 0x0000000000695bfa in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1312
#9 0x0000000000578933 in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9940
#10 0x00000000009da244 in compile_file (argc=14, argv=0x7fffffffdaf8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:581
#11 do_compile (argc=14, argv=0x7fffffffdaf8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1925
#12 toplev_main (argc=14, argv=0x7fffffffdaf8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2001
#13 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6
#14 0x000000000055c399 in _start ()
Tested revisions:
r180072 - crash
r179959 - crash
r178498 - OK