[Bug target/93119] [ICE] The traditional TLS support of aarch64-ilp32 target may be not perfect while enable fPIC

2020-01-02 Thread pengliren at huawei dot com
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

[Bug c/93119] New: [ICE] The traditional TLS support of aarch64-ilp32 target may be not perfect while enable fPIC

2020-01-01 Thread pengliren at huawei dot com
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