This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Check TLS for libgcc
On Wed, Jun 20, 2007 at 06:24:48AM -0700, H. J. Lu wrote:
> On Wed, Jun 20, 2007 at 03:05:59PM +0200, Paolo Bonzini wrote:
> >
> > >>Actually, neither your patch nor my alternative proposal will work if
> > >>--disable-bootstrap is used. The test would then be done on the build
> > >>compiler ("stage0").
> > >
> > >They can use --enable-tls or something like that.
> >
> > No, --disable-bootstrap should disable bootstrap, nothing less, nothing
>
> We can make --enable-tls to enable TLS unconditionally without
> any checking.
>
> > more. Did you look into the TLS emulation provided by 4.3?
>
> Even if you can compile TLS code, it doesn't mean you can run code
> with TLS if libc/kernel don't support TLS properly. That is why
> run-time check is needed.
BTW, when --disable-bootstrap is used, the build compiler will be
checked. If one supports TLS and the other doesn't, you will get
a different BID library. Is this a problem we have to resolve? If
yes, can we do link-time check only for TLS when --disable-bootstrap
is used?
H.J.