diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-13 12:37:29 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-13 12:37:29 +0000 |
commit | c83f795dee4fcaa818e669cb710121d95dddba8e (patch) | |
tree | ecd30a9a95035f0a0d537ed6cda2b05b7de3d352 /gcc/tree-ssa-operands.c | |
parent | 96d5c2e21f849bf279096540d1fd768233113803 (diff) | |
download | gcc-c83f795dee4fcaa818e669cb710121d95dddba8e.tar.gz |
PR tree-optimization/29680
* tree-ssa-operands.c (access_can_touch_variable): Revert fix for
PR 14784.
* gcc.dg/alias-11.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118754 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 234eace9b4c..2c776836ce6 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -1151,11 +1151,16 @@ access_can_touch_variable (tree ref, tree alias, HOST_WIDE_INT offset, && flag_strict_aliasing && TREE_CODE (ref) != INDIRECT_REF && !MTAG_P (alias) - && !var_ann (alias)->is_heapvar && (TREE_CODE (base) != INDIRECT_REF || TREE_CODE (TREE_TYPE (base)) != UNION_TYPE) && !AGGREGATE_TYPE_P (TREE_TYPE (alias)) && TREE_CODE (TREE_TYPE (alias)) != COMPLEX_TYPE +#if 0 + /* FIXME: PR tree-optimization/29680. */ + && !var_ann (alias)->is_heapvar +#else + && !POINTER_TYPE_P (TREE_TYPE (alias)) +#endif /* When the struct has may_alias attached to it, we need not to return true. */ && get_alias_set (base)) |