Another ICE with egcs-current...

Jeffrey A Law law@cygnus.com
Wed Jul 8 23:41:00 GMT 1998


  In message < 19980708153002.A21548@noris.de >you write:
  > The following code
  > ###################
  > extern __inline__ int test_and_set_bit(int nr, volatile void * addr)
  > {
  > 	int oldbit;
  > 	__asm__ __volatile__( "" 
  > 		"btsl %2,%1\n\tsbbl %0,%0"
  > 		:"=r" (oldbit),"=m" (addr)
  > 		:"ir" (nr));
  > 	return oldbit;
  > }
  > struct buffer_head {
  > 	unsigned long b_state;		 
  > };
  > extern void lock_buffer(struct buffer_head * bh)
  > {
  > 	while (test_and_set_bit(2 , &bh->b_state))
  > 		__wait_on_buffer(bh);
  > }
Thanks.  I've fixed this bug and added the test to the testsuite.

jeff



More information about the Gcc-bugs mailing list