[Bug target/102772] [12 regression] g++.dg/torture/pr80334.C FAILs

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 23 14:17:55 GMT 2022


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

--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, for ntpoff the listed instructions are:
movl %gs:0,%eax
leal x@ntpoff(%eax),%eax
rather than addl.  But certainly this one was never meant to be taken
pedantically as that instruction sequence only, it is completely intentional
that the %gs:0 load can be far away (used by multiple TLS LE or IE accesses),
and
even tls.pdf mentions some other instructions:
movl %gs:0,%eax
movl x@ntpoff(%eax),%eax
and
movl %gs:x@ntpoff,%eax
are all mentioned.


More information about the Gcc-bugs mailing list