This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Support IA-32 TLS @gotntpoff and @indntpoff
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Sep 2002 14:59:44 -0700
- Subject: Re: [PATCH] Support IA-32 TLS @gotntpoff and @indntpoff
- References: <20020920223707.E5743@sunsite.ms.mff.cuni.cz>
On Fri, Sep 20, 2002 at 10:37:07PM +0200, Jakub Jelinek wrote:
> + if (flag_pic || !TARGET_GNU_TLS)
> {
> + if (flag_pic)
> + {
> + if (reload_in_progress)
> + regs_ever_live[PIC_OFFSET_TABLE_REGNUM] = 1;
> + pic = pic_offset_table_rtx;
> + }
> + else
> + {
> + pic = gen_reg_rtx (Pmode);
> + emit_insn (gen_set_got (pic));
> + }
> }
There's also bound to be a used-without-set warning here. Use
if (flag_pic)
...
else if (!TARGET_GNU_TLS)
...
else
pic = NULL;
Otherwise ok for mainline.
r~