https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Unneccessary calls to       |mulitple calls to
                   |__tls_get_addr() in simple  |__tls_get_addr() with -fPIC
                   |thread-singleton pattern    |
           Severity|normal                      |enhancement

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Due to the way addresses are formed for TLS, we emit the call to the
__tls_get_addr function at the point of address.  We should do something
similar to how other PIC addresses are handled.

Reply via email to