for non-PIC TLS_MODEL_INITIAL_EXEC case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90172
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
+
+ * config/sh/sh.c (prepare_move_operands): Emit a use of r12
+ for non-PIC TLS_MODEL_INITIAL_EXEC case.
+
2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
* expmed.c: Fix a comment typo.
2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
* expmed.c: Fix a comment typo.
case TLS_MODEL_INITIAL_EXEC:
if (! flag_pic)
case TLS_MODEL_INITIAL_EXEC:
if (! flag_pic)
- emit_insn (gen_GOTaddr2picreg ());
+ {
+ emit_insn (gen_GOTaddr2picreg ());
+ emit_insn (gen_rtx_USE (VOIDmode, gen_rtx_REG (SImode,
+ PIC_REG)));
+ }
tga_op1 = no_new_pseudos ? op0 : gen_reg_rtx (Pmode);
tmp = gen_sym2GOTTPOFF (op1);
emit_insn (gen_tls_initial_exec (tga_op1, tmp));
tga_op1 = no_new_pseudos ? op0 : gen_reg_rtx (Pmode);
tmp = gen_sym2GOTTPOFF (op1);
emit_insn (gen_tls_initial_exec (tga_op1, tmp));