re PR target/31364 (secureplt breaks bootstrap)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sat, 31 Mar 2007 21:29:21 +0000 (21:29 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 31 Mar 2007 21:29:21 +0000 (14:29 -0700)
2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/31364
        * config/rs6000/rs6000.md (call): Convert to LR hard reg for
        secureplt.
        (call_value): Likewise.

From-SVN: r123390

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 729f70a97b0c0c6c83fd12f21138ecce5bdc3854..91ab03c1af71ddbee55219a494579e6977f1d26d 100644 (file)
@@ -1,3 +1,10 @@
+2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR target/31364
+       * config/rs6000/rs6000.md (call): Convert to LR hard reg for
+       secureplt.
+       (call_value): Likewise.
+
 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
 
index 9a26c37dc2dcc6c7570fa318ac3a6ce110adeb9e..bba0df4a4387a925de3041745dfc0ba06ac624c9 100644 (file)
                                     gen_rtx_MEM (SImode, operands[0]),
                                     operands[1]),
                       gen_rtx_USE (VOIDmode, operands[2]),
-                      gen_rtx_CLOBBER (VOIDmode, gen_rtx_SCRATCH (SImode)));
+                      gen_rtx_CLOBBER (VOIDmode,
+                                       gen_rtx_REG (Pmode,
+                                                    LINK_REGISTER_REGNUM)));
       call = emit_call_insn (gen_rtx_PARALLEL (VOIDmode, tmp));
       use_reg (&CALL_INSN_FUNCTION_USAGE (call), pic_offset_table_rtx);
       DONE;
                                                               operands[1]),
                                                  operands[2])),
                       gen_rtx_USE (VOIDmode, operands[3]),
-                      gen_rtx_CLOBBER (VOIDmode, gen_rtx_SCRATCH (SImode)));
+                      gen_rtx_CLOBBER (VOIDmode, 
+                                       gen_rtx_REG (Pmode,
+                                                     LINK_REGISTER_REGNUM)));
       call = emit_call_insn (gen_rtx_PARALLEL (VOIDmode, tmp));
       use_reg (&CALL_INSN_FUNCTION_USAGE (call), pic_offset_table_rtx);
       DONE;