aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-03-16 11:52:45 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-03-16 11:52:45 -0800
commitb24a53d584476ba461e2d47e1a87129502498546 (patch)
tree58140d9c79c1c92ed394c89f6e10739d18e6b801 /gcc
parent9798977501cfeda200514277bec653ec57259c97 (diff)
downloadgcc-b24a53d584476ba461e2d47e1a87129502498546.zip
gcc-b24a53d584476ba461e2d47e1a87129502498546.tar.gz
gcc-b24a53d584476ba461e2d47e1a87129502498546.tar.bz2
(get_secondary_mem): Use macro SECONDARY_MEMORY_NEEDED_RTX.
From-SVN: r3758
Diffstat (limited to 'gcc')
-rw-r--r--gcc/reload.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index e0c3d59..ab2ac22 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -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. */