[Bug target/79497] ICE in extract_insn, at recog.c:2311
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 2 22:52:28 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79497
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
extern void abort (void);
__thread int tls_gd __attribute__((tls_model("global-dynamic"))) = 0;
int get_gd (void)
{
return tls_gd;
}
int *get_gdp (void)
{
return &tls_gd;
}
int main (void)
{
int val;
val = get_gd ();
if (val != 0)
abort ();
val = *get_gdp ();
if (val != 0)
abort ();
return 0;
}
More information about the Gcc-bugs
mailing list