https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90907
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |DUPLICATE --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Fujimoto Seiji from comment #2) > I can follow your reasoning, but as far as I can tell Clang can > handle it without any problem (storing only `x` in .tbss section). > > $ clang foo.c > $ ./a.out && echo $? > 0 > > Also as a practical matter, it's not really unintuitive for users > why __thread keyword should affect asm() right after the line. Because clang outputs the sections in a different order. Even -g can change what section is being used. Dup of bug 79425. *** This bug has been marked as a duplicate of bug 79425 ***