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] Fix TLS related ICE on IA-32


On Mon, Sep 16, 2002 at 09:35:17PM -0700, Richard Henderson wrote:
> On Wed, Sep 11, 2002 at 12:10:02AM +0200, Jakub Jelinek wrote:
> > 	* config/i386/i386.c (legitimate_pic_address_disp_p): Allow
> > 	UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
> > 
> > 	* gcc.dg/tls/run-1.c: New test.
> > 	* gcc.dg/tls/run-2.c: New test.
> 
> Ok.
> 
> Did we come to a decision about "4+foo@ntpoff" vs "-4+foo@ntpoff"?

@ntpoff is not a problem, the problem was @tpoff. I followed your
and others request, so the counterpart of
addl $4+foo@ntpoff, %eax
is
subl $-4+foo@tpoff, %eax
or
subl $foo@tpoff, %eax
addl $4, %eax
But as we don't know what exactly Sun linker does with addends,
it is probably better to use the 2 insn sequence for -mtls-dialect=sun.

	Jakub


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