This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: emulating tls for systems without
Paolo Carlini wrote:
Jakub Jelinek wrote:
On Sat, Oct 07, 2006 at 11:10:12AM +0200, Paolo Carlini wrote:
A small update: I think we are decently safe, because, according to
the manual, the default without -fpic is "initial-exec" and we are
talking only about code belonging to libsupc++.
That's not true, people usually use libsupc++_convenience.a which is
compiled with -fpic and linked into libstdc++.so.6.
Acc! I have to reanalyze the build. Then we have a serious problem,
because the attribute that you suggested is not available for all
targets...
A couple of additional comments: the first one, I'm wondering whether we
should add an autoconf test for the support of the "initial-exec"
attribute or there are better ways to know about that (or even better
ways to deal with the exception machinery issue 24025 itself...); the
second, much more "theoretical", I'm wondering whether the simulated TLS
could also, in principle, provide simulated "initial-exec" behavior and
if not, why not...
Paolo.