Debian Codegraph @

testsuite/small/tls-2.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=set_errno -DCE_EXPORT_SYMBOLS=__libc_errno" }*/
2 /* { dg-xfail }*/
3
4 extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));
5
6 void set_errno(int err)
7 {
8 __libc_errno = err;
9 }
10
11 /* { dg-final { scan-tree-dump "__attribute__\(\(used\)\) static tls_index klpe___libc_errno_ti;" } } */
12 /* { dg-final { scan-tree-dump "__tls_get_addr\(klpe___libc_errno_ti\)" } } */