]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg instead of R2.
authorBernd Schmidt <bernd.schmidt@analog.com>
Tue, 27 Feb 2007 15:20:47 +0000 (15:20 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 27 Feb 2007 15:20:47 +0000 (15:20 +0000)
* config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
instead of R2.

From-SVN: r122376

gcc/ChangeLog
gcc/config/bfin/bfin.c

index 91852b9f225fe40a26fa22a2f7f063dbf493e8e7..b902a0293107af708116f054790e1bd6ab1a779d 100644 (file)
@@ -43,6 +43,9 @@
        * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
        lshifthi3): Fix output template to use half reg for operand 2.
 
+       * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
+       instead of R2.
+
 2007-02-27  Andreas Schwab  <schwab@suse.de>
 
        * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
index 12212b22cc0a17d2fb301c6eb6d1d32e75988bb8..43ab3ec85dd7688dff58f92e3d440fd26d13eb4f 100644 (file)
@@ -4556,7 +4556,7 @@ bfin_output_mi_thunk (FILE *file ATTRIBUTE_UNUSED,
   if (vcall_offset)
     {
       rtx p2tmp = gen_rtx_REG (Pmode, REG_P2);
-      rtx tmp = gen_rtx_REG (Pmode, REG_R2);
+      rtx tmp = gen_rtx_REG (Pmode, REG_R3);
 
       xops[1] = tmp;
       xops[2] = p2tmp;