This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
I cannot disable GCC TLS support thoroughly.
- From: Terry Guo <flameroc at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 22 Sep 2011 18:05:34 +0800
- Subject: I cannot disable GCC TLS support thoroughly.
Hello,
I configured my gcc with "--disable-tls" for arm-none-eabi. But it can
still successfully compile the below case:
__thread int i;
int f (void) { return i; }
void main (int j) { i = j; }
The "dg-require-effective-target tls" use this case to check whether
target supports tls. So how to configure GCC to let it fail to compile
this case, and then let the dg test framework thinks the tls is
unsupported? Thanks in advance.
BR,
Terry