(get_secondary_mem): Use macro SECONDARY_MEMORY_NEEDED_RTX.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 16 Mar 1993 19:52:45 +0000 (11:52 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 16 Mar 1993 19:52:45 +0000 (11:52 -0800)
From-SVN: r3758

gcc/reload.c

index e0c3d59dc72a6d80e313b947432de0ec852b7065..ab2ac22d4c3a7a7722e42842f51024e7dfee6c03 100644 (file)
@@ -413,8 +413,14 @@ get_secondary_mem (x, mode)
      by noticing that the frame size has changed.  */
 
   if (secondary_memlocs[(int) mode] == 0)
-    secondary_memlocs[(int) mode]
-      = assign_stack_local (mode, GET_MODE_SIZE (mode), 0);
+    {
+#ifdef SECONDARY_MEMORY_NEEDED_RTX
+      secondary_memlocs[(int) mode] = SECONDARY_MEMORY_NEEDED_RTX (mode);
+#else
+      secondary_memlocs[(int) mode]
+       = assign_stack_local (mode, GET_MODE_SIZE (mode), 0);
+#endif
+    }
 
   /* Get a version of the address doing any eliminations needed.  If that
      didn't give us a new MEM, make a new one if it isn't valid.  */