diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-17 19:58:16 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-17 19:58:16 +0000 |
commit | af4c7413dd85d20bbdac5944a4766c0b7576c8a3 (patch) | |
tree | fd3f690dc26f146b25bbc29a1243dbf1ad5be9c4 /gcc/tree-ssa-structalias.c | |
parent | b3d25c88c4ffb4c950be87b9a9756306587ef52e (diff) | |
download | gcc-af4c7413dd85d20bbdac5944a4766c0b7576c8a3.tar.gz |
2009-04-17 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (get_constraint_for_component_ref):
Handle component references view-converting an invariant address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146288 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index aed4d1a3186..b0768d0c20b 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -3052,6 +3052,14 @@ get_constraint_for_component_ref (tree t, VEC(ce_s, heap) **results, else result->offset = bitpos; } + else if (result->type == ADDRESSOF) + { + /* We can end up here for component references on a + VIEW_CONVERT_EXPR <>(&foobar). */ + result->type = SCALAR; + result->var = anything_id; + result->offset = 0; + } else gcc_unreachable (); } |