This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Support IA-32 TLS @gotntpoff and @indntpoff


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]