Source-Changes-HG archive

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

[src/trunk]: src/sys/arch fix wrong integer promotion rule(removed U suffix f...



details:   https://anonhg.NetBSD.org/src/rev/7fd2de33befe
branches:  trunk
changeset: 755237:7fd2de33befe
user:      tnozaki <tnozaki%NetBSD.org@localhost>
date:      Sat May 29 17:33:57 2010 +0000

description:
fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C).
see ISO/IEC 9899:1999 7.18.4.3.

diffstat:

 sys/arch/alpha/include/int_const.h   |  6 +++---
 sys/arch/amd64/include/int_const.h   |  6 +++---
 sys/arch/arm/include/int_const.h     |  6 +++---
 sys/arch/hppa/include/int_const.h    |  6 +++---
 sys/arch/i386/include/int_const.h    |  6 +++---
 sys/arch/ia64/include/int_const.h    |  6 +++---
 sys/arch/m68k/include/int_const.h    |  6 +++---
 sys/arch/mips/include/int_const.h    |  6 +++---
 sys/arch/powerpc/include/int_const.h |  6 +++---
 sys/arch/sh3/include/int_const.h     |  6 +++---
 sys/arch/sparc/include/int_const.h   |  6 +++---
 11 files changed, 33 insertions(+), 33 deletions(-)

diffs (220 lines):

diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/alpha/include/int_const.h
--- a/sys/arch/alpha/include/int_const.h        Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/alpha/include/int_const.h        Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:11 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## L
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## UL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/amd64/include/int_const.h
--- a/sys/arch/amd64/include/int_const.h        Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/amd64/include/int_const.h        Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.3 2008/10/26 00:08:15 mrg Exp $        */
+/*     $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -45,8 +45,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## L
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## UL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/arm/include/int_const.h
--- a/sys/arch/arm/include/int_const.h  Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/arm/include/int_const.h  Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:14 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## LL
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## ULL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/hppa/include/int_const.h
--- a/sys/arch/hppa/include/int_const.h Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/hppa/include/int_const.h Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:23 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## LL
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## ULL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/i386/include/int_const.h
--- a/sys/arch/i386/include/int_const.h Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/i386/include/int_const.h Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:24 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## LL
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## ULL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/ia64/include/int_const.h
--- a/sys/arch/ia64/include/int_const.h Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/ia64/include/int_const.h Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:25 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -44,8 +44,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## L
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## UL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/m68k/include/int_const.h
--- a/sys/arch/m68k/include/int_const.h Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/m68k/include/int_const.h Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:26 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## LL
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## ULL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/mips/include/int_const.h
--- a/sys/arch/mips/include/int_const.h Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/mips/include/int_const.h Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.3 2008/04/28 20:23:28 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:57 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -47,8 +47,8 @@
 #define        INT64_C(c)      c ## LL
 #endif
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #ifdef _LP64
 #define        UINT64_C(c)     c ## UL
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/powerpc/include/int_const.h
--- a/sys/arch/powerpc/include/int_const.h      Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/powerpc/include/int_const.h      Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.3 2008/04/28 20:23:32 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:58 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -47,8 +47,8 @@
 #define        INT64_C(c)      c ## LL
 #endif
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #ifdef _LP64
 #define        UINT64_C(c)     c ## UL
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/sh3/include/int_const.h
--- a/sys/arch/sh3/include/int_const.h  Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/sh3/include/int_const.h  Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.3 2008/04/28 20:23:35 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:58 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
 #define        INT32_C(c)      c
 #define        INT64_C(c)      c ## LL
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #define        UINT64_C(c)     c ## ULL
 
diff -r ccb04f364b66 -r 7fd2de33befe sys/arch/sparc/include/int_const.h
--- a/sys/arch/sparc/include/int_const.h        Sat May 29 16:52:33 2010 +0000
+++ b/sys/arch/sparc/include/int_const.h        Sat May 29 17:33:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:36 martin Exp $     */
+/*     $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:58 tnozaki Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -47,8 +47,8 @@
 #define        INT64_C(c)      c ## LL
 #endif
 
-#define        UINT8_C(c)      c ## U
-#define        UINT16_C(c)     c ## U
+#define        UINT8_C(c)      c
+#define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
 #ifdef __arch64__
 #define        UINT64_C(c)     c ## UL



Home | Main Index | Thread Index | Old Index