https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90562
--- Comment #1 from Tudor Bosman <tudorb at gmail dot com> --- Note that the behavior is correct (the thread local variable has the same address) with -O0, but incorrect with -O1 or above.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90562
--- Comment #1 from Tudor Bosman <tudorb at gmail dot com> --- Note that the behavior is correct (the thread local variable has the same address) with -O0, but incorrect with -O1 or above.