Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / tlscall.c
blob366c1ae712376afe350bf8679a79b29d2ee9e868
1 /* Test non-duplication of tlscall insn */
3 /* { dg-do assemble } */
4 /* { dg-options "-O2 -fPIC -mtls-dialect=gnu2" } */
6 typedef struct _IO_FILE FILE;
8 extern int foo(void);
9 extern int bar(void);
11 void uuid__generate_time()
13 static int has_init = 0;
14 static __thread int state_fd = -2;
15 static __thread FILE *state_f;
17 if (!has_init) {
18 foo();
19 has_init = 1;
22 if (state_fd == -2) {
23 if (!state_f) {
24 state_fd = -1;
27 if (state_fd >= 0) {
28 while (bar() < 0) {}