PATCH: libgcc: Enable TLS for Linux/x86
Daniel Jacobowitz
drow@false.org
Thu Jul 5 15:43:00 GMT 2007
On Thu, Jul 05, 2007 at 06:54:07AM -0700, H.J. Lu wrote:
> On Thu, Jul 05, 2007 at 09:43:11AM -0400, Daniel Jacobowitz wrote:
> > On Thu, Jul 05, 2007 at 06:29:06AM -0700, H.J. Lu wrote:
> > > This patch enables TLS for Linux/x86 in libgcc. libbid needs it
> > > for thread-safty. Tested on Linux/x86.
> >
> > How can you get away without any configure check that __thread is
> > present?
>
> My original patch checks TLS support. The comments I got were to
> enable TLS for Linux/x86 in config.host:
>
> http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01475.html
Paolo, what about old binutils? I don't know what we require nowadays
but I doubt it's sufficient for __thread. I think we still need a
link test, or at least an assembler test.
If I understand correctly, glibc support is not a major issue because
this code will only be pulled in by programs which use DFP.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gcc-patches
mailing list