From 9785f1d9c3cb4155b18c7ed2d187461637ff6196 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 10 Oct 2002 23:46:09 +0200 Subject: [PATCH] i386.md (tls_local_dynamic_base): Put pic reg into proper operand. * config/i386/i386.md (tls_local_dynamic_base): Put pic reg into proper operand. From-SVN: r58029 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.md | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8dadd8ed7c2..2159736d1cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-10 Jakub Jelinek + + * config/i386/i386.md (tls_local_dynamic_base): Put pic reg + into proper operand. + 2002-10-10 Denis Chertykov * config/ip2k/ip2k.c (function_epilogue): Optimize stack diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index a89f0259703..dd174fe31da 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -13871,13 +13871,12 @@ "" { if (flag_pic) - operands[2] = pic_offset_table_rtx; + operands[1] = pic_offset_table_rtx; else { - operands[2] = gen_reg_rtx (Pmode); - emit_insn (gen_set_got (operands[2])); + operands[1] = gen_reg_rtx (Pmode); + emit_insn (gen_set_got (operands[1])); } - operands[1] = pic_offset_table_rtx; operands[2] = ix86_tls_get_addr (); })