]> gcc.gnu.org Git - gcc.git/commitdiff
tree-ssa-structalias.c (get_constraint_for_component_ref): Handle component reference...
authorRichard Guenther <rguenther@suse.de>
Fri, 17 Apr 2009 19:58:16 +0000 (19:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 17 Apr 2009 19:58:16 +0000 (19:58 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index 5ad860c9f75ea7e84b7830dcbde51eda56287a12..0a16ea8fc33162cea00139468a8fbfb4488a5065 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
 
        * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
index aed4d1a3186505a01f5b9725b8557bf8651515d2..b0768d0c20bf65488d16f20951a9fa6f37942795 100644 (file)
@@ -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 ();
 }
This page took 0.077247 seconds and 5 git commands to generate.