http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48900

           Summary: unnecessary duplicate __tls_get_addr calls
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: amo...@gmail.com


This testcase when compiled with -fPIC generates two calls to __tls_get_addr.
extern __thread int i;
void foo (void) { i++; }

The regression was introduced with the fix for PR44266

Reply via email to