Commit 0de5137b by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR target/35492 (ICE building kernel sk_stream_wait_connect output_operand:…

re PR target/35492 (ICE building kernel sk_stream_wait_connect output_operand: invalid operand for 'p' modifier)

	PR target/35492
	* gcc.c-torture/compile/pr35492.c: New test.

From-SVN: r137766
parent f49e46d8
2008-07-14 Hans-Peter Nilsson <hp@axis.com>
PR target/35492
* gcc.c-torture/compile/pr35492.c: New test.
2008-06-22 Daniel Kraft <d@domob.eu>
* gfortran.dg/used_types_21.f90: New test.
......
void prepare_to_wait (void *, void *, int);
void finish_wait (void *, void *);
extern signed long schedule_timeout (signed long);
struct sock
{
unsigned char skc_state;
void *sk_sleep;
int sk_err;
};
void
sk_stream_wait_connect (struct sock *sk, long *timeo_p)
{
int done;
int wait;
do
{
if ((1 << sk->skc_state) & ~12)
return;
prepare_to_wait (sk->sk_sleep, &wait, 1);
*(timeo_p) = schedule_timeout (0);
done = !sk->sk_err;
finish_wait (sk->sk_sleep, &wait);
}
while (!done);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment