https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93119
--- Comment #1 from Peakulorain ---
Here is my patch to fix this program.
diff -Nurp a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
--- a/gcc/config/aarch64/aarch64.md 2019-12-20 03:16:50.706754343 +0800
+++ b/gcc/config/aar
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pengliren at huawei dot com
Target Milestone: ---
My code:
#cat 1.c
__thread int g_tlsdata;
int func1()
{
g_tlsdata++;
return g_tlsdata;
}
gcc version