Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/pc532/fpu Pacify gcc 2.95.3: put an "=" output cons...



details:   https://anonhg.NetBSD.org/src/rev/85852939e562
branches:  trunk
changeset: 515334:85852939e562
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Sep 22 06:30:17 2001 +0000

description:
Pacify gcc 2.95.3: put an "=" output constraint at the start in an
asm argument.
Also, wrap >80 character line.

diffstat:

 sys/arch/pc532/fpu/fpu_status.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 1b79ec53ce83 -r 85852939e562 sys/arch/pc532/fpu/fpu_status.h
--- a/sys/arch/pc532/fpu/fpu_status.h   Sat Sep 22 05:58:04 2001 +0000
+++ b/sys/arch/pc532/fpu/fpu_status.h   Sat Sep 22 06:30:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_status.h,v 1.2 1997/04/01 16:35:12 matthias Exp $  */
+/*     $NetBSD: fpu_status.h,v 1.3 2001/09/22 06:30:17 simonb Exp $    */
 
 /* 
  * IEEE floating point support for NS32081 and NS32381 fpus.
@@ -63,7 +63,10 @@
 #define FPC_DZF  0x4000                /* Divide by zero flag */
 #define FPC_UNDE 0x8000                /* Soft Underflow enable, requires FPC_UEN */
 
-#define GET_SET_FSR(val) ({int _tmp; asm volatile("sfsr %0; lfsr %1" : "&=g" (_tmp): "g" (val)); _tmp;})
+#define GET_SET_FSR(val) ({                                            \
+       int _tmp;                                                       \
+       asm volatile("sfsr %0; lfsr %1" : "=&g" (_tmp): "g" (val)); _tmp; \
+})
 #define GET_FSR() ({int _tmp; asm volatile("sfsr %0" : "=g" (_tmp)); _tmp;})
 #define SET_FSR(val) ({asm volatile("lfsr %0" :: "g" (val));})
 



Home | Main Index | Thread Index | Old Index