]> gcc.gnu.org Git - gcc.git/commitdiff
(push_reload): Allow RELOAD_FOR_INPUT with a secondary
authorRichard Stallman <rms@gnu.org>
Mon, 15 Nov 1993 00:20:51 +0000 (00:20 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 15 Nov 1993 00:20:51 +0000 (00:20 +0000)
reload the same class as the input if the modes differ.

From-SVN: r6089

gcc/reload.c

index af4ff981e261f6cd243c1d123012798ab3b31aa6..2c0316489fcab2153bf430f2dd92df0d2b0754a9 100644 (file)
@@ -1019,9 +1019,14 @@ push_reload (in, out, inloc, outloc, class,
             The convention is that secondary input reloads are valid only if
             the secondary_class is different from class.  If you have such
             a case, you can not use secondary reloads, you must work around
-            the problem some other way.  */
+            the problem some other way.
 
-         if (type == RELOAD_FOR_INPUT && secondary_class == class)
+            Allow this when secondary_mode is not inmode and assume that
+            the generated code handles this case (it does on the Alpha, which
+            is the only place this currently happens).  */
+
+         if (type == RELOAD_FOR_INPUT && secondary_class == class
+             && secondary_mode == inmode)
            abort ();
 
          /* If we need a tertiary reload, see if we have one we can reuse
This page took 1.708488 seconds and 5 git commands to generate.