repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(to_wc): Mark as const. (to_mb): Likewise.
[glibc.git]
/
elf
/
tst-tlsmod13.c
blob
beca89f6fec753d4f972bb42b8d10f97e772006a
1
#include <tls.h>
2
3
#if defined USE_TLS && defined HAVE___THREAD \
4
&& defined HAVE_TLS_MODEL_ATTRIBUTE
5
__thread
int
a
[
2
]
__attribute__
((
tls_model
(
"initial-exec"
)));
6
#else
7
int
a
[
2
];
8
#endif
9
10
int
11
foo
(
void
)
12
{
13
return
a
[
0
];
14
}