re PR tree-optimization/52558 (write introduction incorrect wrt the C++11 memory...
authorAldy Hernandez <aldyh@redhat.com>
Thu, 31 May 2012 19:46:43 +0000 (19:46 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 31 May 2012 19:46:43 +0000 (19:46 +0000)
commit039496da00fe37d2cc92600039e6877ea132a50b
tree1ad67e950a74a6bc950bbf5f91748e6acbf640b9
parent19af62dbf23ba8ad8ca2b317d0886e38545af4e6
re PR tree-optimization/52558 (write introduction incorrect wrt the C++11 memory model)

        PR tree-optimization/52558
        * cfg.c (alloc_aux_for_edge): Fix comment.
        (alloc_aux_for_edge): Remove static.
        * basic-block.h (alloc_aux_for_edge): Protoize.
        * tree-ssa-loop-im.c (execute_sm_if_changed): New.
        (execute_sm_if_changed_flag): New.
        (execute_sm_if_changed_flag_set): New.
        (execute_sm): Do not generate data races unless requested.
        (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
        (tree_ssa_lim_finalize): Call free_aux_for_edges.
        * gimple.h (block_in_transaction): New.
        (gimple_in_transaction): Use block_in_transaction.

From-SVN: r188081
gcc/ChangeLog
gcc/basic-block.h
gcc/cfg.c
gcc/gimple.h
gcc/testsuite/gcc.dg/pr52558-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr52558-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tm/reg-promotion.c [new file with mode: 0644]
gcc/tree-ssa-loop-im.c