* sys/types.h: Protect use of long long by __extension__.
* stdlib/stdlib.h: Likewise.
* string/string.h: Likewise.
* sysdeps/i386/bits/byteswap.h: Likewise.
* sysdeps/geeric/bits/byteswap.h: Likewise.
* sysdeps/i386/fpu/bits/mathinline.h: Likewise.
* sysdeps/unix/sysv/linux/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
* sysdeps/wordsize-32/inttypes.h: Likewise.
* sysdeps/wordsize-32/stdint.h: Likewise.
* wcsmbs/wchar.h: Likewise.
* timezone/europe: Update from tzdata1998i.
* timezone/southamerica: Likewise.
+ * sys/types.h: Protect use of long long by __extension__.
+ * stdlib/stdlib.h: Likewise.
+ * string/string.h: Likewise.
+ * sysdeps/i386/bits/byteswap.h: Likewise.
+ * sysdeps/geeric/bits/byteswap.h: Likewise.
+ * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
+ * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
+ * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
+ * sysdeps/wordsize-32/inttypes.h: Likewise.
+ * sysdeps/wordsize-32/stdint.h: Likewise.
+ * wcsmbs/wchar.h: Likewise.
+
1998-09-29 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* string/bits/string2.h (__string2_1bptr_p): Don't use a statement
#if defined __GNUC__ && __GNUC__ >= 2
/* Swap bytes in 64 bit value. */
# define __bswap_64(x) \
- ({ union { unsigned long long int __ll; \
- unsigned long int __l[2]; } __v, __r; \
- __v.__ll = (x); \
- __r.__l[0] = __bswap_32 (__v.__l[1]); \
- __r.__l[1] = __bswap_32 (__v.__l[0]); \
- __r.__ll; })
+ (__extension__ \
+ ({ union { unsigned long long int __ll; \
+ unsigned long int __l[2]; } __v, __r; \
+ __v.__ll = (x); \
+ __r.__l[0] = __bswap_32 (__v.__l[1]); \
+ __r.__l[1] = __bswap_32 (__v.__l[0]); \
+ __r.__ll; }))
#endif
typedef short int int16_t;
typedef int int32_t;
# ifdef __GNUC__
-typedef long long int int64_t;
+__extension__ typedef long long int int64_t;
# endif
# endif
typedef unsigned short int u_int16_t;
typedef unsigned int u_int32_t;
# ifdef __GNUC__
-typedef unsigned long long int u_int64_t;
+__extension__ typedef unsigned long long int u_int64_t;
# endif
typedef int register_t;
#ifdef __USE_ISOC9X
/* Returned by `lldiv'. */
-typedef struct
+__extension__ typedef struct
{
long long int quot; /* Quotient. */
long long int rem; /* Remainder. */
#if defined __USE_ISOC9X || (defined __GNUC__ && defined __USE_MISC)
/* These functions will part of the standard C library in ISO C 9X. */
-extern long long int atoll __P ((__const char *__nptr));
+__extension__ extern long long int atoll __P ((__const char *__nptr));
#endif
/* Convert a string to a floating-point number. */
#if defined __GNUC__ && defined __USE_BSD
/* Convert a string to a quadword integer. */
+__extension__
extern long long int strtoq __P ((__const char *__restrict __nptr,
char **__restrict __endptr, int __base));
/* Convert a string to an unsigned quadword integer. */
+__extension__
extern unsigned long long int strtouq __P ((__const char *__restrict __nptr,
char **__restrict __endptr,
int __base));
/* These functions will part of the standard C library in ISO C 9X. */
/* Convert a string to a quadword integer. */
+__extension__
extern long long int strtoll __P ((__const char *__restrict __nptr,
char **__restrict __endptr, int __base));
/* Convert a string to an unsigned quadword integer. */
+__extension__
extern unsigned long long int strtoull __P ((__const char *__restrict __nptr,
char **__restrict __endptr,
int __base));
char **__restrict __endptr,
int __base, __locale_t __loc));
+__extension__
extern long long int __strtoll_l __P ((__const char *__restrict __nptr,
char **__restrict __endptr, int __base,
__locale_t __loc));
+__extension__
extern unsigned long long int __strtoull_l __P ((__const char *__restrict
__nptr,
char **__restrict __endptr,
#endif
#if defined __GNUC__ || defined __USE_ISOC9X
# ifndef __strtoll_internal_defined
+__extension__
extern long long int __strtoll_internal __P ((__const char *__restrict __nptr,
char **__restrict __endptr,
int __base, int __group));
# define __strtoll_internal_defined 1
# endif
# ifndef __strtoull_internal_defined
+__extension__
extern unsigned long long int __strtoull_internal __P ((__const char *
__restrict __nptr,
char **
# endif
# ifdef __USE_BSD
-extern __inline long long int
+__extension__ extern __inline long long int
strtoq (__const char *__restrict __nptr, char **__restrict __endptr,
int __base)
{
return __strtoll_internal (__nptr, __endptr, __base, 0);
}
-extern __inline unsigned long long int
+__extension__ extern __inline unsigned long long int
strtouq (__const char *__restrict __nptr, char **__restrict __endptr,
int __base)
{
# endif
# if defined __USE_MISC || defined __USE_ISOC9X
-extern __inline long long int
+__extension__ extern __inline long long int
strtoll (__const char *__restrict __nptr, char **__restrict __endptr,
int __base)
{
return __strtoll_internal (__nptr, __endptr, __base, 0);
}
-extern __inline unsigned long long int
+__extension__ extern __inline unsigned long long int
strtoull (__const char * __restrict __nptr, char **__restrict __endptr,
int __base)
{
}
# if defined __USE_MISC || defined __USE_ISOC9X
-extern __inline long long int
+__extension__ extern __inline long long int
atoll (__const char *__nptr)
{
return strtoll (__nptr, (char **) NULL, 10);
extern int abs __P ((int __x)) __attribute__ ((__const__));
extern long int labs __P ((long int __x)) __attribute__ ((__const__));
#ifdef __USE_ISOC9X
-extern long long int llabs __P ((long long int __x))
+__extension__ extern long long int llabs __P ((long long int __x))
__attribute__ ((__const__));
#endif
extern ldiv_t ldiv __P ((long int __numer, long int __denom))
__attribute__ ((__const__));
#ifdef __USE_ISOC9X
-extern lldiv_t lldiv __P ((long long int __numer, long long int __denom))
+__extension__ extern lldiv_t lldiv __P ((long long int __numer,
+ long long int __denom))
__attribute__ ((__const__));
#endif
# ifdef __USE_GNU
extern int ffsl __P ((long int __l)) __attribute__ ((const));
# ifdef __GNUC__
-extern int ffsll __P ((long long int __ll)) __attribute__ ((const));
+__extension__ extern int ffsll __P ((long long int __ll))
+ __attribute__ ((const));
# endif
# endif
#if defined __GNUC__ && __GNUC__ >= 2
/* Swap bytes in 64 bit value. */
# define __bswap_64(x) \
- ({ union { unsigned long long int __ll; \
- unsigned long int __l[2]; } __v, __r; \
- __v.__ll = (x); \
- __r.__l[0] = __bswap_32 (__v.__l[1]); \
- __r.__l[1] = __bswap_32 (__v.__l[0]); \
- __r.__ll; })
+ (__extension__ \
+ ({ union { unsigned long long int __ll; \
+ unsigned long int __l[2]; } __v, __r; \
+ __v.__ll = (x); \
+ __r.__l[0] = __bswap_32 (__v.__l[1]); \
+ __r.__l[1] = __bswap_32 (__v.__l[0]); \
+ __r.__ll; }))
#endif
#if defined __GNUC__ && __GNUC__ >= 2
# define __bswap_16(x) \
- ({ register unsigned short int __v; \
- if (__builtin_constant_p (x)) \
- __v = __bswap_constant_16 (x); \
- else \
- __asm__ __volatile__ ("rorw $8, %w0" \
- : "=r" (__v) \
- : "0" ((unsigned short int) (x)) \
- : "cc"); \
- __v; })
+ (__extension__ \
+ ({ register unsigned short int __v; \
+ if (__builtin_constant_p (x)) \
+ __v = __bswap_constant_16 (x); \
+ else \
+ __asm__ __volatile__ ("rorw $8, %w0" \
+ : "=r" (__v) \
+ : "0" ((unsigned short int) (x)) \
+ : "cc"); \
+ __v; }))
#else
/* This is better than nothing. */
# define __bswap_16(x) __bswap_constant_16 (x)
`bswap' opcode. On i386 we have to use three instructions. */
# if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__
# define __bswap_32(x) \
- ({ register unsigned int __v; \
- if (__builtin_constant_p (x)) \
- __v = __bswap_constant_32 (x); \
- else \
- __asm__ __volatile__ ("rorw $8, %w0;" \
- "rorl $16, %0;" \
- "rorw $8, %w0" \
- : "=r" (__v) \
- : "0" ((unsigned int) (x)) \
- : "cc"); \
- __v; })
+ (__extension__ \
+ ({ register unsigned int __v; \
+ if (__builtin_constant_p (x)) \
+ __v = __bswap_constant_32 (x); \
+ else \
+ __asm__ __volatile__ ("rorw $8, %w0;" \
+ "rorl $16, %0;" \
+ "rorw $8, %w0" \
+ : "=r" (__v) \
+ : "0" ((unsigned int) (x)) \
+ : "cc"); \
+ __v; }))
# else
# define __bswap_32(x) \
- ({ register unsigned int __v; \
- if (__builtin_constant_p (x)) \
- __v = __bswap_constant_32 (x); \
- else \
- __asm__ __volatile__ ("bswap %0" \
- : "=r" (__v) \
- : "0" ((unsigned int) (x))); \
- __v; })
+ (__extension__ \
+ ({ register unsigned int __v; \
+ if (__builtin_constant_p (x)) \
+ __v = __bswap_constant_32 (x); \
+ else \
+ __asm__ __volatile__ ("bswap %0" \
+ : "=r" (__v) \
+ : "0" ((unsigned int) (x))); \
+ __v; }))
# endif
#else
# define __bswap_32(x) __bswap_constant_32 (x)
#if defined __GNUC__ && __GNUC__ >= 2
/* Swap bytes in 64 bit value. */
# define __bswap_64(x) \
- ({ union { unsigned long long int __ll; \
- unsigned long int __l[2]; } __w, __r; \
- __w.__ll = (x); \
- __r.__l[0] = __bswap_32 (__w.__l[1]); \
- __r.__l[1] = __bswap_32 (__w.__l[0]); \
- __r.__ll; })
+ (__extension__ \
+ ({ union { __extension__ unsigned long long int __ll; \
+ unsigned long int __l[2]; } __w, __r; \
+ __w.__ll = (x); \
+ __r.__l[0] = __bswap_32 (__w.__l[1]); \
+ __r.__l[1] = __bswap_32 (__w.__l[0]); \
+ __r.__ll; }))
#endif
__inline_mathcode (__pow2, __x, \
register long double __value; \
register long double __exponent; \
- long long int __p = (long long int) __x; \
+ __extension__ long long int __p = (long long int) __x; \
if (__x == (long double) __p) \
{ \
__asm __volatile__ \
__inline_mathcode2 (pow, __x, __y, \
register long double __value; \
register long double __exponent; \
- long long int __p = (long long int) __y; \
+ __extension__ long long int __p = (long long int) __y; \
if (__x == 0.0 && __y > 0.0) \
return 0.0; \
if (__y == (double) __p) \
typedef unsigned int __u_int;
typedef unsigned long __u_long;
#ifdef __GNUC__
-typedef unsigned long long int __u_quad_t;
-typedef long long int __quad_t;
+__extension__ typedef unsigned long long int __u_quad_t;
+__extension__ typedef long long int __quad_t;
#else
typedef struct
{
typedef signed int __int32_t;
typedef unsigned int __uint32_t;
#ifdef __GNUC__
-typedef signed long long int __int64_t;
-typedef unsigned long long int __uint64_t;
+__extension__ typedef signed long long int __int64_t;
+__extension__ typedef unsigned long long int __uint64_t;
#endif
typedef __quad_t *__qaddr_t;
typedef unsigned int __u_int;
typedef unsigned long __u_long;
#ifdef __GNUC__
-typedef unsigned long long int __u_quad_t;
-typedef long long int __quad_t;
+__extension__ typedef unsigned long long int __u_quad_t;
+__extension__ typedef long long int __quad_t;
#else
typedef struct
{
typedef signed int __int32_t;
typedef unsigned int __uint32_t;
#ifdef __GNUC__
-typedef signed long long int __int64_t;
-typedef unsigned long long int __uint64_t;
+__extension__ typedef signed long long int __int64_t;
+__extension__ typedef unsigned long long int __uint64_t;
#endif
typedef __quad_t *__qaddr_t;
/* Like `strtol' but convert to `intmax_t'. */
# ifndef __strtoll_internal_defined
+__extension__
extern long long int __strtoll_internal __P ((__const char *__restrict __nptr,
char **__restrict __endptr,
int __base, int __group));
/* Like `strtoul' but convert to `uintmax_t'. */
# ifndef __strtoull_internal_defined
+__extension__
extern unsigned long long int __strtoull_internal __P ((__const char *
__restrict __nptr,
char **
/* Like `wcstol' but convert to `intmax_t'. */
# ifndef __wcstoll_internal_defined
+__extension__
extern long long int __wcstoll_internal __P ((__const wchar_t *
__restrict __nptr,
wchar_t **__restrict __endptr,
/* Like `wcstoul' but convert to `uintmax_t'. */
# ifndef __wcstoull_internal_defined
+__extension__
extern unsigned long long int __wcstoull_internal __P ((__const wchar_t *
__restrict __nptr,
wchar_t **
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
+__extension__
typedef long long int int64_t;
#endif
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
+__extension__
typedef unsigned long long int uint64_t;
typedef signed char int_least8_t;
typedef short int int_least16_t;
typedef int int_least32_t;
+__extension__
typedef long long int int_least64_t;
/* Unsigned. */
typedef unsigned char uint_least8_t;
typedef unsigned short int uint_least16_t;
typedef unsigned int uint_least32_t;
+__extension__
typedef unsigned long long int uint_least64_t;
typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
+__extension__
typedef long long int int_fast64_t;
/* Unsigned. */
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
+__extension__
typedef unsigned long long int uint_fast64_t;
/* Largest integral types. */
-typedef long long int intmax_t;
-typedef unsigned long long int uintmax_t;
+__extension__ typedef long long int intmax_t;
+__extension__ typedef unsigned long long int uintmax_t;
/* The ISO C 9X standard specifies that these macros must only be
#if defined __GNUC__ && defined __USE_GNU
/* Convert initial portion of wide string NPTR to `long int'
representation. */
+__extension__
extern long long int wcstoq __P ((__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr, int __base));
/* Convert initial portion of wide string NPTR to `unsigned long long int'
representation. */
+__extension__
extern unsigned long long int wcstouq __P ((__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr,
int __base));
#if defined __USE_ISOC9X || (defined __GNUC__ && defined __USE_GNU)
/* Convert initial portion of wide string NPTR to `long int'
representation. */
+__extension__
extern long long int wcstoll __P ((__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr, int __base));
/* Convert initial portion of wide string NPTR to `unsigned long long int'
representation. */
+__extension__
extern unsigned long long int wcstoull __P ((__const wchar_t *
__restrict __nptr,
wchar_t **__restrict __endptr,
wchar_t **__restrict __endptr,
int __base, __locale_t __loc));
+__extension__
extern long long int __wcstoll_l __P ((__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr,
int __base, __locale_t __loc));
+__extension__
extern unsigned long long int __wcstoull_l __P ((__const wchar_t *__restrict
__nptr,
wchar_t **__restrict __endptr,
# define __wcstoul_internal_defined 1
#endif
#ifndef __wcstoll_internal_defined
+__extension__
extern long long int __wcstoll_internal __P ((__const wchar_t *
__restrict __nptr,
wchar_t **__restrict __endptr,
# define __wcstoll_internal_defined 1
#endif
#ifndef __wcstoull_internal_defined
+__extension__
extern unsigned long long int __wcstoull_internal __P ((__const wchar_t *
__restrict __nptr,
wchar_t **
{ return __wcstold_internal (__nptr, __endptr, 0); }
+__extension__
extern __inline long long int wcstoq (__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr,
int __base)
{ return __wcstoll_internal (__nptr, __endptr, __base, 0); }
+__extension__
extern __inline unsigned long long int wcstouq (__const wchar_t *
__restrict __nptr,
wchar_t **__restrict __endptr,