]> gcc.gnu.org Git - gcc.git/commitdiff
(push_secondary_reload): Use TYPE for secondary type if it is
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 4 May 1994 21:12:27 +0000 (17:12 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 4 May 1994 21:12:27 +0000 (17:12 -0400)
RELOAD_FOR_{INPUT,OUTPUT}_ADDRESS.

From-SVN: r7211

gcc/reload.c

index 8d7141b00d0b2419811f18c651ce48d2d8c9aa73..254867e50f5f3dae4af0f33c2bf765c1b0a93b6d 100644 (file)
@@ -343,11 +343,15 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode,
   enum reg_class t_class = NO_REGS;
   enum machine_mode t_mode = VOIDmode;
   enum insn_code t_icode = CODE_FOR_nothing;
-  enum reload_type secondary_type
-    = in_p ? RELOAD_FOR_INPUT_ADDRESS : RELOAD_FOR_OUTPUT_ADDRESS;
+  enum reload_type secondary_type;
   int i;
   int s_reload, t_reload = -1;
 
+  if (type == RELOAD_FOR_INPUT_ADDRESS || type == RELOAD_FOR_OUTPUT_ADDRESS)
+    secondary_type = type;
+  else
+    secondary_type = in_p ? RELOAD_FOR_INPUT_ADDRESS : RELOAD_FOR_OUTPUT_ADDRESS;
+
   *picode = CODE_FOR_nothing;
 
   /* If X is a pseudo-register that has an equivalent MEM (actually, if it
This page took 0.06076 seconds and 5 git commands to generate.