regrename.c (scan_rtx_address): Frob action, not class, when trying to disable optimi...
authorRichard Henderson <rth@redhat.com>
Sun, 29 Oct 2000 05:41:44 +0000 (22:41 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 29 Oct 2000 05:41:44 +0000 (22:41 -0700)
        * regrename.c (scan_rtx_address): Frob action, not class,
        when trying to disable optimization.

From-SVN: r37117

gcc/ChangeLog
gcc/regrename.c

index 876b6671bafa8cb42869c8a0186c914bf12ffddd..9472fa0df4c067c547c93ff09840ef0dce641b3c 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-28  Richard Henderson  <rth@redhat.com>
+
+       * regrename.c (scan_rtx_address): Frob action, not class,
+       when trying to disable optimization.
+
 2000-10-28  Mark Mitchell  <mark@codesourcery.com>
 
        * c-semantics.c (make_rtl_for_local_static): Don't clobber
index ffe6d422b3907cd2bae55e142929ef9856cef765..5078585647eeac9da56ef3341f515422974c158d 100644 (file)
@@ -475,7 +475,9 @@ scan_rtx_address (insn, loc, class, action, mode)
     case PRE_DEC:
     case PRE_MODIFY:
 #ifndef AUTO_INC_DEC
-      class = NO_REGS;
+      /* If the target doesn't claim to handle autoinc, this must be
+        something special, like a stack push.  Kill this chain.  */
+      action = terminate_all_read;
 #endif
       break;