[Bug inline-asm/90907] Binary crashes if both asm() and __thread are used in the same code

fujimoto@clear-code.com gcc-bugzilla@gcc.gnu.org
Tue Jun 18 06:02:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90907

Fujimoto Seiji <fujimoto@clear-code.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #2 from Fujimoto Seiji <fujimoto@clear-code.com> ---
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.


More information about the Gcc-bugs mailing list