repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warnings occured during profiledboostrap on
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr55273.c
blob
8ae5199b7893545fb99a23f817d3636bce969957
1
extern
int
debug_threads
;
2
extern
void
sigsuspend
(
void
);
3
void
my_waitpid
(
int
flags
,
int
wnohang
)
4
{
5
while
(
1
)
6
{
7
if
(
flags
&
0x80000000
)
8
{
9
if
(
wnohang
)
10
break
;
11
if
(
debug_threads
)
12
__builtin_puts
(
"blocking
\n
"
);
13
sigsuspend
();
14
}
15
flags
^=
0x80000000
;
16
}
17
}
18