This is the mail archive of the
mailing list for the GCC project.
Re: [patch][google/integration] Don't force tls-model to initial-exec when building libgomp (issue6107046)
On Sun, Apr 22, 2012 at 10:09:46PM -0700, Andrew Pinski wrote:
> On Sun, Apr 22, 2012 at 10:50 AM, Paul Pluzhnikov
> <email@example.com> wrote:
> > Greetings,
> > The patch below is needed for google/integration branch:
> > we want to be able build libgomp.a with -fPIC, be able to link it into a
> > shared library, and be able to dlopen that library without running out of
> > static TLS space (-ftls-model=initial-exec precludes that last part).
> Do you understand the reason why it was made -ftls-model=initial-exec
> in the first place?
> IIRC the main reason is because the slow down from not using
> initial-exec model for GOMP is a lot.
Yes, the reason is that initial-exec is much faster than global-exec.