Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/include GCC 2.96 wants the = constraint first. ...
details: https://anonhg.NetBSD.org/src/rev/c6c60ddd0ad3
branches: trunk
changeset: 494096:c6c60ddd0ad3
user: matt <matt%NetBSD.org@localhost>
date: Sat Jul 01 06:43:42 2000 +0000
description:
GCC 2.96 wants the = constraint first. Older gcc(s) don't care.
diffstat:
sys/arch/vax/include/byte_swap.h | 4 ++--
sys/arch/vax/include/intr.h | 6 +++---
sys/arch/vax/include/macros.h | 8 ++++----
sys/arch/vax/include/pte.h | 4 ++--
4 files changed, 11 insertions(+), 11 deletions(-)
diffs (99 lines):
diff -r 1b49bea98c7d -r c6c60ddd0ad3 sys/arch/vax/include/byte_swap.h
--- a/sys/arch/vax/include/byte_swap.h Sat Jul 01 06:42:54 2000 +0000
+++ b/sys/arch/vax/include/byte_swap.h Sat Jul 01 06:43:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: byte_swap.h,v 1.1 1999/01/15 13:31:28 bouyer Exp $ */
+/* $NetBSD: byte_swap.h,v 1.2 2000/07/01 06:43:42 matt Exp $ */
/*
* Copyright (c) 1987, 1991 Regents of the University of California.
@@ -45,7 +45,7 @@
insv %0, $16, $8, %0; \
rotl $8, %1, r1; \
movb r1, %0" \
- : "&=r" (__y) \
+ : "=&r" (__y) \
: "r" (__x) \
: "r1", "cc" ); \
__y; })
diff -r 1b49bea98c7d -r c6c60ddd0ad3 sys/arch/vax/include/intr.h
--- a/sys/arch/vax/include/intr.h Sat Jul 01 06:42:54 2000 +0000
+++ b/sys/arch/vax/include/intr.h Sat Jul 01 06:43:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.4 2000/06/11 23:33:37 matt Exp $ */
+/* $NetBSD: intr.h,v 1.5 2000/07/01 06:43:42 matt Exp $ */
/*
* Copyright (c) 1998 Matt Thomas.
@@ -73,7 +73,7 @@
({ \
register int val; \
__asm __volatile ("mfpr $0x12,%0;mtpr %1,$0x12" \
- : "&=g" (val) \
+ : "=&g" (val) \
: "g" (reg)); \
val; \
})
@@ -89,7 +89,7 @@
({ \
register int val; \
__asm __volatile ("mfpr $0x12,%0" \
- : "&=g" (val) \
+ : "=&g" (val) \
: ); \
if ((reg) > val) { \
_splset(reg); \
diff -r 1b49bea98c7d -r c6c60ddd0ad3 sys/arch/vax/include/macros.h
--- a/sys/arch/vax/include/macros.h Sat Jul 01 06:42:54 2000 +0000
+++ b/sys/arch/vax/include/macros.h Sat Jul 01 06:43:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: macros.h,v 1.18 2000/04/09 16:37:09 ragge Exp $ */
+/* $NetBSD: macros.h,v 1.19 2000/07/01 06:43:43 matt Exp $ */
/*
* Copyright (c) 1994, 1998, 2000 Ludd, University of Lule}, Sweden.
@@ -46,7 +46,7 @@
bneq 1f
mnegl $1,%0
1: incl %0"
- : "&=r" (val)
+ : "=&r" (val)
: "r" (reg) );
return val;
}
@@ -301,7 +301,7 @@
brb 1f;
2: clrl %0;
1:;"
- : "&=g"(ret)
+ : "=&g"(ret)
: "r"(entry), "r"(header)
: "memory");
@@ -326,7 +326,7 @@
brb 3f;
2: clrl %0;
3:;"
- : "&=g"(ret)
+ : "=&g"(ret)
: "r"(header)
: "memory");
diff -r 1b49bea98c7d -r c6c60ddd0ad3 sys/arch/vax/include/pte.h
--- a/sys/arch/vax/include/pte.h Sat Jul 01 06:42:54 2000 +0000
+++ b/sys/arch/vax/include/pte.h Sat Jul 01 06:43:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pte.h,v 1.14 2000/05/27 21:17:06 ragge Exp $ */
+/* $NetBSD: pte.h,v 1.15 2000/07/01 06:43:43 matt Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -89,7 +89,7 @@
#define kvtophys(va) ({ \
long r; \
asm("extzv $9,$21,%1,%0;ashl $9,*_Sysmap[%0],%0;insv %1,$0,$9,%0" \
- : "&=r"(r) : "g"(va) : "cc"); \
+ : "=&r"(r) : "g"(va) : "cc"); \
r; \
})
#else /* __GNUC__ */
Home |
Main Index |
Thread Index |
Old Index