diff options
author | Richard Guenther <rguenther@suse.de> | 2009-04-17 19:58:16 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-04-17 19:58:16 +0000 |
commit | b51605c41d1170c5e52f1a0abdd1a5a1fe4db3ed (patch) | |
tree | fd3f690dc26f146b25bbc29a1243dbf1ad5be9c4 /gcc/tree-ssa-structalias.c | |
parent | 4e23895d6aaf10a9905bbb3540de72ba9f471bc4 (diff) | |
download | gcc-b51605c41d1170c5e52f1a0abdd1a5a1fe4db3ed.zip gcc-b51605c41d1170c5e52f1a0abdd1a5a1fe4db3ed.tar.gz gcc-b51605c41d1170c5e52f1a0abdd1a5a1fe4db3ed.tar.bz2 |
tree-ssa-structalias.c (get_constraint_for_component_ref): Handle component references view-converting an invariant address.
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.
From-SVN: r146288
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 aed4d1a..b0768d0 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 (); } |