Last change
on this file was 2036, checked in by bird, 20 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
227 bytes
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.