]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix c/8252.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 7 Nov 2002 07:04:20 +0000 (07:04 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 7 Nov 2002 07:04:20 +0000 (07:04 +0000)
2002-11-04  Aldy Hernandez  <aldyh@redhat.com>

Fix c/8252.

* config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
vectors from PRE_INC/DEC.

From-SVN: r58878

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index bb30ccaf9cc02cd0835a8472f6bfde74dee9d86c..d32a4c004b61d77ceb1e2471f6115f8529b37c95 100644 (file)
@@ -1,3 +1,10 @@
+2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
+
+       Fix c/8252.
+
+       * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
+       vectors from PRE_INC/DEC.
+
 2002-11-06  Richard Henderson  <rth@redhat.com>
 
        PR optimization/7520
index 7d9ae2b28be5737499a5f4af8352171341c496c2..2adb119406f70181e25abb2b4a2eef6d310ff25d 100644 (file)
@@ -2011,6 +2011,7 @@ rs6000_legitimate_address (mode, x, reg_ok_strict)
   if (LEGITIMATE_INDIRECT_ADDRESS_P (x, reg_ok_strict))
     return 1;
   if ((GET_CODE (x) == PRE_INC || GET_CODE (x) == PRE_DEC)
+      && !ALTIVEC_VECTOR_MODE (mode)
       && TARGET_UPDATE
       && LEGITIMATE_INDIRECT_ADDRESS_P (XEXP (x, 0), reg_ok_strict))
     return 1;