From cc3f0ddb75ff6105a0fd869e6499c11e227bc787 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 17 May 2000 17:19:18 +0000 Subject: [PATCH] Update. 2000-05-17 Jakub Jelinek * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add __extension__ to hexadecimal floating constant notation. * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Likewise. * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise. * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Likewise. * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Likewise. * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Likewise. (HUGE_VALL): Set to HUGE_VAL on sparc32. --- ChangeLog | 15 +++++++++++++++ sysdeps/arm/bits/huge_val.h | 6 +++--- sysdeps/i386/bits/huge_val.h | 8 ++++---- sysdeps/ieee754/bits/huge_val.h | 6 +++--- sysdeps/m68k/bits/huge_val.h | 8 ++++---- sysdeps/sparc/sparc32/fpu/bits/huge_val.h | 13 +++++++++---- sysdeps/sparc/sparc64/fpu/bits/huge_val.h | 8 ++++---- 7 files changed, 42 insertions(+), 22 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e0f62d292..086f8e4bdb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2000-05-17 Jakub Jelinek + + * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add + __extension__ to hexadecimal floating constant notation. + * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): + Likewise. + * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise. + * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): + Likewise. + * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF, + HUGE_VALL): Likewise. + * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF, + HUGE_VALL): Likewise. + (HUGE_VALL): Set to HUGE_VAL on sparc32. + 2000-05-17 Andreas Jaeger * string/envz.h: Add pure attributes if possible. diff --git a/sysdeps/arm/bits/huge_val.h b/sysdeps/arm/bits/huge_val.h index 398476cf72..44db4bdd58 100644 --- a/sysdeps/arm/bits/huge_val.h +++ b/sysdeps/arm/bits/huge_val.h @@ -1,7 +1,7 @@ /* `HUGE_VAL' constants for IEEE 754 machines (where it is infinity). Used by and functions for overflow. ARM version. - Copyright (C) 1992, 95, 96, 97, 98, 99 Free Software Foundation, Inc. + Copyright (C) 1992, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,7 +31,7 @@ # if __GNUC_PREREQ(2,95) -# define HUGE_VAL (0x1.0p2047) +# define HUGE_VAL (__extension__ 0x1.0p2047) # else @@ -69,7 +69,7 @@ static __huge_val_t __huge_val = { __HUGE_VAL_bytes }; # if __GNUC_PREREQ(2,95) -# define HUGE_VALF (0x1.0p255f) +# define HUGE_VALF (__extension__ 0x1.0p255f) # else diff --git a/sysdeps/i386/bits/huge_val.h b/sysdeps/i386/bits/huge_val.h index 966cb2446f..518c8cc62c 100644 --- a/sysdeps/i386/bits/huge_val.h +++ b/sysdeps/i386/bits/huge_val.h @@ -1,6 +1,6 @@ /* `HUGE_VAL' constants for ix86 (where it is infinity). Used by and functions for overflow. - Copyright (C) 1992, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,7 +27,7 @@ /* IEEE positive infinity (-HUGE_VAL is negative infinity). */ #if __GNUC_PREREQ(2,95) -# define HUGE_VAL (0x1.0p2047) +# define HUGE_VAL (__extension__ 0x1.0p2047) #else # define __HUGE_VAL_bytes { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } @@ -48,8 +48,8 @@ static __huge_val_t __huge_val = { __HUGE_VAL_bytes }; # if __GNUC_PREREQ(2,95) -# define HUGE_VALF (0x1.0p255f) -# define HUGE_VALL (0x1.0p32767L) +# define HUGE_VALF (__extension__ 0x1.0p255f) +# define HUGE_VALL (__extension__ 0x1.0p32767L) # else diff --git a/sysdeps/ieee754/bits/huge_val.h b/sysdeps/ieee754/bits/huge_val.h index c7575e8d1e..9c25bb5f33 100644 --- a/sysdeps/ieee754/bits/huge_val.h +++ b/sysdeps/ieee754/bits/huge_val.h @@ -1,6 +1,6 @@ /* `HUGE_VAL' constants for IEEE 754 machines (where it is infinity). Used by and functions for overflow. - Copyright (C) 1992, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -30,7 +30,7 @@ # if __GNUC_PREREQ(2,95) -# define HUGE_VAL (0x1.0p2047) +# define HUGE_VAL (__extension__ 0x1.0p2047) # else @@ -68,7 +68,7 @@ static __huge_val_t __huge_val = { __HUGE_VAL_bytes }; # if __GNUC_PREREQ(2,95) -# define HUGE_VALF (0x1.0p255f) +# define HUGE_VALF (__extension__ 0x1.0p255f) # else diff --git a/sysdeps/m68k/bits/huge_val.h b/sysdeps/m68k/bits/huge_val.h index 339f374d68..d191042835 100644 --- a/sysdeps/m68k/bits/huge_val.h +++ b/sysdeps/m68k/bits/huge_val.h @@ -1,6 +1,6 @@ /* `HUGE_VAL' constants for m68k (where it is infinity). Used by and functions for overflow. - Copyright (C) 1992, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,7 +32,7 @@ # if __GNUC_PREREQ(2,95) -# define HUGE_VAL (0x1.0p2047) +# define HUGE_VAL (__extension__ 0x1.0p2047) # else @@ -58,8 +58,8 @@ static union { unsigned char __c[8]; double __d; } __huge_val = # if __GNUC_PREREQ(2,95) -# define HUGE_VALF (0x1.0p255f) -# define HUGE_VALL (0x1.0p32767L) +# define HUGE_VALF (__extension__ 0x1.0p255f) +# define HUGE_VALL (__extension__ 0x1.0p32767L) # else diff --git a/sysdeps/sparc/sparc32/fpu/bits/huge_val.h b/sysdeps/sparc/sparc32/fpu/bits/huge_val.h index cdec73f62b..ca0767b91a 100644 --- a/sysdeps/sparc/sparc32/fpu/bits/huge_val.h +++ b/sysdeps/sparc/sparc32/fpu/bits/huge_val.h @@ -1,6 +1,6 @@ /* `HUGE_VAL' constants for IEEE 754 machines (where it is infinity). Used by and functions for overflow. - Copyright (C) 1992, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,7 +31,7 @@ # if __GNUC_PREREQ(2,95) -# define HUGE_VAL (0x1.0p2047) +# define HUGE_VAL (__extension__ 0x1.0p2047) # else @@ -60,8 +60,13 @@ static __huge_val_t __huge_val = { __HUGE_VAL_bytes }; # if __GNUC_PREREQ(2,95) -# define HUGE_VALF (0x1.0p255) -# define HUGE_VALL (0x1.0p32767) +# define HUGE_VALF (__extension__ 0x1.0p255f) +# if __WORDSIZE == 32 +# define HUGE_VALL HUGE_VAL +# else +/* Sparc64 uses IEEE 754 128bit long double */ +# define HUGE_VALL (__extension__ 0x1.0p32767L) +# endif # else diff --git a/sysdeps/sparc/sparc64/fpu/bits/huge_val.h b/sysdeps/sparc/sparc64/fpu/bits/huge_val.h index cd93257cbd..ca0767b91a 100644 --- a/sysdeps/sparc/sparc64/fpu/bits/huge_val.h +++ b/sysdeps/sparc/sparc64/fpu/bits/huge_val.h @@ -1,6 +1,6 @@ /* `HUGE_VAL' constants for IEEE 754 machines (where it is infinity). Used by and functions for overflow. - Copyright (C) 1992, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,7 +31,7 @@ # if __GNUC_PREREQ(2,95) -# define HUGE_VAL (0x1.0p2047) +# define HUGE_VAL (__extension__ 0x1.0p2047) # else @@ -60,12 +60,12 @@ static __huge_val_t __huge_val = { __HUGE_VAL_bytes }; # if __GNUC_PREREQ(2,95) -# define HUGE_VALF (0x1.0p255f) +# define HUGE_VALF (__extension__ 0x1.0p255f) # if __WORDSIZE == 32 # define HUGE_VALL HUGE_VAL # else /* Sparc64 uses IEEE 754 128bit long double */ -# define HUGE_VALL (0x1.0p32767L) +# define HUGE_VALL (__extension__ 0x1.0p32767L) # endif # else