From dc71c99d49d983de0e4a956f533138f6561104f9 Mon Sep 17 00:00:00 2001 From: tnozaki Date: Sat, 29 May 2010 17:33:57 +0000 Subject: [PATCH] fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C). see ISO/IEC 9899:1999 7.18.4.3. --- 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(-) diff --git a/sys/arch/alpha/include/int_const.h b/sys/arch/alpha/include/int_const.h index 9c152ae80baa..51e0c67d575c 100644 --- a/sys/arch/alpha/include/int_const.h +++ b/sys/arch/alpha/include/int_const.h @@ -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 --git a/sys/arch/amd64/include/int_const.h b/sys/arch/amd64/include/int_const.h index 077a82462b7b..d47e88ed2d75 100644 --- a/sys/arch/amd64/include/int_const.h +++ b/sys/arch/amd64/include/int_const.h @@ -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 --git a/sys/arch/arm/include/int_const.h b/sys/arch/arm/include/int_const.h index 19213460eb63..264ae5dc5ae3 100644 --- a/sys/arch/arm/include/int_const.h +++ b/sys/arch/arm/include/int_const.h @@ -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 --git a/sys/arch/hppa/include/int_const.h b/sys/arch/hppa/include/int_const.h index 24d83cb659f3..cc686cf2d6ec 100644 --- a/sys/arch/hppa/include/int_const.h +++ b/sys/arch/hppa/include/int_const.h @@ -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 --git a/sys/arch/i386/include/int_const.h b/sys/arch/i386/include/int_const.h index 5c67312b1568..9a75f687024a 100644 --- a/sys/arch/i386/include/int_const.h +++ b/sys/arch/i386/include/int_const.h @@ -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 --git a/sys/arch/ia64/include/int_const.h b/sys/arch/ia64/include/int_const.h index c88b0db14ac0..054fa0545b61 100644 --- a/sys/arch/ia64/include/int_const.h +++ b/sys/arch/ia64/include/int_const.h @@ -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 --git a/sys/arch/m68k/include/int_const.h b/sys/arch/m68k/include/int_const.h index a71101e90f97..244b8964afcb 100644 --- a/sys/arch/m68k/include/int_const.h +++ b/sys/arch/m68k/include/int_const.h @@ -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 --git a/sys/arch/mips/include/int_const.h b/sys/arch/mips/include/int_const.h index 70172ca915fc..c6750edf6aa6 100644 --- a/sys/arch/mips/include/int_const.h +++ b/sys/arch/mips/include/int_const.h @@ -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 --git a/sys/arch/powerpc/include/int_const.h b/sys/arch/powerpc/include/int_const.h index e760aeb2a061..aecfa36e5487 100644 --- a/sys/arch/powerpc/include/int_const.h +++ b/sys/arch/powerpc/include/int_const.h @@ -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 --git a/sys/arch/sh3/include/int_const.h b/sys/arch/sh3/include/int_const.h index be3929be8a09..43dbf0cc4fc3 100644 --- a/sys/arch/sh3/include/int_const.h +++ b/sys/arch/sh3/include/int_const.h @@ -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 --git a/sys/arch/sparc/include/int_const.h b/sys/arch/sparc/include/int_const.h index dea7745e3be5..3a7df81a30b1 100644 --- a/sys/arch/sparc/include/int_const.h +++ b/sys/arch/sparc/include/int_const.h @@ -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