[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 --- Comment #8 from Michael Matz matz at gcc dot gnu.org 2011-11-22 14:56:03 UTC --- Author: matz Date: Tue Nov 22 14:55:58 2011 New Revision: 181619 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=181619 Log: PR other/51125 * trans-mem.c (expand_block_tm): Ignore clobbers. Modified: trunk/gcc/ChangeLog trunk/gcc/trans-mem.c
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 Michael Matz matz at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #9 from Michael Matz matz at gcc dot gnu.org 2011-11-22 14:57:54 UTC --- Fixed. (As per http://gcc.gnu.org/ml/gcc-patches/2011-11/msg02169.html an optimization opportunity remains)
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 --- Comment #6 from Michael Matz matz at gcc dot gnu.org 2011-11-21 13:28:08 UTC --- Yes, the patch submission to the mailing list was incorrect and contained a non-intended change. The patch as committed and ChangeLogged is correct. Aldy: yes, I'm taking a peek.
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 Michael Matz matz at gcc dot gnu.org changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #7 from Michael Matz matz at gcc dot gnu.org 2011-11-21 16:25:34 UTC --- *** Bug 51130 has been marked as a duplicate of this bug. ***
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 --- Comment #5 from Patrick Marlier patrick.marlier at gmail dot com 2011-11-19 17:42:20 UTC --- ** NOT RELATED TO BUG ** In http://gcc.gnu.org/ml/gcc-patches/2011-11/msg00969.html, the patch shows changes to tree-ssa-reassoc.c but not committed or part of Changelog. But the problem is definitely not here. Patrick. Index: tree-ssa-reassoc.c === --- tree-ssa-reassoc.c.orig2011-11-07 15:56:25.0 +0100 +++ tree-ssa-reassoc.c2011-11-07 16:12:35.0 +0100 @@ -2869,6 +2869,12 @@ reassociate_bb (basic_block bb) rhs1 = gimple_assign_rhs1 (stmt); rhs2 = gimple_assign_rhs2 (stmt); + /* We don't want to destroy reduction like patterns + with reassociation, simply don't start at such + statements. */ + if (is_phi_for_stmt (stmt, rhs1) || is_phi_for_stmt (stmt, rhs2)) +continue; + /* For non-bit or min/max operations we can't associate all types. Verify that here. */ if (rhs_code != BIT_IOR_EXPR
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 Aldy Hernandez aldyh at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2011-11-18 CC||aldyh at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #4 from Aldy Hernandez aldyh at gcc dot gnu.org 2011-11-18 21:12:01 UTC --- Michael. This regression was caused by the following patch. Perhaps the reason nobody caught it was because it came 5 hours after the transactional-memory branch was merged, perhaps too close for everyone to have re-tested their patches. Do you mind taking a look at this? r181172 | matz | 2011-11-08 10:47:16 -0600 (Tue, 08 Nov 2011) | 44 lines * gengtype.c (write_field_root): Avoid out-of-scope access of newv. * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers. * tree.h (TREE_CLOBBER_P): New macro. * gimple.h (gimple_clobber_p): New inline function. * gimplify.c (gimplify_bind_expr): Add clobbers for all variables that go out of scope and live in memory. * tree-ssa-operands.c (get_expr_operands): Transfer volatility also for constructors. * cfgexpand.c (decl_to_stack_part): New static variable. (add_stack_var): Allocate it, and remember mapping. (fini_vars_expansion): Deallocate it. (stack_var_conflict_p): Add early outs. (visit_op, visit_conflict, add_scope_conflicts_1, add_scope_conflicts): New static functions. (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy. (expand_used_vars): Add scope conflicts. (expand_gimple_stmt_1): Expand clobbers to nothing. (expand_debug_expr): Ditto.
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 Patrick Marlier patrick.marlier at gmail dot com changed: What|Removed |Added CC||patrick.marlier at gmail ||dot com --- Comment #3 from Patrick Marlier patrick.marlier at gmail dot com 2011-11-17 02:34:03 UTC --- Probably the same as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51130 (which include reduced testcase). Patrick Marlier.
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 --- Comment #1 from Uros Bizjak ubizjak at gmail dot com 2011-11-14 18:58:33 UTC --- A gdb backtrace would certainly help.
[Bug other/51125] FAIL: g++.dg/tm/pr45940-3.C
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51125 --- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2011-11-14 19:41:12 UTC --- (gdb) bt #0 fancy_abort (file=0x103d0c0 /export/gnu/import/git/gcc/gcc/gimplify.c, line=468, function=0x103dfc3 create_tmp_var) at /export/gnu/import/git/gcc/gcc/diagnostic.c:898 #1 0x008e9c24 in create_tmp_var (type=optimized out, prefix=optimized out) at /export/gnu/import/git/gcc/gcc/gimplify.c:468 #2 0x008fc5ab in create_tmp_from_val (val=0x712c6528) at /export/gnu/import/git/gcc/gcc/gimplify.c:498 #3 lookup_tmp_var (is_formal=false, val=0x712c6528) at /export/gnu/import/git/gcc/gcc/gimplify.c:515 #4 internal_get_tmp_var (val=0x712c6528, pre_p=0x7fffde48, post_p=optimized out, is_formal=false) at /export/gnu/import/git/gcc/gcc/gimplify.c:584 #5 0x008ebe01 in gimplify_expr (expr_p=optimized out, pre_p=optimized out, post_p=0x7fffdcc8, gimple_test_f= 0x8c6c70 is_gimple_addressable(tree_node*), fallback=3) at /export/gnu/import/git/gcc/gcc/gimplify.c:7728 #6 0x008fca12 in gimplify_addr_expr (expr_p=0x7fffddb8, pre_p=0x7fffde48, post_p=optimized out) at /export/gnu/import/git/gcc/gcc/gimplify.c:4914 #7 0x008ed04b in gimplify_expr (expr_p=optimized out, pre_p=optimized out, post_p=0x7fffdcc8, gimple_test_f=0x8c6e90 is_gimple_val(tree_node*), fallback=1) at /export/gnu/import/git/gcc/gcc/gimplify.c:6950 ---Type return to continue, or q return to quit--- #8 0x009023e1 in force_gimple_operand_1 (expr=0x712dd758, stmts=0x7fffde48, gimple_test_f=0x8c6e90 is_gimple_val(tree_node*), var=0x0) at /export/gnu/import/git/gcc/gcc/gimplify.c:8385 #9 0x00902583 in force_gimple_operand_gsi_1 (gsi=0x7fffdf30, expr=optimized out, gimple_test_f=optimized out, var=optimized out, before=true, m=GSI_SAME_STMT) at /export/gnu/import/git/gcc/gcc/gimplify.c:8425 #10 0x00a4d5b9 in expand_assign_tm (region=0x17bfbd0, gsi=0x7fffdf30) at /export/gnu/import/git/gcc/gcc/trans-mem.c:2173 #11 0x00a52ebf in expand_block_tm (bb=optimized out, region=0x17bfbd0) at /export/gnu/import/git/gcc/gcc/trans-mem.c:2324 #12 execute_tm_mark () at /export/gnu/import/git/gcc/gcc/trans-mem.c:2436 #13 0x0099ff78 in execute_one_pass (pass=0x1594120) at /export/gnu/import/git/gcc/gcc/passes.c:2074 #14 0x009a02e5 in execute_pass_list (pass=0x1594120) at /export/gnu/import/git/gcc/gcc/passes.c:2129 #15 0x009a02f7 in execute_pass_list (pass=0x1594180) at /export/gnu/import/git/gcc/gcc/passes.c:2130 #16 0x00ab438e in tree_rest_of_compilation (fndecl=0x712bd000) at /export/gnu/import/git/gcc/gcc/tree-optimize.c:420 #17 0x00797fea in cgraph_expand_function (node=0x712b8a20) at /export/gnu/import/git/gcc/gcc/cgraphunit.c:1819 #18 0x0079a217 in cgraph_output_in_order () ---Type return to continue, or q return to quit--- at /export/gnu/import/git/gcc/gcc/cgraphunit.c:1984 #19 cgraph_optimize () at /export/gnu/import/git/gcc/gcc/cgraphunit.c:2194 #20 0x0079a4fa in cgraph_finalize_compilation_unit () at /export/gnu/import/git/gcc/gcc/cgraphunit.c:1327 #21 0x005cce9b in cp_write_global_declarations () at /export/gnu/import/git/gcc/gcc/cp/decl2.c:4050 #22 0x00a47c64 in compile_file () at /export/gnu/import/git/gcc/gcc/toplev.c:581 #23 do_compile () at /export/gnu/import/git/gcc/gcc/toplev.c:1931 #24 toplev_main (argc=16, argv=0x7fffe258) at /export/gnu/import/git/gcc/gcc/toplev.c:2007 #25 0x003682e2165d in __libc_start_main () from /lib64/libc.so.6 #26 0x004f0e09 in _start () (gdb) call debug_tree (type) record_type 0x712b09d8 shared_count sizes-gimplified addressable needs-constructing type_1 type_4 type_5 BLK size integer_cst 0x71141480 type integer_type 0x7113e0a8 bitsizetype constant 128 unit size integer_cst 0x711414a0 type integer_type 0x7113e000 sizetype constant 16 align 64 symtab 0 alias set -1 canonical type 0x712b09d8 fields field_decl 0x712a0a18 pi_ type pointer_type 0x712a4e70 type record_type 0x712a4bd0 sp_counted_base sizes-gimplified public unsigned DI size integer_cst 0x71125f40 constant 64 unit size integer_cst 0x71125f60 constant 8 align 64 symtab 0 alias set -1 canonical type 0x712a4e70 used private unsigned nonlocal decl_3 DI file /export/gnu/import/git/gcc/gcc/testsuite/g++.dg/tm/pr45940-3.C line 45 col 23 size integer_cst 0x71125f40 64 unit size integer_cst 0x71125f60 8 align 64 offset_align 128 offset integer_cst 0x71125f80 constant 0 bit offset integer_cst 0x71125fe0 constant 0 context record_type 0x712b09d8 shared_count chain field_decl 0x712a0ab0 j type integer_type