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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |12.0
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|2017-02-13 00:00:00         |2021-08-02

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Simplified testcase (-O0 -fno-pic -fno-pie -mcmodel=large):
__thread int tls_gd __attribute__((tls_model("global-dynamic"))) = 0;
int get_gd (void)
{
  return tls_gd;
}

----- CUT -----
Note clang turns global-dynamic without PIC or PIE turned on to local-static
...  That is how they support this :)

Confirmed.

Reply via email to