http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51130
Bug #: 51130 Summary: ICE: in create_tmp_var, at gimplify.c:468 with -fgnu-tm and __transaction_atomic Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz CC: amacl...@redhat.com Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 25819 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25819 reduced testcase Compiler output: $ gcc -fgnu-tm testcase.C testcase.C: In function 'void foo()': testcase.C:9:1: internal compiler error: in create_tmp_var, at gimplify.c:468 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=0x142dbe0 "/mnt/svn/gcc-trunk/gcc/gimplify.c", line=468, function=0x142eae3 "create_tmp_var") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898 #1 0x00000000009a58a4 in create_tmp_var (type=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:468 #2 0x00000000009b814b in create_tmp_from_val (val=0x7ffff570f1b0, pre_p=0x7fffffffd6d8, post_p=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:498 #3 lookup_tmp_var (val=0x7ffff570f1b0, pre_p=0x7fffffffd6d8, post_p=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:515 #4 internal_get_tmp_var (val=0x7ffff570f1b0, pre_p=0x7fffffffd6d8, post_p=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:584 #5 0x00000000009a7b21 in gimplify_expr (expr_p=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:7694 #6 0x00000000009b85b2 in gimplify_addr_expr (expr_p=0x7fffffffd648, pre_p=0x7fffffffd6d8, post_p=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:4904 #7 0x00000000009a8d6b in gimplify_expr (expr_p=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:6916 #8 0x00000000009bdf31 in force_gimple_operand_1 (expr=0x7ffff570c7d0, stmts=0x7fffffffd6d8, gimple_test_f=0x982b10 <is_gimple_val(tree)>, var=0x0) at /mnt/svn/gcc-trunk/gcc/gimplify.c:8351 #9 0x00000000009be0d3 in force_gimple_operand_gsi_1 (gsi=0x7fffffffd7c0, expr=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/gimplify.c:8391 #10 0x0000000000b681c9 in expand_assign_tm (region=0x1bc21b0, gsi=0x7fffffffd7c0) at /mnt/svn/gcc-trunk/gcc/trans-mem.c:2173 #11 0x0000000000b6dacf in expand_block_tm () at /mnt/svn/gcc-trunk/gcc/trans-mem.c:2324 #12 execute_tm_mark () at /mnt/svn/gcc-trunk/gcc/trans-mem.c:2436 #13 0x0000000000a6d8a8 in execute_one_pass (pass=0x1995e40) at /mnt/svn/gcc-trunk/gcc/passes.c:2074 #14 0x0000000000a6dc15 in execute_pass_list (pass=0x1995e40) at /mnt/svn/gcc-trunk/gcc/passes.c:2129 #15 0x0000000000a6dc27 in execute_pass_list (pass=0x1995ea0) at /mnt/svn/gcc-trunk/gcc/passes.c:2130 #16 0x0000000000bcef9e in tree_rest_of_compilation (fndecl=0x7ffff56fd500) at /mnt/svn/gcc-trunk/gcc/tree-optimize.c:420 #17 0x000000000082458a in cgraph_expand_function (node=0x7ffff5587a20) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1819 #18 0x000000000082678a in cgraph_output_in_order () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1984 #19 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2192 #20 0x0000000000826a6a in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1327 #21 0x0000000000647d3b in cp_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/cp/decl2.c:4050 #22 0x0000000000b62874 in compile_file (argc=14, argv=0x7fffffffdae8) at /mnt/svn/gcc-trunk/gcc/toplev.c:581 #23 do_compile (argc=14, argv=0x7fffffffdae8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1931 #24 toplev_main (argc=14, argv=0x7fffffffdae8) at /mnt/svn/gcc-trunk/gcc/toplev.c:2007 #25 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6 #26 0x000000000056bca9 in _start () Tested revisions: r181296 - crash