Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr55273.c
blob8ae5199b7893545fb99a23f817d3636bce969957
1 extern int debug_threads;
2 extern void sigsuspend (void);
3 void my_waitpid (int flags, int wnohang)
5 while (1)
7 if (flags & 0x80000000)
9 if (wnohang)
10 break;
11 if (debug_threads)
12 __builtin_puts ("blocking\n");
13 sigsuspend ();
15 flags ^= 0x80000000;