reload.c (push_secondary_reload): Allow class == reload_class if we're using a reload...
authorRichard Henderson <rth@cygnus.com>
Tue, 29 Aug 2000 21:18:01 +0000 (14:18 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 29 Aug 2000 21:18:01 +0000 (14:18 -0700)
        * reload.c (push_secondary_reload): Allow class == reload_class
        if we're using a reload_in/out pattern.

From-SVN: r36052

gcc/ChangeLog
gcc/reload.c

index f0d1b058f57cd93cccffabe9bcabf4af1ee0240c..efd94d8db84022f6515b8b0736f835be4a0973fa 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-29  Richard Henderson  <rth@cygnus.com>
+
+       * reload.c (push_secondary_reload): Allow class == reload_class
+       if we're using a reload_in/out pattern.
+
 2000-08-29  Kazu Hirata  <kazu@hxi.com>
 
        * reload.c: Fix formatting.
index c82b66a597aad3e607c6faf418113db43d10b1cb..ee2fa4884d27da02ad029df43253046dd152c361 100644 (file)
@@ -411,11 +411,11 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode,
      can not use secondary reloads, you must work around the problem some
      other way.
 
-     Allow this when MODE is not reload_mode and assume that the generated
-     code handles this case (it does on the Alpha, which is the only place
-     this currently happens).  */
+     Allow this when a reload_in/out pattern is being used.  I.e. assume
+     that the generated code handles this case.  */
 
-  if (in_p && class == reload_class && mode == reload_mode)
+  if (in_p && class == reload_class && icode == CODE_FOR_nothing
+      && t_icode == CODE_FOR_nothing)
     abort ();
 
   /* If we need a tertiary reload, see if we have one we can reuse or else