]> sourceware.org Git - glibc.git/commitdiff
Use __extension__ with long long in installed headers.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 10 Jan 2013 20:19:45 +0000 (20:19 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 10 Jan 2013 20:19:45 +0000 (20:19 +0000)
20 files changed:
ChangeLog
elf/link.h
math/bits/mathcalls.h
ports/ChangeLog.aarch64
ports/ChangeLog.hppa
ports/ChangeLog.m68k
ports/ChangeLog.mips
ports/sysdeps/aarch64/bits/setjmp.h
ports/sysdeps/hppa/fpu/fpu_control.h
ports/sysdeps/m68k/bits/byteswap.h
ports/sysdeps/unix/sysv/linux/hppa/bits/ipc.h
ports/sysdeps/unix/sysv/linux/mips/bits/sigcontext.h
stdlib/stdlib.h
sysdeps/generic/inttypes.h
sysdeps/s390/bits/byteswap.h
sysdeps/unix/sysv/linux/sparc/bits/ipc.h
sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
sysdeps/unix/sysv/linux/x86/sys/procfs.h
sysdeps/x86/bits/setjmp.h
sysdeps/x86/fpu/bits/mathinline.h

index abd0a35ca08734f48673f33eeeeefe7297e48140..08474f4594ab847da6921315e5ace088b2808916 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,25 @@
 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
 
+       * elf/link.h (struct dl_phdr_info): Use __extension__ with long
+       long.
+       * math/bits/mathcalls.h (llrint): Likewise.
+       (llround): Likewise.
+       * stdlib/stdlib.h (struct drand48_data): Likewise.
+       * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
+       * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
+       Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
+       Likewise.
+       * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
+       (elf_greg_t): Likewise.
+       * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
+       (__jmp_buf): Likewise.
+       * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
+       definitions.
+       (llrint): Likewise, for all definitions.
+       (llrintl): Likewise.
+
        * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
        Remove [__GNUC__] condition.
        * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
index 29e7ced063a5d28c485fcf8bba7e7dc1d31ba600..500871f451aba2b771205210b9618dc4fcf22c4f 100644 (file)
@@ -147,9 +147,9 @@ struct dl_phdr_info
        whether or not each later member is available.  */
 
     /* Incremented when a new object may have been added.  */
-    unsigned long long int dlpi_adds;
+    __extension__ unsigned long long int dlpi_adds;
     /* Incremented when an object may have been removed.  */
-    unsigned long long int dlpi_subs;
+    __extension__ unsigned long long int dlpi_subs;
 
     /* If there is a PT_TLS segment, its module ID as used in
        TLS relocations, else zero.  */
index 41b1367e76d2236c2be98f0866e7ca6a0c127108..e90a34b0f7f34c1e53663c34fcbde56daf3f7bda 100644 (file)
@@ -323,11 +323,13 @@ __MATHCALL (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo));
 /* Round X to nearest integral value according to current rounding
    direction.  */
 __MATHDECL (long int,lrint,, (_Mdouble_ __x));
+__extension__
 __MATHDECL (long long int,llrint,, (_Mdouble_ __x));
 
 /* Round X to nearest integral value, rounding halfway cases away from
    zero.  */
 __MATHDECL (long int,lround,, (_Mdouble_ __x));
+__extension__
 __MATHDECL (long long int,llround,, (_Mdouble_ __x));
 
 
index dd1d64cb6539e12b8e67739c4d76f825811936d8..eb9fb971d0295889203effe886f67aa771d75af0 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/aarch64/bits/setjmp.h (__jmp_buf): Use __extension__
+       with long long.
+
 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
 
        * All files with FSF copyright notices: Update copyright dates
index 2b798529b939eea5f06c0757f4225b6d53836e0b..ef904c26710d22c5e1d7bebe0f09d3523287d9f2 100644 (file)
@@ -1,3 +1,11 @@
+2013-01-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/hppa/fpu/fpu_control.h (_FPU_GETCW): Use __extension__
+       with long long.
+       (_FPU_SETCW): Likewise.
+       * sysdeps/unix/sysv/linux/hppa/bits/ipc.h (struct ipc_perm):
+       Likewise.
+
 2013-01-08  Andreas Jaeger  <aj@suse.de>
 
        [BZ# 14985]
index b6e93669ccdd88a3e77ffb93b5531c31463c5ac2..20eaac716df8f8f412acb5996ca8770dc0549d8f 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/m68k/bits/byteswap.h (__bswap_64): Use __extension__
+       with long long.
+
 2013-01-04  Andreas Schwab  <schwab@suse.de>
 
        * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
index 5a80540bc70b52cf915f892516c8e4296570d704..9e2bcffc666e8fb1f34a12b15754d988c7614e5c 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h (struct
+       sigcontext): Use __extension__ with long long in all definitions.
+
 2013-01-08  Steve Ellcey  <sellcey@mips.com>
 
        * sysdeps/mips/memcpy.S: Change prefetch hint, reorder partial
index 6d78b7e87979a0732561678cca3baa59eef2d291..6a93e0a2536e52eff25605fc3d5c8b256e49bff0 100644 (file)
@@ -27,7 +27,7 @@
 /* Jump buffer contains:
    x19-x28, x29(fp), x30(lr), (x31)sp, d8-d15.  Other registers are not
    saved.  */
-typedef unsigned long long __jmp_buf [22];
+__extension__ typedef unsigned long long __jmp_buf [22];
 
 #endif
 #endif
index 7aa16c9ddd996f5c9840e0c210624839befba59f..5cac3344d6fb2a28e84f80083f08fa1184614adf 100644 (file)
@@ -44,7 +44,7 @@ typedef unsigned int fpu_control_t;
 /* Macros for accessing the hardware control word.  */
 #define _FPU_GETCW(cw) \
 ({                                                                             \
-  union { unsigned long long __fpreg; unsigned int __halfreg[2]; } __fullfp;   \
+  union { __extension__ unsigned long long __fpreg; unsigned int __halfreg[2]; } __fullfp; \
   /* Get the current status word. */                                           \
   __asm__ ("fstd %%fr0,0(%1)\n\t"                                              \
            "fldd 0(%1),%%fr0\n\t"                                              \
@@ -54,7 +54,7 @@ typedef unsigned int fpu_control_t;
 
 #define _FPU_SETCW(cw) \
 ({                                                                             \
-  union { unsigned long long __fpreg; unsigned int __halfreg[2]; } __fullfp;   \
+  union { __extension__ unsigned long long __fpreg; unsigned int __halfreg[2]; } __fullfp;     \
   __fullfp.__halfreg[0] = cw;                                                  \
   __asm__ ("fldd 0(%1),%%fr0\n\t"                                              \
           : : "m" (__fullfp.__fpreg), "r" (__fullfp.__fpreg) : "%r0" );        \
index 4e4dd2341afec879efc56da01dabb192d48e6018..9f0a7b707aa5cd89c5ed6f6556b6332e9bcfe923 100644 (file)
@@ -74,6 +74,7 @@ __bswap_32 (unsigned int __bsx)
    | (((x) & 0x00000000000000ffull) << 56))
 
 /* Swap bytes in 64 bit value.  */
+__extension__
 static __inline unsigned long long
 __bswap_64 (unsigned long long __bsx)
 {
index bc07c1fa31c3b2aae227b3250d546daf0755b615..04a75e2e87fa16e8680b9878b4ebdc2a577169ad 100644 (file)
@@ -57,6 +57,6 @@ struct ipc_perm
 #endif
     unsigned short int __seq;          /* Sequence number.  */
     unsigned int __pad3;
-    unsigned long long int __unused1;
-    unsigned long long int __unused2;
+    __extension__ unsigned long long int __unused1;
+    __extension__ unsigned long long int __unused2;
   };
index 085a00d04a1a1cf5f62adf8f29efdb690e6229ff..f3c5180b8f9da29aa2db6b7d13c023a2a8f751ed 100644 (file)
 struct sigcontext {
   unsigned int sc_regmask;
   unsigned int sc_status;
-  unsigned long long sc_pc;
-  unsigned long long sc_regs[32];
-  unsigned long long sc_fpregs[32];
+  __extension__ unsigned long long sc_pc;
+  __extension__ unsigned long long sc_regs[32];
+  __extension__ unsigned long long sc_fpregs[32];
   unsigned int sc_ownedfp;
   unsigned int sc_fpc_csr;
   unsigned int sc_fpc_eir;
   unsigned int sc_used_math;
   unsigned int sc_dsp;
-  unsigned long long sc_mdhi;
-  unsigned long long sc_mdlo;
+  __extension__ unsigned long long sc_mdhi;
+  __extension__ unsigned long long sc_mdlo;
   unsigned long sc_hi1;
   unsigned long sc_lo1;
   unsigned long sc_hi2;
@@ -61,17 +61,17 @@ struct sigcontext {
 
 /* This structure changed in 2.6.12-rc4 when DSP support was added.  */
 struct sigcontext {
-  unsigned long long sc_regs[32];
-  unsigned long long sc_fpregs[32];
-  unsigned long long sc_mdhi;
-  unsigned long long sc_hi1;
-  unsigned long long sc_hi2;
-  unsigned long long sc_hi3;
-  unsigned long long sc_mdlo;
-  unsigned long long sc_lo1;
-  unsigned long long sc_lo2;
-  unsigned long long sc_lo3;
-  unsigned long long sc_pc;
+  __extension__ unsigned long long sc_regs[32];
+  __extension__ unsigned long long sc_fpregs[32];
+  __extension__ unsigned long long sc_mdhi;
+  __extension__ unsigned long long sc_hi1;
+  __extension__ unsigned long long sc_hi2;
+  __extension__ unsigned long long sc_hi3;
+  __extension__ unsigned long long sc_mdlo;
+  __extension__ unsigned long long sc_lo1;
+  __extension__ unsigned long long sc_lo2;
+  __extension__ unsigned long long sc_lo3;
+  __extension__ unsigned long long sc_pc;
   unsigned int sc_fpc_csr;
   unsigned int sc_used_math;
   unsigned int sc_dsp;
index 6bf708a1676f7943e3eb7c2ace6de3d06054c143..41fb7e711e2c9d86951f79118936b90e34bddbd2 100644 (file)
@@ -415,7 +415,8 @@ struct drand48_data
     unsigned short int __old_x[3]; /* Old state.  */
     unsigned short int __c;    /* Additive const. in congruential formula.  */
     unsigned short int __init; /* Flag for initializing.  */
-    unsigned long long int __a;        /* Factor in congruential formula.  */
+    __extension__ unsigned long long int __a;  /* Factor in congruential
+                                                  formula.  */
   };
 
 /* Return non-negative, double-precision floating-point value in [0.0,1.0).  */
index 47fe751e29a9516523db1f4276ef1b99bb837f54..dc97519056b885a315e970be946177c5cee0d491 100644 (file)
@@ -286,8 +286,8 @@ typedef struct
 /* We have to define the `uintmax_t' type using `lldiv_t'.  */
 typedef struct
   {
-    long long int quot;                /* Quotient.  */
-    long long int rem;         /* Remainder.  */
+    __extension__ long long int quot;  /* Quotient.  */
+    __extension__ long long int rem;   /* Remainder.  */
   } imaxdiv_t;
 
 #endif
index 6f96257005d9e1707bc0a59ce84b9fa151c953ed..9221ea2cfc5bb37ac3aa1cc82a6bfda4394295c0 100644 (file)
@@ -123,6 +123,7 @@ __bswap_32 (unsigned int __bsx)
       | (((x) & 0x000000000000ff00ull) << 40)                                \
       | (((x) & 0x00000000000000ffull) << 56))
 
+__extension__
 static __inline unsigned long long int
 __bswap_64 (unsigned long long int __bsx)
 {
index 757d0472bbf1052451511b992d8371575762e5c9..e59f96abc5cab56dd3259d7e663caf4d88acc10a 100644 (file)
@@ -56,6 +56,6 @@ struct ipc_perm
     unsigned short int __pad1;
 #endif
     unsigned short int __seq;          /* Sequence number.  */
-    unsigned long long int __unused1;
-    unsigned long long int __unused2;
+    __extension__ unsigned long long int __unused1;
+    __extension__ unsigned long long int __unused2;
   };
index 74c729166a407359237a0a033f2f806b140f1df3..1a3d4b54a7babfd5dfc6d7aad4d5d10b4f7c32a5 100644 (file)
@@ -217,7 +217,7 @@ typedef struct fpu
 typedef struct fpu
   {
     union {                            /* FPU floating point regs */
-      unsigned long long fpu_regs[32]; /* 32 singles */
+      __extension__ unsigned long long fpu_regs[32];   /* 32 singles */
       double             fpu_dregs[16];        /* 16 doubles */
     } fpu_fr;
     struct fq       *fpu_q;            /* ptr to array of FQ entries */
index dddbced57e6b361b2d74d6e398c3d7a86933c58e..ec318ad93711f4f70d13aa52e15d03ca880f5381 100644 (file)
@@ -36,7 +36,7 @@ __BEGIN_DECLS
 
 /* Type for a general-purpose register.  */
 #ifdef __x86_64__
-typedef unsigned long long elf_greg_t;
+__extension__ typedef unsigned long long elf_greg_t;
 #else
 typedef unsigned long elf_greg_t;
 #endif
index 8a7e5dcc9552d6977c6804ca458f51132eb274f8..7c666e20d7d1a7685aef9b64404a07678ae33d48 100644 (file)
@@ -30,7 +30,7 @@
 # if __WORDSIZE == 64
 typedef long int __jmp_buf[8];
 # elif defined  __x86_64__
-typedef long long int __jmp_buf[8];
+__extension__ typedef long long int __jmp_buf[8];
 # else
 typedef int __jmp_buf[6];
 # endif
index 838c13cd8ddbce60eae4b8d7a8f1a76ab203f7e8..fed64149fc7706e81a0b4c1b73634102f50b4d1a 100644 (file)
@@ -198,6 +198,7 @@ __NTH (lrint (double __x))
 }
 #   endif
 #   ifdef __x86_64__
+__extension__
 __MATH_INLINE long long int
 __NTH (llrintf (float __x))
 {
@@ -209,6 +210,7 @@ __NTH (llrintf (float __x))
   __asm __volatile__ ("cvtss2si %1, %0" : "=r" (__res) : "xm" (__x));
   return __res;
 }
+__extension__
 __MATH_INLINE long long int
 __NTH (llrint (double __x))
 {
@@ -896,16 +898,19 @@ __NTH (lrintl (long double __x))
     ("fistpll %0"                                                            \
      : "=m" (__llrintres) : "t" (__x) : "st");                               \
   return __llrintres
+__extension__
 __MATH_INLINE long long int
 __NTH (llrintf (float __x))
 {
   __llrint_code;
 }
+__extension__
 __MATH_INLINE long long int
 __NTH (llrint (double __x))
 {
   __llrint_code;
 }
+__extension__
 __MATH_INLINE long long int
 __NTH (llrintl (long double __x))
 {
This page took 0.12264 seconds and 5 git commands to generate.