]>
Commit | Line | Data |
---|---|---|
541765b6 UD |
1 | #include <tls.h> |
2 | ||
11bf311e | 3 | #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE |
541765b6 UD |
4 | __thread int b[2] __attribute__ ((tls_model ("initial-exec"))); |
5 | #else | |
6 | int b[2]; | |
7 | #endif | |
8 | ||
9 | extern int foo (void); | |
10 | ||
11 | int | |
12 | bar (void) | |
13 | { | |
14 | return foo () + b[0]; | |
15 | } |