aboutsummaryrefslogtreecommitdiff
path: root/gcc/trans-mem.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2012-01-17 13:20:28 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2012-01-17 13:20:28 +0000
commit59cbe98e0dd601e07f804d5e3a6718521552f259 (patch)
treeae1d1efd3202c30080c4ee2d4c1991cc9460b169 /gcc/trans-mem.c
parent465406bec15a469db3542a8c47861cff4df06002 (diff)
downloadgcc-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.c2
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
{