This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: x86 descriptor-based TLS local dynamic fix
- From: Ian Lance Taylor <iant at google dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 19 Jun 2006 10:58:49 -0700
- Subject: Re: x86 descriptor-based TLS local dynamic fix
- References: <or8xnvsocc.fsf@free.oliva.athome.lsd.ic.unicamp.br>
Alexandre Oliva <aoliva@redhat.com> writes:
> I've noticed the other day that either I made a mistake when
> forward-porting the TLS descriptor code from an earlier release on
> which I first wrote it, or combine changed in such a way that the code
> I put in was ineffective.
>
> Whatever the reason, this patch fixes it, such that we generate code
> as expected, namely, when there is access to a single local dynamic
> variable, we revert to general dynamic, and we don't fail to use
> segment register-based addressing modes to access such varables when
> possible.
>
> I'm checking this in as obvious. It does not affect code in the
> default TLS access models, only when compiling with -mtls-dialect=gnu2
Any chance you could write some docs for the -mtls-dialect option?
Ian