diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2012-01-17 13:20:28 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2012-01-17 13:20:28 +0000 |
commit | 59cbe98e0dd601e07f804d5e3a6718521552f259 (patch) | |
tree | ae1d1efd3202c30080c4ee2d4c1991cc9460b169 /gcc/trans-mem.c | |
parent | 465406bec15a469db3542a8c47861cff4df06002 (diff) | |
download | gcc-59cbe98e0dd601e07f804d5e3a6718521552f259.zip gcc-59cbe98e0dd601e07f804d5e3a6718521552f259.tar.gz gcc-59cbe98e0dd601e07f804d5e3a6718521552f259.tar.bz2 |
re PR other/51165 (gcc.dg/tm/memopt-3.c failure)
PR other/51165
* trans-mem.c (requires_barrier): Call may_be_aliased.
testsuite/
PR other/51165
* gcc.dg/tm/memopt-3.c: Remove xfail.
* gcc.dg/tm/memopt-4.c: Remove xfail.
* gcc.dg/tm/memopt-5.c: Remove xfail.
* gcc.dg/tm/memopt-7.c: Remove xfail.
From-SVN: r183242
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index db1c2ec..8b7e510 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -1498,7 +1498,7 @@ requires_barrier (basic_block entry_block, tree x, gimple stmt) lower_sequence_tm altogether. */ needs_to_live_in_memory (x) /* X escapes. */ - || ptr_deref_may_alias_global_p (x)) + || is_global_var (x)) return true; else { |