Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/arch/arm/abort-fixup Multiline string literals a...
details: https://anonhg.NetBSD.org/src/rev/5cf192ed2351
branches: trunk
changeset: 525267:5cf192ed2351
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Apr 09 03:13:18 2002 +0000
description:
Multiline string literals are now allowed in ISO C.
diffstat:
regress/sys/arch/arm/abort-fixup/abortfixup.c | 23 ++++++++++-------------
1 files changed, 10 insertions(+), 13 deletions(-)
diffs (55 lines):
diff -r 7341458fbab6 -r 5cf192ed2351 regress/sys/arch/arm/abort-fixup/abortfixup.c
--- a/regress/sys/arch/arm/abort-fixup/abortfixup.c Tue Apr 09 02:56:17 2002 +0000
+++ b/regress/sys/arch/arm/abort-fixup/abortfixup.c Tue Apr 09 03:13:18 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: abortfixup.c,v 1.5 2002/03/17 13:46:45 bjh21 Exp $ */
+/* $NetBSD: abortfixup.c,v 1.6 2002/04/09 03:13:18 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
#include <sys/types.h>
-__RCSID("$NetBSD: abortfixup.c,v 1.5 2002/03/17 13:46:45 bjh21 Exp $");
+__RCSID("$NetBSD: abortfixup.c,v 1.6 2002/04/09 03:13:18 thorpej Exp $");
#include <setjmp.h>
#include <signal.h>
@@ -73,11 +73,10 @@
*/
if (setjmp(buf) == 0) {
- __asm __volatile ("
- mov r0, #0
- mov r1, r0
- str r1, [r0], r1, ror #10
- ");
+ __asm __volatile (
+ " mov r0, #0 \n"
+ " mov r1, r0 \n"
+ " str r1, [r0], r1, ror #10");
/* Should not be reached if OK */
printf("!!! Regression test FAILED - no SEGV recieved\n");
@@ -89,11 +88,10 @@
/* Similar but pre-indexed, to check ARM2/3 abort address function. */
if (setjmp(buf) == 0) {
- __asm __volatile ("
- mov r0, #0
- mov r1, r0
- str r1, [r0, r1, ror #10]
- ");
+ __asm __volatile (
+ " mov r0, #0 \n"
+ " mov r1, r0 \n"
+ " str r1, [r0, r1, ror #10]");
/* Should not be reached if OK */
printf("!!! Regression test FAILED - no SEGV recieved\n");
@@ -104,4 +102,3 @@
exit(0);
};
-
Home |
Main Index |
Thread Index |
Old Index