OSDN Git Service

2010-04-07 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / emit-rtl.c
index e0acc0c..b5c4185 100644 (file)
@@ -1782,6 +1782,15 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp,
                 the size we got from the type?  */
            }
 
+         else if (flag_argument_noalias > 1
+                  && (INDIRECT_REF_P (t2))
+                  && TREE_CODE (TREE_OPERAND (t2, 0)) == PARM_DECL)
+           {
+             expr = t;
+             offset = const0_rtx;
+             apply_bitpos = bitpos;
+           }
+
          /* If this is an indirect reference, record it.  */
          else if (TREE_CODE (t) == INDIRECT_REF
                   || TREE_CODE (t) == MISALIGNED_INDIRECT_REF)
@@ -1801,6 +1810,15 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp,
          apply_bitpos = bitpos;
        }
 
+      /* If this is an indirect reference, record it.  */
+      else if (TREE_CODE (t) == INDIRECT_REF
+              || TREE_CODE (t) == MISALIGNED_INDIRECT_REF)
+       {
+         expr = t;
+         offset = const0_rtx;
+         apply_bitpos = bitpos;
+       }
+
       if (!align_computed && !INDIRECT_REF_P (t))
        {
          unsigned int obj_align