https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803
Kamlesh Kumar <kamleshbhalui at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kamleshbhalui at gmail dot com --- Comment #13 from Kamlesh Kumar <kamleshbhalui at gmail dot com> --- Consider this little tweaked testcase in comment#1 static thread_local int s; int g() ; int f(unsigned int c) { int *px = &s + c; while (c--) *px += g(); return *px; } gcc emits single call to __tls_get_addr.