reload1.c (replaced_subreg, gen_reload): Add SECONDARY_MEMORY_NEEDED ifdefs as necessary.
authorBernd Schmidt <bernds@codesourcery.com>
Sat, 11 Aug 2012 16:53:09 +0000 (16:53 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Sat, 11 Aug 2012 16:53:09 +0000 (16:53 +0000)
* reload1.c (replaced_subreg, gen_reload): Add
SECONDARY_MEMORY_NEEDED ifdefs as necessary.

From-SVN: r190318

gcc/ChangeLog
gcc/reload1.c

index d627f9fae694a819c06dcdf47c946bd469e8ba00..0aabdc340d3fec072b31fff18cb98f199fdaa041 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-11  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * reload1.c (replaced_subreg, gen_reload): Add
+       SECONDARY_MEMORY_NEEDED ifdefs as necessary.
+
 2012-08-11  Jan Hubicka  <jh@suse.cz>
 
        * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
index bf5d3d3bb083e3f42f0e2af21103f92fbf3bf6b4..4c1ecfc90811f19c844231905b81d9a5f5882966 100644 (file)
@@ -8469,6 +8469,7 @@ emit_insn_if_valid_for_reload (rtx insn)
   return NULL;
 }
 
+#ifdef SECONDARY_MEMORY_NEEDED
 /* If X is not a subreg, return it unmodified.  If it is a subreg,
    look up whether we made a replacement for the SUBREG_REG.  Return
    either the replacement or the SUBREG_REG.  */
@@ -8480,6 +8481,7 @@ replaced_subreg (rtx x)
     return find_replacement (&SUBREG_REG (x));
   return x;
 }
+#endif
 
 /* Emit code to perform a reload from IN (which may be a reload register) to
    OUT (which may also be a reload register).  IN or OUT is from operand
@@ -8491,7 +8493,10 @@ static rtx
 gen_reload (rtx out, rtx in, int opnum, enum reload_type type)
 {
   rtx last = get_last_insn ();
-  rtx tem, tem1, tem2;
+  rtx tem;
+#ifdef SECONDARY_MEMORY_NEEDED
+  rtx tem1, tem2;
+#endif
 
   /* If IN is a paradoxical SUBREG, remove it and try to put the
      opposite SUBREG on OUT.  Likewise for a paradoxical SUBREG on OUT.  */