sh.c (prepare_move_operands): Use operands[0] for the output rtl if no_new_pseudos...
authorKaz Kojima <kkojima@gcc.gnu.org>
Sat, 30 Oct 2004 10:14:56 +0000 (10:14 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Sat, 30 Oct 2004 10:14:56 +0000 (10:14 +0000)
* config/sh/sh.c (prepare_move_operands): Use operands[0]
for the output rtl if no_new_pseudos is set.  Remove redundant
line.

From-SVN: r89884

gcc/ChangeLog
gcc/config/sh/sh.c

index e255638479b12e3867ebfc8cecad9642d692bbbc..43074566defcb6b064d079cdab08cca6401eb069 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * config/sh/sh.c (prepare_move_operands): Use operands[0]
+       for the output rtl if no_new_pseudos is set.  Remove redundant
+       line.
+
 2004-10-30  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/16666
index 83a938eb7faedb7897c2a41fa07d6bbe5dc24b02..de99cd533c8693cadd8026075d064aa31e6a5db2 100644 (file)
@@ -1015,7 +1015,6 @@ prepare_move_operands (rtx operands[], enum machine_mode mode)
        {
          rtx tga_op1, tga_ret, tmp, tmp2;
 
-
          switch (tls_kind)
            {
            case TLS_MODEL_GLOBAL_DYNAMIC:
@@ -1043,7 +1042,7 @@ prepare_move_operands (rtx operands[], enum machine_mode mode)
            case TLS_MODEL_INITIAL_EXEC:
              if (! flag_pic)
                emit_insn (gen_GOTaddr2picreg ());
-             tga_op1 = gen_reg_rtx (Pmode);
+             tga_op1 = no_new_pseudos ? op0 : gen_reg_rtx (Pmode);
              tmp = gen_sym2GOTTPOFF (op1);
              emit_insn (gen_tls_initial_exec (tga_op1, tmp));
              op1 = tga_op1;