[Bug target/48900] New: unnecessary duplicate __tls_get_addr calls

amodra at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri May 6 00:39:00 GMT 2011


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: unassigned@gcc.gnu.org
        ReportedBy: amodra@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



More information about the Gcc-bugs mailing list