[Bug inline-asm/90907] Binary crashes if both asm() and __thread are used in the same code
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 18 07:05:00 GMT 2019
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 ***
More information about the Gcc-bugs
mailing list