Remove __GLIBC_HAVE_LONG_LONG.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 11 Jan 2013 21:13:25 +0000 (21:13 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 11 Jan 2013 21:13:25 +0000 (21:13 +0000)
ChangeLog
bits/byteswap.h
bits/types.h
include/features.h
posix/sys/types.h
stdlib/stdlib.h
string/byteswap.h
string/endian.h
sysdeps/s390/bits/byteswap.h
sysdeps/unix/sysv/linux/sys/sysmacros.h
sysdeps/x86/bits/byteswap.h

index 3feff6fc62c52464691db250b751a1fea1c2ca41..3ffd8fd43d6eeb96131ff975020e69cd4394d968 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+2013-01-11  Joseph Myers  <joseph@codesourcery.com>
+
+       * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
+       * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
+       to just #else.
+       * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
+       [!__GLIBC_HAVE_LONG_LONG] case.
+       * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
+       condition to just #else.
+       * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
+       __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
+       [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
+       * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
+       unconditional.
+       * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
+       * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
+       #elif condition to just #else.
+       * sysdeps/unix/sysv/linux/sys/sysmacros.h
+       [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
+       * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
+       #elif condition to just #else.
+
 2013-01-11  Steve Ellcey  <sellcey@mips.com>
 
        * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
index 35d4cb366334f52a0fe64df6cc8d54b336ee23b0..57d34b461a77957f526e22265092bf9971dac0b9 100644 (file)
@@ -91,7 +91,7 @@ __bswap_64 (__uint64_t __bsx)
           }                                                                  \
         __r.__ll; }))
 # endif
-#elif __GLIBC_HAVE_LONG_LONG
+#else
 # define __bswap_constant_64(x) \
      ((((x) & 0xff00000000000000ull) >> 56)                                  \
       | (((x) & 0x00ff000000000000ull) >> 40)                                \
index c45d6e4367d16f1f9d799c6f62d96d4579e7549e..dc7b784f965749c44257bf030508d6642c07dec7 100644 (file)
@@ -42,7 +42,7 @@ typedef unsigned int __uint32_t;
 #if __WORDSIZE == 64
 typedef signed long int __int64_t;
 typedef unsigned long int __uint64_t;
-#elif defined __GLIBC_HAVE_LONG_LONG
+#else
 __extension__ typedef signed long long int __int64_t;
 __extension__ typedef unsigned long long int __uint64_t;
 #endif
@@ -51,18 +51,9 @@ __extension__ typedef unsigned long long int __uint64_t;
 #if __WORDSIZE == 64
 typedef long int __quad_t;
 typedef unsigned long int __u_quad_t;
-#elif defined __GLIBC_HAVE_LONG_LONG
+#else
 __extension__ typedef long long int __quad_t;
 __extension__ typedef unsigned long long int __u_quad_t;
-#else
-typedef struct
-{
-  long __val[2];
-} __quad_t;
-typedef struct
-{
-  __u_long __val[2];
-} __u_quad_t;
 #endif
 
 
index d6c32cbfda673193ad5baf9222a6a3e177c55f16..ca83da05ebff4f0e043f792935f5a8372c9949df 100644 (file)
 #define __GLIBC_PREREQ(maj, min) \
        ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
 
-/* Decide whether a compiler supports the long long datatypes.  */
-#if defined __GNUC__ \
-    || (defined __PGI && defined __i386__ ) \
-    || (defined __INTEL_COMPILER && (defined __i386__ || defined __ia64__)) \
-    || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
-# define __GLIBC_HAVE_LONG_LONG        1
-#endif
-
 /* This is here only because every header file already includes this one.  */
 #ifndef __ASSEMBLER__
 # ifndef _SYS_CDEFS_H
index b36b561dba097861f9164b45135be79a05f5b0c6..33c2176d0f0b38f1a81bf8c76d38f08d2ab38675 100644 (file)
@@ -164,7 +164,7 @@ typedef     short int int16_t;
 typedef        int int32_t;
 #  if __WORDSIZE == 64
 typedef long int int64_t;
-#  elif __GLIBC_HAVE_LONG_LONG
+#  else
 __extension__ typedef long long int int64_t;
 #  endif
 # endif
@@ -175,7 +175,7 @@ typedef     unsigned short int u_int16_t;
 typedef        unsigned int u_int32_t;
 # if __WORDSIZE == 64
 typedef unsigned long int u_int64_t;
-# elif __GLIBC_HAVE_LONG_LONG
+# else
 __extension__ typedef unsigned long long int u_int64_t;
 # endif
 
index 41fb7e711e2c9d86951f79118936b90e34bddbd2..b49a41cc5dfd35b6497e41f0534b8271c44c159f 100644 (file)
@@ -151,7 +151,7 @@ extern long int atol (const char *__nptr)
      __THROW __attribute_pure__ __nonnull ((1)) __wur;
 __END_NAMESPACE_STD
 
-#if defined __USE_ISOC99 || (defined __GLIBC_HAVE_LONG_LONG && defined __USE_MISC)
+#if defined __USE_ISOC99 || defined __USE_MISC
 __BEGIN_NAMESPACE_C99
 /* Convert a string to a long long integer.  */
 __extension__ extern long long int atoll (const char *__nptr)
@@ -189,7 +189,7 @@ extern unsigned long int strtoul (const char *__restrict __nptr,
      __THROW __nonnull ((1));
 __END_NAMESPACE_STD
 
-#if defined __GLIBC_HAVE_LONG_LONG && defined __USE_BSD
+#ifdef __USE_BSD
 /* Convert a string to a quadword integer.  */
 __extension__
 extern long long int strtoq (const char *__restrict __nptr,
@@ -200,9 +200,9 @@ __extension__
 extern unsigned long long int strtouq (const char *__restrict __nptr,
                                       char **__restrict __endptr, int __base)
      __THROW __nonnull ((1));
-#endif /* GCC and use BSD.  */
+#endif /* Use BSD.  */
 
-#if defined __USE_ISOC99 || (defined __GLIBC_HAVE_LONG_LONG && defined __USE_MISC)
+#if defined __USE_ISOC99 || defined __USE_MISC
 __BEGIN_NAMESPACE_C99
 /* Convert a string to a quadword integer.  */
 __extension__
@@ -215,7 +215,7 @@ extern unsigned long long int strtoull (const char *__restrict __nptr,
                                        char **__restrict __endptr, int __base)
      __THROW __nonnull ((1));
 __END_NAMESPACE_C99
-#endif /* ISO C99 or GCC and use MISC.  */
+#endif /* ISO C99 or use MISC.  */
 
 
 #ifdef __USE_GNU
index a31e902bee4406fcd4ed5c191de3a5786acf8b4d..705015f055e55ced5c1a919084d7fc1f132156a9 100644 (file)
@@ -33,9 +33,7 @@
 /* Return a value with all bytes in the 32 bit argument swapped.  */
 #define bswap_32(x) __bswap_32 (x)
 
-#if __GLIBC_HAVE_LONG_LONG
 /* Return a value with all bytes in the 64 bit argument swapped.  */
-# define bswap_64(x) __bswap_64 (x)
-#endif
+#define bswap_64(x) __bswap_64 (x)
 
 #endif /* byteswap.h */
index 9ae5f2dd7acd5b5f16c0529ff291681c0299d5b1..f414cb150345e34a62592ad1ebe4808e9b23bbed 100644 (file)
 #  define be32toh(x) __bswap_32 (x)
 #  define le32toh(x) (x)
 
-#  if __GLIBC_HAVE_LONG_LONG
-#   define htobe64(x) __bswap_64 (x)
-#   define htole64(x) (x)
-#   define be64toh(x) __bswap_64 (x)
-#   define le64toh(x) (x)
-#  endif
+#  define htobe64(x) __bswap_64 (x)
+#  define htole64(x) (x)
+#  define be64toh(x) __bswap_64 (x)
+#  define le64toh(x) (x)
 
 # else
 #  define htobe16(x) (x)
 #  define be32toh(x) (x)
 #  define le32toh(x) __bswap_32 (x)
 
-#  if __GLIBC_HAVE_LONG_LONG
-#   define htobe64(x) (x)
-#   define htole64(x) __bswap_64 (x)
-#   define be64toh(x) (x)
-#   define le64toh(x) __bswap_64 (x)
-#  endif
+#  define htobe64(x) (x)
+#  define htole64(x) __bswap_64 (x)
+#  define be64toh(x) (x)
+#  define le64toh(x) __bswap_64 (x)
 # endif
 #endif
 
index 9221ea2cfc5bb37ac3aa1cc82a6bfda4394295c0..5d289120fc00a67d0add66443561eb5c0e3a1e1f 100644 (file)
@@ -112,7 +112,7 @@ __bswap_32 (unsigned int __bsx)
          __r.__l[1] = __bswap_32 (__w.__l[0]);         \
          __r.__ll; })
 # endif
-#elif __GLIBC_HAVE_LONG_LONG
+#else
 # define __bswap_constant_64(x) \
      ((((x) & 0xff00000000000000ull) >> 56)                                  \
       | (((x) & 0x00ff000000000000ull) >> 40)                                \
index 76eaf9f9d886ef21de14abdd60ee14ac43b167ef..a1f1b2697d06e5af787b064603cf32be98b5c310 100644 (file)
 
 #include <features.h>
 
-/* If the compiler does not know long long it is out of luck.  We are
-   not going to hack weird hacks to support the dev_t representation
-   they need.  */
-#ifdef __GLIBC_HAVE_LONG_LONG
 __BEGIN_DECLS
 
 __extension__
@@ -38,7 +34,7 @@ extern unsigned long long int gnu_dev_makedev (unsigned int __major,
                                               unsigned int __minor)
      __THROW __attribute_const__;
 
-# ifdef __USE_EXTERN_INLINES
+#ifdef __USE_EXTERN_INLINES
 __extension__ __extern_inline __attribute_const__ unsigned int
 __NTH (gnu_dev_major (unsigned long long int __dev))
 {
@@ -58,13 +54,12 @@ __NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor))
          | (((unsigned long long int) (__minor & ~0xff)) << 12)
          | (((unsigned long long int) (__major & ~0xfff)) << 32));
 }
-# endif
+#endif
 __END_DECLS
 
 /* Access the functions with their traditional names.  */
-# define major(dev) gnu_dev_major (dev)
-# define minor(dev) gnu_dev_minor (dev)
-# define makedev(maj, min) gnu_dev_makedev (maj, min)
-#endif
+#define major(dev) gnu_dev_major (dev)
+#define minor(dev) gnu_dev_minor (dev)
+#define makedev(maj, min) gnu_dev_makedev (maj, min)
 
 #endif /* sys/sysmacros.h */
index 0f96ba302606210bac9f78618798f01b37fb0307..9e2effc1a6768e4e84e49d1deec25af622b5e23c 100644 (file)
@@ -134,7 +134,7 @@ __bswap_64 (__uint64_t __bsx)
           }                                                                  \
         __r.__ll; }))
 # endif
-#elif __GLIBC_HAVE_LONG_LONG
+#else
 # define __bswap_constant_64(x) \
      ((((x) & 0xff00000000000000ull) >> 56)                                  \
       | (((x) & 0x00ff000000000000ull) >> 40)                                \