http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53850
Bug #: 53850
Summary: [4.8 Regression] ICE: in expand_call_tm, at
trans-mem.c:2289 with -fgnu-tm -O3
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 27741
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27741
reduced testcase
Compiler flags:
-fgnu-tm -O3
or
-fgnu-tm -O2 -ftree-loop-distribute-patterns
Compiler output:
$ gcc -fgnu-tm -O2 -ftree-loop-distribute-patterns testcase.c
testcase.c: In function 'foo':
testcase.c:4:1: internal compiler error: in expand_call_tm, at trans-mem.c:2289
foo (void)
^
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=0x12277d0 "/mnt/svn/gcc-trunk/gcc/trans-mem.c",
line=2289, function=0x1228230 "expand_call_tm")
at /mnt/svn/gcc-trunk/gcc/diagnostic.c:1010
#1 0x0000000000a02b6a in expand_call_tm (gsi=0x7fffffffd410, region=0x194b820)
at /mnt/svn/gcc-trunk/gcc/trans-mem.c:2289
#2 expand_block_tm (bb=<optimized out>, region=0x194b820) at
/mnt/svn/gcc-trunk/gcc/trans-mem.c:2379
#3 execute_tm_mark () at /mnt/svn/gcc-trunk/gcc/trans-mem.c:2519
#4 0x000000000090c7d5 in execute_one_pass (pass=0x1757ac0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2165
#5 0x000000000090cb95 in execute_pass_list (pass=0x1757ac0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2220
#6 0x000000000090cba7 in execute_pass_list (pass=0x1757b20) at
/mnt/svn/gcc-trunk/gcc/passes.c:2221
#7 0x00000000006b7f98 in expand_function (node=0x7ffff6cef750) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1615
#8 0x00000000006b9d74 in expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1720
#9 compile () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2018
#10 0x00000000006ba335 in finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:2095
#11 0x000000000059bb10 in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c/c-decl.c:10116
#12 0x00000000009f6ff5 in compile_file () at
/mnt/svn/gcc-trunk/gcc/toplev.c:564
#13 0x00000000009f8b98 in do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1867
#14 toplev_main (argc=16, argv=0x7fffffffd6c8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1943
#15 0x00007ffff6f052ad in __libc_start_main () from /lib64/libc.so.6
#16 0x000000000057ef11 in _start ()
Tested revisions:
r189246 - crash
4.7 r188682 - OK