our current gcc puts the loop after the RAS_END() label on several
platforms, adjust the code so that gcc does the right thing again.
This commit is contained in:
parent
cc24ac78d4
commit
c79ddfbf3d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ras1.c,v 1.8 2008/04/28 20:23:07 martin Exp $ */
|
||||
/* $NetBSD: ras1.c,v 1.9 2012/11/02 14:53:03 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -26,6 +26,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
@ -73,12 +74,11 @@ main(void)
|
||||
RAS_START(main);
|
||||
count++;
|
||||
if (count > COUNT)
|
||||
goto end;
|
||||
exit(handled != 0);
|
||||
|
||||
while (!handled) {
|
||||
continue;
|
||||
}
|
||||
end:
|
||||
RAS_END(main);
|
||||
|
||||
return (handled != 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ras2.c,v 1.10 2008/04/28 20:23:07 martin Exp $ */
|
||||
/* $NetBSD: ras2.c,v 1.11 2012/11/02 14:53:03 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -26,6 +26,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
@ -81,12 +82,11 @@ main(void)
|
||||
RAS_START(main);
|
||||
count++;
|
||||
if (count > COUNT)
|
||||
goto end;
|
||||
exit(handled != 0);
|
||||
|
||||
while (!handled) {
|
||||
continue;
|
||||
}
|
||||
end:
|
||||
RAS_END(main);
|
||||
|
||||
return (handled != 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ras3.c,v 1.9 2008/04/28 20:23:07 martin Exp $ */
|
||||
/* $NetBSD: ras3.c,v 1.10 2012/11/02 14:53:04 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -26,6 +26,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
@ -88,12 +89,11 @@ main(int argc, char *argv[])
|
||||
RAS_START(main);
|
||||
count++;
|
||||
if (count > COUNT)
|
||||
goto end;
|
||||
exit(handled != 0);
|
||||
|
||||
while (!handled) {
|
||||
continue;
|
||||
}
|
||||
end:
|
||||
RAS_END(main);
|
||||
|
||||
return (handled != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user