gdb/gnulib: Import frexpl.
gdb/ChangeLog: 2013-06-21 Will Newton <will.newton@linaro.org> * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl. * gnulib/aclocal.m4: Regenerate. * gnulib/config.in: Regenerate. * gnulib/configure: Regenerate. * gnulib/import/Makefile.am: Update. * gnulib/import/Makefile.in: Update. * gnulib/import/m4/gnulib-cache.m4: Update. * gnulib/import/m4/gnulib-comp.m4: Update. * gnulib/import/float+.h: Import. * gnulib/import/float.c: Import. * gnulib/import/float.in.h: Import. * gnulib/import/fpucw.h: Import. * gnulib/import/frexp.c: Import. * gnulib/import/frexpl.c: Import. * gnulib/import/isnan.c: Import. * gnulib/import/isnand-nolibm.h: Import. * gnulib/import/isnand.c: Import. * gnulib/import/isnanl-nolibm.h: Import. * gnulib/import/isnanl.c: Import. * gnulib/import/itold.c: Import. * gnulib/import/m4/exponentd.m4: Import. * gnulib/import/m4/exponentl.m4: Import. * gnulib/import/m4/float_h.m4: Import. * gnulib/import/m4/fpieee.m4: Import. * gnulib/import/m4/frexp.m4: Import. * gnulib/import/m4/frexpl.m4: Import. * gnulib/import/m4/isnand.m4: Import. * gnulib/import/m4/isnanl.m4: Import. * gnulib/import/m4/math_h.m4: Import. * gnulib/import/math.c: Import. * gnulib/import/math.in.h: Import.
This commit is contained in:
parent
4353c9e6f6
commit
88b4890352
32 changed files with 8701 additions and 140 deletions
|
@ -1,3 +1,37 @@
|
|||
2013-06-21 Will Newton <will.newton@linaro.org>
|
||||
|
||||
* gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
|
||||
* gnulib/aclocal.m4: Regenerate.
|
||||
* gnulib/config.in: Regenerate.
|
||||
* gnulib/configure: Regenerate.
|
||||
* gnulib/import/Makefile.am: Update.
|
||||
* gnulib/import/Makefile.in: Update.
|
||||
* gnulib/import/m4/gnulib-cache.m4: Update.
|
||||
* gnulib/import/m4/gnulib-comp.m4: Update.
|
||||
* gnulib/import/float+.h: Import.
|
||||
* gnulib/import/float.c: Import.
|
||||
* gnulib/import/float.in.h: Import.
|
||||
* gnulib/import/fpucw.h: Import.
|
||||
* gnulib/import/frexp.c: Import.
|
||||
* gnulib/import/frexpl.c: Import.
|
||||
* gnulib/import/isnan.c: Import.
|
||||
* gnulib/import/isnand-nolibm.h: Import.
|
||||
* gnulib/import/isnand.c: Import.
|
||||
* gnulib/import/isnanl-nolibm.h: Import.
|
||||
* gnulib/import/isnanl.c: Import.
|
||||
* gnulib/import/itold.c: Import.
|
||||
* gnulib/import/m4/exponentd.m4: Import.
|
||||
* gnulib/import/m4/exponentl.m4: Import.
|
||||
* gnulib/import/m4/float_h.m4: Import.
|
||||
* gnulib/import/m4/fpieee.m4: Import.
|
||||
* gnulib/import/m4/frexp.m4: Import.
|
||||
* gnulib/import/m4/frexpl.m4: Import.
|
||||
* gnulib/import/m4/isnand.m4: Import.
|
||||
* gnulib/import/m4/isnanl.m4: Import.
|
||||
* gnulib/import/m4/math_h.m4: Import.
|
||||
* gnulib/import/math.c: Import.
|
||||
* gnulib/import/math.in.h: Import.
|
||||
|
||||
2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
|
||||
|
|
9
gdb/gnulib/aclocal.m4
vendored
9
gdb/gnulib/aclocal.m4
vendored
|
@ -1016,21 +1016,30 @@ m4_include([import/m4/00gnulib.m4])
|
|||
m4_include([import/m4/alloca.m4])
|
||||
m4_include([import/m4/codeset.m4])
|
||||
m4_include([import/m4/configmake.m4])
|
||||
m4_include([import/m4/exponentd.m4])
|
||||
m4_include([import/m4/exponentl.m4])
|
||||
m4_include([import/m4/extensions.m4])
|
||||
m4_include([import/m4/extern-inline.m4])
|
||||
m4_include([import/m4/fcntl-o.m4])
|
||||
m4_include([import/m4/float_h.m4])
|
||||
m4_include([import/m4/fnmatch.m4])
|
||||
m4_include([import/m4/fpieee.m4])
|
||||
m4_include([import/m4/frexp.m4])
|
||||
m4_include([import/m4/frexpl.m4])
|
||||
m4_include([import/m4/glibc21.m4])
|
||||
m4_include([import/m4/gnulib-common.m4])
|
||||
m4_include([import/m4/gnulib-comp.m4])
|
||||
m4_include([import/m4/include_next.m4])
|
||||
m4_include([import/m4/inttypes-pri.m4])
|
||||
m4_include([import/m4/inttypes.m4])
|
||||
m4_include([import/m4/isnand.m4])
|
||||
m4_include([import/m4/isnanl.m4])
|
||||
m4_include([import/m4/localcharset.m4])
|
||||
m4_include([import/m4/locale-fr.m4])
|
||||
m4_include([import/m4/locale-ja.m4])
|
||||
m4_include([import/m4/locale-zh.m4])
|
||||
m4_include([import/m4/longlong.m4])
|
||||
m4_include([import/m4/math_h.m4])
|
||||
m4_include([import/m4/mbrtowc.m4])
|
||||
m4_include([import/m4/mbsinit.m4])
|
||||
m4_include([import/m4/mbsrtowcs.m4])
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
/* config.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#undef AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
/* Define to the number of bits in type 'ptrdiff_t'. */
|
||||
#undef BITSIZEOF_PTRDIFF_T
|
||||
|
||||
|
@ -23,6 +26,19 @@
|
|||
/* Define to 1 if using 'alloca.c'. */
|
||||
#undef C_ALLOCA
|
||||
|
||||
/* Define as the bit index in the word where to find bit 0 of the exponent of
|
||||
'double'. */
|
||||
#undef DBL_EXPBIT0_BIT
|
||||
|
||||
/* Define as the word index where to find the exponent of 'double'. */
|
||||
#undef DBL_EXPBIT0_WORD
|
||||
|
||||
/* Define to 1 when the gnulib module frexp should be tested. */
|
||||
#undef GNULIB_TEST_FREXP
|
||||
|
||||
/* Define to 1 when the gnulib module frexpl should be tested. */
|
||||
#undef GNULIB_TEST_FREXPL
|
||||
|
||||
/* Define to 1 when the gnulib module mbrtowc should be tested. */
|
||||
#undef GNULIB_TEST_MBRTOWC
|
||||
|
||||
|
@ -38,6 +54,9 @@
|
|||
/* Define to 1 when the gnulib module memmem should be tested. */
|
||||
#undef GNULIB_TEST_MEMMEM
|
||||
|
||||
/* Define to 1 if you have the 'alarm' function. */
|
||||
#undef HAVE_ALARM
|
||||
|
||||
/* Define to 1 if you have 'alloca' after including <alloca.h>, a header that
|
||||
may be supplied by this distribution. */
|
||||
#undef HAVE_ALLOCA
|
||||
|
@ -83,12 +102,24 @@
|
|||
/* Define to 1 if you have the <features.h> header file. */
|
||||
#undef HAVE_FEATURES_H
|
||||
|
||||
/* Define if the frexp() function is available and works. */
|
||||
#undef HAVE_FREXP
|
||||
|
||||
/* Define if the frexpl() function is available. */
|
||||
#undef HAVE_FREXPL
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the 'isblank' function. */
|
||||
#undef HAVE_ISBLANK
|
||||
|
||||
/* Define if the isnan(double) function is available in libc. */
|
||||
#undef HAVE_ISNAND_IN_LIBC
|
||||
|
||||
/* Define if the isnan(long double) function is available in libc. */
|
||||
#undef HAVE_ISNANL_IN_LIBC
|
||||
|
||||
/* Define to 1 if you have the 'iswcntrl' function. */
|
||||
#undef HAVE_ISWCNTRL
|
||||
|
||||
|
@ -105,6 +136,9 @@
|
|||
config.h and <sys/mman.h>. */
|
||||
#undef HAVE_MAP_ANONYMOUS
|
||||
|
||||
/* Define to 1 if you have the <math.h> header file. */
|
||||
#undef HAVE_MATH_H
|
||||
|
||||
/* Define to 1 if you have the 'mbrtowc' function. */
|
||||
#undef HAVE_MBRTOWC
|
||||
|
||||
|
@ -129,15 +163,141 @@
|
|||
/* Define to 1 if you have the 'mprotect' function. */
|
||||
#undef HAVE_MPROTECT
|
||||
|
||||
/* Define to 1 if acosf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ACOSF
|
||||
|
||||
/* Define to 1 if acosl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ACOSL
|
||||
|
||||
/* Define to 1 if asinf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ASINF
|
||||
|
||||
/* Define to 1 if asinl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ASINL
|
||||
|
||||
/* Define to 1 if atanf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ATANF
|
||||
|
||||
/* Define to 1 if atanl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ATANL
|
||||
|
||||
/* Define to 1 if btowc is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_BTOWC
|
||||
|
||||
/* Define to 1 if cbrt is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_CBRT
|
||||
|
||||
/* Define to 1 if cbrtf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_CBRTF
|
||||
|
||||
/* Define to 1 if cbrtl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_CBRTL
|
||||
|
||||
/* Define to 1 if ceilf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_CEILF
|
||||
|
||||
/* Define to 1 if ceill is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_CEILL
|
||||
|
||||
/* Define to 1 if copysign is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_COPYSIGN
|
||||
|
||||
/* Define to 1 if copysignf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_COPYSIGNF
|
||||
|
||||
/* Define to 1 if copysignl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_COPYSIGNL
|
||||
|
||||
/* Define to 1 if cosf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_COSF
|
||||
|
||||
/* Define to 1 if coshf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_COSHF
|
||||
|
||||
/* Define to 1 if cosl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_COSL
|
||||
|
||||
/* Define to 1 if exp2 is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXP2
|
||||
|
||||
/* Define to 1 if exp2f is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXP2F
|
||||
|
||||
/* Define to 1 if exp2l is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXP2L
|
||||
|
||||
/* Define to 1 if expf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXPF
|
||||
|
||||
/* Define to 1 if expl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXPL
|
||||
|
||||
/* Define to 1 if expm1 is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXPM1
|
||||
|
||||
/* Define to 1 if expm1f is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXPM1F
|
||||
|
||||
/* Define to 1 if expm1l is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_EXPM1L
|
||||
|
||||
/* Define to 1 if fabsf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FABSF
|
||||
|
||||
/* Define to 1 if fabsl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FABSL
|
||||
|
||||
/* Define to 1 if ffsl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FFSL
|
||||
|
||||
/* Define to 1 if ffsll is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FFSLL
|
||||
|
||||
/* Define to 1 if floorf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FLOORF
|
||||
|
||||
/* Define to 1 if floorl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FLOORL
|
||||
|
||||
/* Define to 1 if fma is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FMA
|
||||
|
||||
/* Define to 1 if fmaf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FMAF
|
||||
|
||||
/* Define to 1 if fmal is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FMAL
|
||||
|
||||
/* Define to 1 if fmod is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FMOD
|
||||
|
||||
/* Define to 1 if fmodf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FMODF
|
||||
|
||||
/* Define to 1 if fmodl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FMODL
|
||||
|
||||
/* Define to 1 if frexpf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FREXPF
|
||||
|
||||
/* Define to 1 if frexpl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_FREXPL
|
||||
|
||||
/* Define to 1 if hypotf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_HYPOTF
|
||||
|
||||
/* Define to 1 if hypotl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_HYPOTL
|
||||
|
||||
/* Define to 1 if ilogb is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ILOGB
|
||||
|
||||
/* Define to 1 if ilogbf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ILOGBF
|
||||
|
||||
/* Define to 1 if ilogbl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ILOGBL
|
||||
|
||||
/* Define to 1 if imaxabs is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_IMAXABS
|
||||
|
||||
|
@ -147,6 +307,57 @@
|
|||
/* Define to 1 if iswctype is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ISWCTYPE
|
||||
|
||||
/* Define to 1 if ldexpf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LDEXPF
|
||||
|
||||
/* Define to 1 if ldexpl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LDEXPL
|
||||
|
||||
/* Define to 1 if log is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG
|
||||
|
||||
/* Define to 1 if log10 is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG10
|
||||
|
||||
/* Define to 1 if log10f is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG10F
|
||||
|
||||
/* Define to 1 if log10l is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG10L
|
||||
|
||||
/* Define to 1 if log1p is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG1P
|
||||
|
||||
/* Define to 1 if log1pf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG1PF
|
||||
|
||||
/* Define to 1 if log1pl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG1PL
|
||||
|
||||
/* Define to 1 if log2 is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG2
|
||||
|
||||
/* Define to 1 if log2f is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG2F
|
||||
|
||||
/* Define to 1 if log2l is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOG2L
|
||||
|
||||
/* Define to 1 if logb is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOGB
|
||||
|
||||
/* Define to 1 if logbf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOGBF
|
||||
|
||||
/* Define to 1 if logbl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOGBL
|
||||
|
||||
/* Define to 1 if logf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOGF
|
||||
|
||||
/* Define to 1 if logl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_LOGL
|
||||
|
||||
/* Define to 1 if mbrlen is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MBRLEN
|
||||
|
||||
|
@ -171,9 +382,63 @@
|
|||
/* Define to 1 if memrchr is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MEMRCHR
|
||||
|
||||
/* Define to 1 if modf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MODF
|
||||
|
||||
/* Define to 1 if modff is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MODFF
|
||||
|
||||
/* Define to 1 if modfl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MODFL
|
||||
|
||||
/* Define to 1 if powf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_POWF
|
||||
|
||||
/* Define to 1 if rawmemchr is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_RAWMEMCHR
|
||||
|
||||
/* Define to 1 if remainder is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_REMAINDER
|
||||
|
||||
/* Define to 1 if remainderf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_REMAINDERF
|
||||
|
||||
/* Define to 1 if remainderl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_REMAINDERL
|
||||
|
||||
/* Define to 1 if rint is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_RINT
|
||||
|
||||
/* Define to 1 if rintf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_RINTF
|
||||
|
||||
/* Define to 1 if rintl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_RINTL
|
||||
|
||||
/* Define to 1 if round is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ROUND
|
||||
|
||||
/* Define to 1 if roundf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ROUNDF
|
||||
|
||||
/* Define to 1 if roundl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_ROUNDL
|
||||
|
||||
/* Define to 1 if sinf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_SINF
|
||||
|
||||
/* Define to 1 if sinhf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_SINHF
|
||||
|
||||
/* Define to 1 if sinl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_SINL
|
||||
|
||||
/* Define to 1 if sqrtf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_SQRTF
|
||||
|
||||
/* Define to 1 if sqrtl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_SQRTL
|
||||
|
||||
/* Define to 1 if stpcpy is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STPCPY
|
||||
|
||||
|
@ -222,9 +487,27 @@
|
|||
/* Define to 1 if strverscmp is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRVERSCMP
|
||||
|
||||
/* Define to 1 if tanf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_TANF
|
||||
|
||||
/* Define to 1 if tanhf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_TANHF
|
||||
|
||||
/* Define to 1 if tanl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_TANL
|
||||
|
||||
/* Define to 1 if towctrans is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_TOWCTRANS
|
||||
|
||||
/* Define to 1 if trunc is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_TRUNC
|
||||
|
||||
/* Define to 1 if truncf is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_TRUNCF
|
||||
|
||||
/* Define to 1 if truncl is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_TRUNCL
|
||||
|
||||
/* Define to 1 if wcpcpy is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_WCPCPY
|
||||
|
||||
|
@ -330,6 +613,9 @@
|
|||
/* Define to 1 if wmemset is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_WMEMSET
|
||||
|
||||
/* Define to 1 if 'long double' and 'double' have the same representation. */
|
||||
#undef HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
|
||||
|
||||
/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_SIG_ATOMIC_T
|
||||
|
||||
|
@ -408,6 +694,13 @@
|
|||
/* Define to 1 if the system has the type `_Bool'. */
|
||||
#undef HAVE__BOOL
|
||||
|
||||
/* Define as the bit index in the word where to find bit 0 of the exponent of
|
||||
'long double'. */
|
||||
#undef LDBL_EXPBIT0_BIT
|
||||
|
||||
/* Define as the word index where to find the exponent of 'long double'. */
|
||||
#undef LDBL_EXPBIT0_WORD
|
||||
|
||||
/* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */
|
||||
#undef MAP_ANONYMOUS
|
||||
|
||||
|
@ -475,6 +768,18 @@
|
|||
'wint_t'. */
|
||||
#undef WINT_T_SUFFIX
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
# undef WORDS_BIGENDIAN
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
|
|
2716
gdb/gnulib/configure
vendored
2716
gdb/gnulib/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -21,7 +21,7 @@
|
|||
# the same distribution terms as the rest of that program.
|
||||
#
|
||||
# Generated by gnulib-tool.
|
||||
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=import --m4-base=import/m4 --doc-base=doc --tests-base=tests --aux-dir=import/extra --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files fnmatch-gnu inttypes memmem update-copyright
|
||||
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=import --m4-base=import/m4 --doc-base=doc --tests-base=tests --aux-dir=import/extra --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files fnmatch-gnu frexpl inttypes memmem update-copyright
|
||||
|
||||
AUTOMAKE_OPTIONS = 1.5 gnits
|
||||
|
||||
|
@ -127,6 +127,37 @@ CLEANFILES += configmake.h configmake.h-t
|
|||
|
||||
## end gnulib module configmake
|
||||
|
||||
## begin gnulib module float
|
||||
|
||||
BUILT_SOURCES += $(FLOAT_H)
|
||||
|
||||
# We need the following in order to create <float.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
if GL_GENERATE_FLOAT_H
|
||||
float.h: float.in.h $(top_builddir)/config.status
|
||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||
sed -e 's|@''GUARD_PREFIX''@|GL|g' \
|
||||
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
-e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
|
||||
-e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \
|
||||
< $(srcdir)/float.in.h; \
|
||||
} > $@-t && \
|
||||
mv $@-t $@
|
||||
else
|
||||
float.h: $(top_builddir)/config.status
|
||||
rm -f $@
|
||||
endif
|
||||
MOSTLYCLEANFILES += float.h float.h-t
|
||||
|
||||
EXTRA_DIST += float.c float.in.h itold.c
|
||||
|
||||
EXTRA_libgnu_a_SOURCES += float.c itold.c
|
||||
|
||||
## end gnulib module float
|
||||
|
||||
## begin gnulib module fnmatch
|
||||
|
||||
BUILT_SOURCES += $(FNMATCH_H)
|
||||
|
@ -153,6 +184,31 @@ EXTRA_libgnu_a_SOURCES += fnmatch.c fnmatch_loop.c
|
|||
|
||||
## end gnulib module fnmatch
|
||||
|
||||
## begin gnulib module fpucw
|
||||
|
||||
|
||||
EXTRA_DIST += fpucw.h
|
||||
|
||||
## end gnulib module fpucw
|
||||
|
||||
## begin gnulib module frexp
|
||||
|
||||
|
||||
EXTRA_DIST += frexp.c
|
||||
|
||||
EXTRA_libgnu_a_SOURCES += frexp.c
|
||||
|
||||
## end gnulib module frexp
|
||||
|
||||
## begin gnulib module frexpl
|
||||
|
||||
|
||||
EXTRA_DIST += frexp.c frexpl.c
|
||||
|
||||
EXTRA_libgnu_a_SOURCES += frexp.c frexpl.c
|
||||
|
||||
## end gnulib module frexpl
|
||||
|
||||
## begin gnulib module inttypes-incomplete
|
||||
|
||||
BUILT_SOURCES += inttypes.h
|
||||
|
@ -197,6 +253,24 @@ EXTRA_DIST += inttypes.in.h
|
|||
|
||||
## end gnulib module inttypes-incomplete
|
||||
|
||||
## begin gnulib module isnand-nolibm
|
||||
|
||||
|
||||
EXTRA_DIST += float+.h isnan.c isnand-nolibm.h isnand.c
|
||||
|
||||
EXTRA_libgnu_a_SOURCES += isnan.c isnand.c
|
||||
|
||||
## end gnulib module isnand-nolibm
|
||||
|
||||
## begin gnulib module isnanl-nolibm
|
||||
|
||||
|
||||
EXTRA_DIST += float+.h isnan.c isnanl-nolibm.h isnanl.c
|
||||
|
||||
EXTRA_libgnu_a_SOURCES += isnan.c isnanl.c
|
||||
|
||||
## end gnulib module isnanl-nolibm
|
||||
|
||||
## begin gnulib module localcharset
|
||||
|
||||
libgnu_a_SOURCES += localcharset.h localcharset.c
|
||||
|
@ -271,6 +345,290 @@ EXTRA_DIST += config.charset ref-add.sin ref-del.sin
|
|||
|
||||
## end gnulib module localcharset
|
||||
|
||||
## begin gnulib module math
|
||||
|
||||
BUILT_SOURCES += math.h
|
||||
libgnu_a_SOURCES += math.c
|
||||
|
||||
# We need the following in order to create <math.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
|
||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||
sed -e 's|@''GUARD_PREFIX''@|GL|g' \
|
||||
-e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
|
||||
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
-e 's|@''NEXT_AS_FIRST_DIRECTIVE_MATH_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MATH_H)|g' \
|
||||
-e 's/@''GNULIB_ACOSF''@/$(GNULIB_ACOSF)/g' \
|
||||
-e 's/@''GNULIB_ACOSL''@/$(GNULIB_ACOSL)/g' \
|
||||
-e 's/@''GNULIB_ASINF''@/$(GNULIB_ASINF)/g' \
|
||||
-e 's/@''GNULIB_ASINL''@/$(GNULIB_ASINL)/g' \
|
||||
-e 's/@''GNULIB_ATANF''@/$(GNULIB_ATANF)/g' \
|
||||
-e 's/@''GNULIB_ATANL''@/$(GNULIB_ATANL)/g' \
|
||||
-e 's/@''GNULIB_ATAN2F''@/$(GNULIB_ATAN2F)/g' \
|
||||
-e 's/@''GNULIB_CBRT''@/$(GNULIB_CBRT)/g' \
|
||||
-e 's/@''GNULIB_CBRTF''@/$(GNULIB_CBRTF)/g' \
|
||||
-e 's/@''GNULIB_CBRTL''@/$(GNULIB_CBRTL)/g' \
|
||||
-e 's/@''GNULIB_CEIL''@/$(GNULIB_CEIL)/g' \
|
||||
-e 's/@''GNULIB_CEILF''@/$(GNULIB_CEILF)/g' \
|
||||
-e 's/@''GNULIB_CEILL''@/$(GNULIB_CEILL)/g' \
|
||||
-e 's/@''GNULIB_COPYSIGN''@/$(GNULIB_COPYSIGN)/g' \
|
||||
-e 's/@''GNULIB_COPYSIGNF''@/$(GNULIB_COPYSIGNF)/g' \
|
||||
-e 's/@''GNULIB_COPYSIGNL''@/$(GNULIB_COPYSIGNL)/g' \
|
||||
-e 's/@''GNULIB_COSF''@/$(GNULIB_COSF)/g' \
|
||||
-e 's/@''GNULIB_COSL''@/$(GNULIB_COSL)/g' \
|
||||
-e 's/@''GNULIB_COSHF''@/$(GNULIB_COSHF)/g' \
|
||||
-e 's/@''GNULIB_EXPF''@/$(GNULIB_EXPF)/g' \
|
||||
-e 's/@''GNULIB_EXPL''@/$(GNULIB_EXPL)/g' \
|
||||
-e 's/@''GNULIB_EXP2''@/$(GNULIB_EXP2)/g' \
|
||||
-e 's/@''GNULIB_EXP2F''@/$(GNULIB_EXP2F)/g' \
|
||||
-e 's/@''GNULIB_EXP2L''@/$(GNULIB_EXP2L)/g' \
|
||||
-e 's/@''GNULIB_EXPM1''@/$(GNULIB_EXPM1)/g' \
|
||||
-e 's/@''GNULIB_EXPM1F''@/$(GNULIB_EXPM1F)/g' \
|
||||
-e 's/@''GNULIB_EXPM1L''@/$(GNULIB_EXPM1L)/g' \
|
||||
-e 's/@''GNULIB_FABSF''@/$(GNULIB_FABSF)/g' \
|
||||
-e 's/@''GNULIB_FABSL''@/$(GNULIB_FABSL)/g' \
|
||||
-e 's/@''GNULIB_FLOOR''@/$(GNULIB_FLOOR)/g' \
|
||||
-e 's/@''GNULIB_FLOORF''@/$(GNULIB_FLOORF)/g' \
|
||||
-e 's/@''GNULIB_FLOORL''@/$(GNULIB_FLOORL)/g' \
|
||||
-e 's/@''GNULIB_FMA''@/$(GNULIB_FMA)/g' \
|
||||
-e 's/@''GNULIB_FMAF''@/$(GNULIB_FMAF)/g' \
|
||||
-e 's/@''GNULIB_FMAL''@/$(GNULIB_FMAL)/g' \
|
||||
-e 's/@''GNULIB_FMOD''@/$(GNULIB_FMOD)/g' \
|
||||
-e 's/@''GNULIB_FMODF''@/$(GNULIB_FMODF)/g' \
|
||||
-e 's/@''GNULIB_FMODL''@/$(GNULIB_FMODL)/g' \
|
||||
-e 's/@''GNULIB_FREXPF''@/$(GNULIB_FREXPF)/g' \
|
||||
-e 's/@''GNULIB_FREXP''@/$(GNULIB_FREXP)/g' \
|
||||
-e 's/@''GNULIB_FREXPL''@/$(GNULIB_FREXPL)/g' \
|
||||
-e 's/@''GNULIB_HYPOT''@/$(GNULIB_HYPOT)/g' \
|
||||
-e 's/@''GNULIB_HYPOTF''@/$(GNULIB_HYPOTF)/g' \
|
||||
-e 's/@''GNULIB_HYPOTL''@/$(GNULIB_HYPOTL)/g' \
|
||||
< $(srcdir)/math.in.h | \
|
||||
sed -e 's/@''GNULIB_ILOGB''@/$(GNULIB_ILOGB)/g' \
|
||||
-e 's/@''GNULIB_ILOGBF''@/$(GNULIB_ILOGBF)/g' \
|
||||
-e 's/@''GNULIB_ILOGBL''@/$(GNULIB_ILOGBL)/g' \
|
||||
-e 's/@''GNULIB_ISFINITE''@/$(GNULIB_ISFINITE)/g' \
|
||||
-e 's/@''GNULIB_ISINF''@/$(GNULIB_ISINF)/g' \
|
||||
-e 's/@''GNULIB_ISNAN''@/$(GNULIB_ISNAN)/g' \
|
||||
-e 's/@''GNULIB_ISNANF''@/$(GNULIB_ISNANF)/g' \
|
||||
-e 's/@''GNULIB_ISNAND''@/$(GNULIB_ISNAND)/g' \
|
||||
-e 's/@''GNULIB_ISNANL''@/$(GNULIB_ISNANL)/g' \
|
||||
-e 's/@''GNULIB_LDEXPF''@/$(GNULIB_LDEXPF)/g' \
|
||||
-e 's/@''GNULIB_LDEXPL''@/$(GNULIB_LDEXPL)/g' \
|
||||
-e 's/@''GNULIB_LOG''@/$(GNULIB_LOG)/g' \
|
||||
-e 's/@''GNULIB_LOGF''@/$(GNULIB_LOGF)/g' \
|
||||
-e 's/@''GNULIB_LOGL''@/$(GNULIB_LOGL)/g' \
|
||||
-e 's/@''GNULIB_LOG10''@/$(GNULIB_LOG10)/g' \
|
||||
-e 's/@''GNULIB_LOG10F''@/$(GNULIB_LOG10F)/g' \
|
||||
-e 's/@''GNULIB_LOG10L''@/$(GNULIB_LOG10L)/g' \
|
||||
-e 's/@''GNULIB_LOG1P''@/$(GNULIB_LOG1P)/g' \
|
||||
-e 's/@''GNULIB_LOG1PF''@/$(GNULIB_LOG1PF)/g' \
|
||||
-e 's/@''GNULIB_LOG1PL''@/$(GNULIB_LOG1PL)/g' \
|
||||
-e 's/@''GNULIB_LOG2''@/$(GNULIB_LOG2)/g' \
|
||||
-e 's/@''GNULIB_LOG2F''@/$(GNULIB_LOG2F)/g' \
|
||||
-e 's/@''GNULIB_LOG2L''@/$(GNULIB_LOG2L)/g' \
|
||||
-e 's/@''GNULIB_LOGB''@/$(GNULIB_LOGB)/g' \
|
||||
-e 's/@''GNULIB_LOGBF''@/$(GNULIB_LOGBF)/g' \
|
||||
-e 's/@''GNULIB_LOGBL''@/$(GNULIB_LOGBL)/g' \
|
||||
-e 's/@''GNULIB_MODF''@/$(GNULIB_MODF)/g' \
|
||||
-e 's/@''GNULIB_MODFF''@/$(GNULIB_MODFF)/g' \
|
||||
-e 's/@''GNULIB_MODFL''@/$(GNULIB_MODFL)/g' \
|
||||
-e 's/@''GNULIB_POWF''@/$(GNULIB_POWF)/g' \
|
||||
-e 's/@''GNULIB_REMAINDER''@/$(GNULIB_REMAINDER)/g' \
|
||||
-e 's/@''GNULIB_REMAINDERF''@/$(GNULIB_REMAINDERF)/g' \
|
||||
-e 's/@''GNULIB_REMAINDERL''@/$(GNULIB_REMAINDERL)/g' \
|
||||
-e 's/@''GNULIB_RINT''@/$(GNULIB_RINT)/g' \
|
||||
-e 's/@''GNULIB_RINTF''@/$(GNULIB_RINTF)/g' \
|
||||
-e 's/@''GNULIB_RINTL''@/$(GNULIB_RINTL)/g' \
|
||||
-e 's/@''GNULIB_ROUND''@/$(GNULIB_ROUND)/g' \
|
||||
-e 's/@''GNULIB_ROUNDF''@/$(GNULIB_ROUNDF)/g' \
|
||||
-e 's/@''GNULIB_ROUNDL''@/$(GNULIB_ROUNDL)/g' \
|
||||
-e 's/@''GNULIB_SIGNBIT''@/$(GNULIB_SIGNBIT)/g' \
|
||||
-e 's/@''GNULIB_SINF''@/$(GNULIB_SINF)/g' \
|
||||
-e 's/@''GNULIB_SINL''@/$(GNULIB_SINL)/g' \
|
||||
-e 's/@''GNULIB_SINHF''@/$(GNULIB_SINHF)/g' \
|
||||
-e 's/@''GNULIB_SQRTF''@/$(GNULIB_SQRTF)/g' \
|
||||
-e 's/@''GNULIB_SQRTL''@/$(GNULIB_SQRTL)/g' \
|
||||
-e 's/@''GNULIB_TANF''@/$(GNULIB_TANF)/g' \
|
||||
-e 's/@''GNULIB_TANL''@/$(GNULIB_TANL)/g' \
|
||||
-e 's/@''GNULIB_TANHF''@/$(GNULIB_TANHF)/g' \
|
||||
-e 's/@''GNULIB_TRUNC''@/$(GNULIB_TRUNC)/g' \
|
||||
-e 's/@''GNULIB_TRUNCF''@/$(GNULIB_TRUNCF)/g' \
|
||||
-e 's/@''GNULIB_TRUNCL''@/$(GNULIB_TRUNCL)/g' \
|
||||
| \
|
||||
sed -e 's|@''HAVE_ACOSF''@|$(HAVE_ACOSF)|g' \
|
||||
-e 's|@''HAVE_ACOSL''@|$(HAVE_ACOSL)|g' \
|
||||
-e 's|@''HAVE_ASINF''@|$(HAVE_ASINF)|g' \
|
||||
-e 's|@''HAVE_ASINL''@|$(HAVE_ASINL)|g' \
|
||||
-e 's|@''HAVE_ATANF''@|$(HAVE_ATANF)|g' \
|
||||
-e 's|@''HAVE_ATANL''@|$(HAVE_ATANL)|g' \
|
||||
-e 's|@''HAVE_ATAN2F''@|$(HAVE_ATAN2F)|g' \
|
||||
-e 's|@''HAVE_CBRT''@|$(HAVE_CBRT)|g' \
|
||||
-e 's|@''HAVE_CBRTF''@|$(HAVE_CBRTF)|g' \
|
||||
-e 's|@''HAVE_CBRTL''@|$(HAVE_CBRTL)|g' \
|
||||
-e 's|@''HAVE_COPYSIGN''@|$(HAVE_COPYSIGN)|g' \
|
||||
-e 's|@''HAVE_COPYSIGNL''@|$(HAVE_COPYSIGNL)|g' \
|
||||
-e 's|@''HAVE_COSF''@|$(HAVE_COSF)|g' \
|
||||
-e 's|@''HAVE_COSL''@|$(HAVE_COSL)|g' \
|
||||
-e 's|@''HAVE_COSHF''@|$(HAVE_COSHF)|g' \
|
||||
-e 's|@''HAVE_EXPF''@|$(HAVE_EXPF)|g' \
|
||||
-e 's|@''HAVE_EXPL''@|$(HAVE_EXPL)|g' \
|
||||
-e 's|@''HAVE_EXPM1''@|$(HAVE_EXPM1)|g' \
|
||||
-e 's|@''HAVE_EXPM1F''@|$(HAVE_EXPM1F)|g' \
|
||||
-e 's|@''HAVE_FABSF''@|$(HAVE_FABSF)|g' \
|
||||
-e 's|@''HAVE_FABSL''@|$(HAVE_FABSL)|g' \
|
||||
-e 's|@''HAVE_FMA''@|$(HAVE_FMA)|g' \
|
||||
-e 's|@''HAVE_FMAF''@|$(HAVE_FMAF)|g' \
|
||||
-e 's|@''HAVE_FMAL''@|$(HAVE_FMAL)|g' \
|
||||
-e 's|@''HAVE_FMODF''@|$(HAVE_FMODF)|g' \
|
||||
-e 's|@''HAVE_FMODL''@|$(HAVE_FMODL)|g' \
|
||||
-e 's|@''HAVE_FREXPF''@|$(HAVE_FREXPF)|g' \
|
||||
-e 's|@''HAVE_HYPOTF''@|$(HAVE_HYPOTF)|g' \
|
||||
-e 's|@''HAVE_HYPOTL''@|$(HAVE_HYPOTL)|g' \
|
||||
-e 's|@''HAVE_ILOGB''@|$(HAVE_ILOGB)|g' \
|
||||
-e 's|@''HAVE_ILOGBF''@|$(HAVE_ILOGBF)|g' \
|
||||
-e 's|@''HAVE_ILOGBL''@|$(HAVE_ILOGBL)|g' \
|
||||
-e 's|@''HAVE_ISNANF''@|$(HAVE_ISNANF)|g' \
|
||||
-e 's|@''HAVE_ISNAND''@|$(HAVE_ISNAND)|g' \
|
||||
-e 's|@''HAVE_ISNANL''@|$(HAVE_ISNANL)|g' \
|
||||
-e 's|@''HAVE_LDEXPF''@|$(HAVE_LDEXPF)|g' \
|
||||
-e 's|@''HAVE_LOGF''@|$(HAVE_LOGF)|g' \
|
||||
-e 's|@''HAVE_LOGL''@|$(HAVE_LOGL)|g' \
|
||||
-e 's|@''HAVE_LOG10F''@|$(HAVE_LOG10F)|g' \
|
||||
-e 's|@''HAVE_LOG10L''@|$(HAVE_LOG10L)|g' \
|
||||
-e 's|@''HAVE_LOG1P''@|$(HAVE_LOG1P)|g' \
|
||||
-e 's|@''HAVE_LOG1PF''@|$(HAVE_LOG1PF)|g' \
|
||||
-e 's|@''HAVE_LOG1PL''@|$(HAVE_LOG1PL)|g' \
|
||||
-e 's|@''HAVE_LOGBF''@|$(HAVE_LOGBF)|g' \
|
||||
-e 's|@''HAVE_LOGBL''@|$(HAVE_LOGBL)|g' \
|
||||
-e 's|@''HAVE_MODFF''@|$(HAVE_MODFF)|g' \
|
||||
-e 's|@''HAVE_MODFL''@|$(HAVE_MODFL)|g' \
|
||||
-e 's|@''HAVE_POWF''@|$(HAVE_POWF)|g' \
|
||||
-e 's|@''HAVE_REMAINDER''@|$(HAVE_REMAINDER)|g' \
|
||||
-e 's|@''HAVE_REMAINDERF''@|$(HAVE_REMAINDERF)|g' \
|
||||
-e 's|@''HAVE_RINT''@|$(HAVE_RINT)|g' \
|
||||
-e 's|@''HAVE_RINTL''@|$(HAVE_RINTL)|g' \
|
||||
-e 's|@''HAVE_SINF''@|$(HAVE_SINF)|g' \
|
||||
-e 's|@''HAVE_SINL''@|$(HAVE_SINL)|g' \
|
||||
-e 's|@''HAVE_SINHF''@|$(HAVE_SINHF)|g' \
|
||||
-e 's|@''HAVE_SQRTF''@|$(HAVE_SQRTF)|g' \
|
||||
-e 's|@''HAVE_SQRTL''@|$(HAVE_SQRTL)|g' \
|
||||
-e 's|@''HAVE_TANF''@|$(HAVE_TANF)|g' \
|
||||
-e 's|@''HAVE_TANL''@|$(HAVE_TANL)|g' \
|
||||
-e 's|@''HAVE_TANHF''@|$(HAVE_TANHF)|g' \
|
||||
-e 's|@''HAVE_DECL_ACOSL''@|$(HAVE_DECL_ACOSL)|g' \
|
||||
-e 's|@''HAVE_DECL_ASINL''@|$(HAVE_DECL_ASINL)|g' \
|
||||
-e 's|@''HAVE_DECL_ATANL''@|$(HAVE_DECL_ATANL)|g' \
|
||||
-e 's|@''HAVE_DECL_CBRTF''@|$(HAVE_DECL_CBRTF)|g' \
|
||||
-e 's|@''HAVE_DECL_CBRTL''@|$(HAVE_DECL_CBRTL)|g' \
|
||||
-e 's|@''HAVE_DECL_CEILF''@|$(HAVE_DECL_CEILF)|g' \
|
||||
-e 's|@''HAVE_DECL_CEILL''@|$(HAVE_DECL_CEILL)|g' \
|
||||
-e 's|@''HAVE_DECL_COPYSIGNF''@|$(HAVE_DECL_COPYSIGNF)|g' \
|
||||
-e 's|@''HAVE_DECL_COSL''@|$(HAVE_DECL_COSL)|g' \
|
||||
-e 's|@''HAVE_DECL_EXPL''@|$(HAVE_DECL_EXPL)|g' \
|
||||
-e 's|@''HAVE_DECL_EXP2''@|$(HAVE_DECL_EXP2)|g' \
|
||||
-e 's|@''HAVE_DECL_EXP2F''@|$(HAVE_DECL_EXP2F)|g' \
|
||||
-e 's|@''HAVE_DECL_EXP2L''@|$(HAVE_DECL_EXP2L)|g' \
|
||||
-e 's|@''HAVE_DECL_EXPM1L''@|$(HAVE_DECL_EXPM1L)|g' \
|
||||
-e 's|@''HAVE_DECL_FLOORF''@|$(HAVE_DECL_FLOORF)|g' \
|
||||
-e 's|@''HAVE_DECL_FLOORL''@|$(HAVE_DECL_FLOORL)|g' \
|
||||
-e 's|@''HAVE_DECL_FREXPL''@|$(HAVE_DECL_FREXPL)|g' \
|
||||
-e 's|@''HAVE_DECL_LDEXPL''@|$(HAVE_DECL_LDEXPL)|g' \
|
||||
-e 's|@''HAVE_DECL_LOGL''@|$(HAVE_DECL_LOGL)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG10L''@|$(HAVE_DECL_LOG10L)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG2''@|$(HAVE_DECL_LOG2)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG2F''@|$(HAVE_DECL_LOG2F)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG2L''@|$(HAVE_DECL_LOG2L)|g' \
|
||||
-e 's|@''HAVE_DECL_LOGB''@|$(HAVE_DECL_LOGB)|g' \
|
||||
-e 's|@''HAVE_DECL_REMAINDER''@|$(HAVE_DECL_REMAINDER)|g' \
|
||||
-e 's|@''HAVE_DECL_REMAINDERL''@|$(HAVE_DECL_REMAINDERL)|g' \
|
||||
-e 's|@''HAVE_DECL_RINTF''@|$(HAVE_DECL_RINTF)|g' \
|
||||
-e 's|@''HAVE_DECL_ROUND''@|$(HAVE_DECL_ROUND)|g' \
|
||||
-e 's|@''HAVE_DECL_ROUNDF''@|$(HAVE_DECL_ROUNDF)|g' \
|
||||
-e 's|@''HAVE_DECL_ROUNDL''@|$(HAVE_DECL_ROUNDL)|g' \
|
||||
-e 's|@''HAVE_DECL_SINL''@|$(HAVE_DECL_SINL)|g' \
|
||||
-e 's|@''HAVE_DECL_SQRTL''@|$(HAVE_DECL_SQRTL)|g' \
|
||||
-e 's|@''HAVE_DECL_TANL''@|$(HAVE_DECL_TANL)|g' \
|
||||
-e 's|@''HAVE_DECL_TRUNC''@|$(HAVE_DECL_TRUNC)|g' \
|
||||
-e 's|@''HAVE_DECL_TRUNCF''@|$(HAVE_DECL_TRUNCF)|g' \
|
||||
-e 's|@''HAVE_DECL_TRUNCL''@|$(HAVE_DECL_TRUNCL)|g' \
|
||||
| \
|
||||
sed -e 's|@''REPLACE_CBRTF''@|$(REPLACE_CBRTF)|g' \
|
||||
-e 's|@''REPLACE_CBRTL''@|$(REPLACE_CBRTL)|g' \
|
||||
-e 's|@''REPLACE_CEIL''@|$(REPLACE_CEIL)|g' \
|
||||
-e 's|@''REPLACE_CEILF''@|$(REPLACE_CEILF)|g' \
|
||||
-e 's|@''REPLACE_CEILL''@|$(REPLACE_CEILL)|g' \
|
||||
-e 's|@''REPLACE_EXPM1''@|$(REPLACE_EXPM1)|g' \
|
||||
-e 's|@''REPLACE_EXPM1F''@|$(REPLACE_EXPM1F)|g' \
|
||||
-e 's|@''REPLACE_EXP2''@|$(REPLACE_EXP2)|g' \
|
||||
-e 's|@''REPLACE_EXP2L''@|$(REPLACE_EXP2L)|g' \
|
||||
-e 's|@''REPLACE_FABSL''@|$(REPLACE_FABSL)|g' \
|
||||
-e 's|@''REPLACE_FLOOR''@|$(REPLACE_FLOOR)|g' \
|
||||
-e 's|@''REPLACE_FLOORF''@|$(REPLACE_FLOORF)|g' \
|
||||
-e 's|@''REPLACE_FLOORL''@|$(REPLACE_FLOORL)|g' \
|
||||
-e 's|@''REPLACE_FMA''@|$(REPLACE_FMA)|g' \
|
||||
-e 's|@''REPLACE_FMAF''@|$(REPLACE_FMAF)|g' \
|
||||
-e 's|@''REPLACE_FMAL''@|$(REPLACE_FMAL)|g' \
|
||||
-e 's|@''REPLACE_FMOD''@|$(REPLACE_FMOD)|g' \
|
||||
-e 's|@''REPLACE_FMODF''@|$(REPLACE_FMODF)|g' \
|
||||
-e 's|@''REPLACE_FMODL''@|$(REPLACE_FMODL)|g' \
|
||||
-e 's|@''REPLACE_FREXPF''@|$(REPLACE_FREXPF)|g' \
|
||||
-e 's|@''REPLACE_FREXP''@|$(REPLACE_FREXP)|g' \
|
||||
-e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
|
||||
-e 's|@''REPLACE_HUGE_VAL''@|$(REPLACE_HUGE_VAL)|g' \
|
||||
-e 's|@''REPLACE_HYPOT''@|$(REPLACE_HYPOT)|g' \
|
||||
-e 's|@''REPLACE_HYPOTF''@|$(REPLACE_HYPOTF)|g' \
|
||||
-e 's|@''REPLACE_HYPOTL''@|$(REPLACE_HYPOTL)|g' \
|
||||
-e 's|@''REPLACE_ILOGB''@|$(REPLACE_ILOGB)|g' \
|
||||
-e 's|@''REPLACE_ILOGBF''@|$(REPLACE_ILOGBF)|g' \
|
||||
-e 's|@''REPLACE_ISFINITE''@|$(REPLACE_ISFINITE)|g' \
|
||||
-e 's|@''REPLACE_ISINF''@|$(REPLACE_ISINF)|g' \
|
||||
-e 's|@''REPLACE_ISNAN''@|$(REPLACE_ISNAN)|g' \
|
||||
-e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \
|
||||
-e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
|
||||
-e 's|@''REPLACE_LOG''@|$(REPLACE_LOG)|g' \
|
||||
-e 's|@''REPLACE_LOGF''@|$(REPLACE_LOGF)|g' \
|
||||
-e 's|@''REPLACE_LOGL''@|$(REPLACE_LOGL)|g' \
|
||||
-e 's|@''REPLACE_LOG10''@|$(REPLACE_LOG10)|g' \
|
||||
-e 's|@''REPLACE_LOG10F''@|$(REPLACE_LOG10F)|g' \
|
||||
-e 's|@''REPLACE_LOG10L''@|$(REPLACE_LOG10L)|g' \
|
||||
-e 's|@''REPLACE_LOG1P''@|$(REPLACE_LOG1P)|g' \
|
||||
-e 's|@''REPLACE_LOG1PF''@|$(REPLACE_LOG1PF)|g' \
|
||||
-e 's|@''REPLACE_LOG1PL''@|$(REPLACE_LOG1PL)|g' \
|
||||
-e 's|@''REPLACE_LOG2''@|$(REPLACE_LOG2)|g' \
|
||||
-e 's|@''REPLACE_LOG2F''@|$(REPLACE_LOG2F)|g' \
|
||||
-e 's|@''REPLACE_LOG2L''@|$(REPLACE_LOG2L)|g' \
|
||||
-e 's|@''REPLACE_LOGB''@|$(REPLACE_LOGB)|g' \
|
||||
-e 's|@''REPLACE_LOGBF''@|$(REPLACE_LOGBF)|g' \
|
||||
-e 's|@''REPLACE_LOGBL''@|$(REPLACE_LOGBL)|g' \
|
||||
-e 's|@''REPLACE_MODF''@|$(REPLACE_MODF)|g' \
|
||||
-e 's|@''REPLACE_MODFF''@|$(REPLACE_MODFF)|g' \
|
||||
-e 's|@''REPLACE_MODFL''@|$(REPLACE_MODFL)|g' \
|
||||
-e 's|@''REPLACE_NAN''@|$(REPLACE_NAN)|g' \
|
||||
-e 's|@''REPLACE_REMAINDER''@|$(REPLACE_REMAINDER)|g' \
|
||||
-e 's|@''REPLACE_REMAINDERF''@|$(REPLACE_REMAINDERF)|g' \
|
||||
-e 's|@''REPLACE_REMAINDERL''@|$(REPLACE_REMAINDERL)|g' \
|
||||
-e 's|@''REPLACE_ROUND''@|$(REPLACE_ROUND)|g' \
|
||||
-e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
|
||||
-e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
|
||||
-e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
|
||||
-e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
|
||||
-e 's|@''REPLACE_SQRTL''@|$(REPLACE_SQRTL)|g' \
|
||||
-e 's|@''REPLACE_TRUNC''@|$(REPLACE_TRUNC)|g' \
|
||||
-e 's|@''REPLACE_TRUNCF''@|$(REPLACE_TRUNCF)|g' \
|
||||
-e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
|
||||
} > $@-t && \
|
||||
mv $@-t $@
|
||||
MOSTLYCLEANFILES += math.h math.h-t
|
||||
|
||||
EXTRA_DIST += math.in.h
|
||||
|
||||
## end gnulib module math
|
||||
|
||||
## begin gnulib module mbrtowc
|
||||
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
# the same distribution terms as the rest of that program.
|
||||
#
|
||||
# Generated by gnulib-tool.
|
||||
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=import --m4-base=import/m4 --doc-base=doc --tests-base=tests --aux-dir=import/extra --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files fnmatch-gnu inttypes memmem update-copyright
|
||||
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=import --m4-base=import/m4 --doc-base=doc --tests-base=tests --aux-dir=import/extra --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files fnmatch-gnu frexpl inttypes memmem update-copyright
|
||||
|
||||
|
||||
|
||||
|
@ -67,21 +67,30 @@ am__aclocal_m4_deps = $(top_srcdir)/import/m4/00gnulib.m4 \
|
|||
$(top_srcdir)/import/m4/alloca.m4 \
|
||||
$(top_srcdir)/import/m4/codeset.m4 \
|
||||
$(top_srcdir)/import/m4/configmake.m4 \
|
||||
$(top_srcdir)/import/m4/exponentd.m4 \
|
||||
$(top_srcdir)/import/m4/exponentl.m4 \
|
||||
$(top_srcdir)/import/m4/extensions.m4 \
|
||||
$(top_srcdir)/import/m4/extern-inline.m4 \
|
||||
$(top_srcdir)/import/m4/fcntl-o.m4 \
|
||||
$(top_srcdir)/import/m4/float_h.m4 \
|
||||
$(top_srcdir)/import/m4/fnmatch.m4 \
|
||||
$(top_srcdir)/import/m4/fpieee.m4 \
|
||||
$(top_srcdir)/import/m4/frexp.m4 \
|
||||
$(top_srcdir)/import/m4/frexpl.m4 \
|
||||
$(top_srcdir)/import/m4/glibc21.m4 \
|
||||
$(top_srcdir)/import/m4/gnulib-common.m4 \
|
||||
$(top_srcdir)/import/m4/gnulib-comp.m4 \
|
||||
$(top_srcdir)/import/m4/include_next.m4 \
|
||||
$(top_srcdir)/import/m4/inttypes-pri.m4 \
|
||||
$(top_srcdir)/import/m4/inttypes.m4 \
|
||||
$(top_srcdir)/import/m4/isnand.m4 \
|
||||
$(top_srcdir)/import/m4/isnanl.m4 \
|
||||
$(top_srcdir)/import/m4/localcharset.m4 \
|
||||
$(top_srcdir)/import/m4/locale-fr.m4 \
|
||||
$(top_srcdir)/import/m4/locale-ja.m4 \
|
||||
$(top_srcdir)/import/m4/locale-zh.m4 \
|
||||
$(top_srcdir)/import/m4/longlong.m4 \
|
||||
$(top_srcdir)/import/m4/math_h.m4 \
|
||||
$(top_srcdir)/import/m4/mbrtowc.m4 \
|
||||
$(top_srcdir)/import/m4/mbsinit.m4 \
|
||||
$(top_srcdir)/import/m4/mbsrtowcs.m4 \
|
||||
|
@ -109,8 +118,8 @@ CONFIG_CLEAN_VPATH_FILES =
|
|||
LIBRARIES = $(noinst_LIBRARIES)
|
||||
libgnu_a_AR = $(AR) $(ARFLAGS)
|
||||
am__DEPENDENCIES_1 =
|
||||
am_libgnu_a_OBJECTS = localcharset.$(OBJEXT) strnlen1.$(OBJEXT) \
|
||||
wctype-h.$(OBJEXT)
|
||||
am_libgnu_a_OBJECTS = localcharset.$(OBJEXT) math.$(OBJEXT) \
|
||||
strnlen1.$(OBJEXT) wctype-h.$(OBJEXT)
|
||||
libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS)
|
||||
LTLIBRARIES = $(noinst_LTLIBRARIES)
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
|
@ -195,15 +204,88 @@ ECHO_N = @ECHO_N@
|
|||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FLOAT_H = @FLOAT_H@
|
||||
FNMATCH_H = @FNMATCH_H@
|
||||
FREXPL_LIBM = @FREXPL_LIBM@
|
||||
FREXP_LIBM = @FREXP_LIBM@
|
||||
GLIBC21 = @GLIBC21@
|
||||
GNULIB_ACOSF = @GNULIB_ACOSF@
|
||||
GNULIB_ACOSL = @GNULIB_ACOSL@
|
||||
GNULIB_ASINF = @GNULIB_ASINF@
|
||||
GNULIB_ASINL = @GNULIB_ASINL@
|
||||
GNULIB_ATAN2F = @GNULIB_ATAN2F@
|
||||
GNULIB_ATANF = @GNULIB_ATANF@
|
||||
GNULIB_ATANL = @GNULIB_ATANL@
|
||||
GNULIB_BTOWC = @GNULIB_BTOWC@
|
||||
GNULIB_CBRT = @GNULIB_CBRT@
|
||||
GNULIB_CBRTF = @GNULIB_CBRTF@
|
||||
GNULIB_CBRTL = @GNULIB_CBRTL@
|
||||
GNULIB_CEIL = @GNULIB_CEIL@
|
||||
GNULIB_CEILF = @GNULIB_CEILF@
|
||||
GNULIB_CEILL = @GNULIB_CEILL@
|
||||
GNULIB_COPYSIGN = @GNULIB_COPYSIGN@
|
||||
GNULIB_COPYSIGNF = @GNULIB_COPYSIGNF@
|
||||
GNULIB_COPYSIGNL = @GNULIB_COPYSIGNL@
|
||||
GNULIB_COSF = @GNULIB_COSF@
|
||||
GNULIB_COSHF = @GNULIB_COSHF@
|
||||
GNULIB_COSL = @GNULIB_COSL@
|
||||
GNULIB_EXP2 = @GNULIB_EXP2@
|
||||
GNULIB_EXP2F = @GNULIB_EXP2F@
|
||||
GNULIB_EXP2L = @GNULIB_EXP2L@
|
||||
GNULIB_EXPF = @GNULIB_EXPF@
|
||||
GNULIB_EXPL = @GNULIB_EXPL@
|
||||
GNULIB_EXPM1 = @GNULIB_EXPM1@
|
||||
GNULIB_EXPM1F = @GNULIB_EXPM1F@
|
||||
GNULIB_EXPM1L = @GNULIB_EXPM1L@
|
||||
GNULIB_FABSF = @GNULIB_FABSF@
|
||||
GNULIB_FABSL = @GNULIB_FABSL@
|
||||
GNULIB_FFSL = @GNULIB_FFSL@
|
||||
GNULIB_FFSLL = @GNULIB_FFSLL@
|
||||
GNULIB_FLOOR = @GNULIB_FLOOR@
|
||||
GNULIB_FLOORF = @GNULIB_FLOORF@
|
||||
GNULIB_FLOORL = @GNULIB_FLOORL@
|
||||
GNULIB_FMA = @GNULIB_FMA@
|
||||
GNULIB_FMAF = @GNULIB_FMAF@
|
||||
GNULIB_FMAL = @GNULIB_FMAL@
|
||||
GNULIB_FMOD = @GNULIB_FMOD@
|
||||
GNULIB_FMODF = @GNULIB_FMODF@
|
||||
GNULIB_FMODL = @GNULIB_FMODL@
|
||||
GNULIB_FREXP = @GNULIB_FREXP@
|
||||
GNULIB_FREXPF = @GNULIB_FREXPF@
|
||||
GNULIB_FREXPL = @GNULIB_FREXPL@
|
||||
GNULIB_HYPOT = @GNULIB_HYPOT@
|
||||
GNULIB_HYPOTF = @GNULIB_HYPOTF@
|
||||
GNULIB_HYPOTL = @GNULIB_HYPOTL@
|
||||
GNULIB_ILOGB = @GNULIB_ILOGB@
|
||||
GNULIB_ILOGBF = @GNULIB_ILOGBF@
|
||||
GNULIB_ILOGBL = @GNULIB_ILOGBL@
|
||||
GNULIB_IMAXABS = @GNULIB_IMAXABS@
|
||||
GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
|
||||
GNULIB_ISFINITE = @GNULIB_ISFINITE@
|
||||
GNULIB_ISINF = @GNULIB_ISINF@
|
||||
GNULIB_ISNAN = @GNULIB_ISNAN@
|
||||
GNULIB_ISNAND = @GNULIB_ISNAND@
|
||||
GNULIB_ISNANF = @GNULIB_ISNANF@
|
||||
GNULIB_ISNANL = @GNULIB_ISNANL@
|
||||
GNULIB_ISWBLANK = @GNULIB_ISWBLANK@
|
||||
GNULIB_ISWCTYPE = @GNULIB_ISWCTYPE@
|
||||
GNULIB_LDEXPF = @GNULIB_LDEXPF@
|
||||
GNULIB_LDEXPL = @GNULIB_LDEXPL@
|
||||
GNULIB_LOG = @GNULIB_LOG@
|
||||
GNULIB_LOG10 = @GNULIB_LOG10@
|
||||
GNULIB_LOG10F = @GNULIB_LOG10F@
|
||||
GNULIB_LOG10L = @GNULIB_LOG10L@
|
||||
GNULIB_LOG1P = @GNULIB_LOG1P@
|
||||
GNULIB_LOG1PF = @GNULIB_LOG1PF@
|
||||
GNULIB_LOG1PL = @GNULIB_LOG1PL@
|
||||
GNULIB_LOG2 = @GNULIB_LOG2@
|
||||
GNULIB_LOG2F = @GNULIB_LOG2F@
|
||||
GNULIB_LOG2L = @GNULIB_LOG2L@
|
||||
GNULIB_LOGB = @GNULIB_LOGB@
|
||||
GNULIB_LOGBF = @GNULIB_LOGBF@
|
||||
GNULIB_LOGBL = @GNULIB_LOGBL@
|
||||
GNULIB_LOGF = @GNULIB_LOGF@
|
||||
GNULIB_LOGL = @GNULIB_LOGL@
|
||||
GNULIB_MBRLEN = @GNULIB_MBRLEN@
|
||||
GNULIB_MBRTOWC = @GNULIB_MBRTOWC@
|
||||
GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
|
||||
|
@ -227,7 +309,26 @@ GNULIB_MEMCHR = @GNULIB_MEMCHR@
|
|||
GNULIB_MEMMEM = @GNULIB_MEMMEM@
|
||||
GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
|
||||
GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
|
||||
GNULIB_MODF = @GNULIB_MODF@
|
||||
GNULIB_MODFF = @GNULIB_MODFF@
|
||||
GNULIB_MODFL = @GNULIB_MODFL@
|
||||
GNULIB_POWF = @GNULIB_POWF@
|
||||
GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@
|
||||
GNULIB_REMAINDER = @GNULIB_REMAINDER@
|
||||
GNULIB_REMAINDERF = @GNULIB_REMAINDERF@
|
||||
GNULIB_REMAINDERL = @GNULIB_REMAINDERL@
|
||||
GNULIB_RINT = @GNULIB_RINT@
|
||||
GNULIB_RINTF = @GNULIB_RINTF@
|
||||
GNULIB_RINTL = @GNULIB_RINTL@
|
||||
GNULIB_ROUND = @GNULIB_ROUND@
|
||||
GNULIB_ROUNDF = @GNULIB_ROUNDF@
|
||||
GNULIB_ROUNDL = @GNULIB_ROUNDL@
|
||||
GNULIB_SIGNBIT = @GNULIB_SIGNBIT@
|
||||
GNULIB_SINF = @GNULIB_SINF@
|
||||
GNULIB_SINHF = @GNULIB_SINHF@
|
||||
GNULIB_SINL = @GNULIB_SINL@
|
||||
GNULIB_SQRTF = @GNULIB_SQRTF@
|
||||
GNULIB_SQRTL = @GNULIB_SQRTL@
|
||||
GNULIB_STPCPY = @GNULIB_STPCPY@
|
||||
GNULIB_STPNCPY = @GNULIB_STPNCPY@
|
||||
GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
|
||||
|
@ -246,7 +347,13 @@ GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
|
|||
GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
|
||||
GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
|
||||
GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@
|
||||
GNULIB_TANF = @GNULIB_TANF@
|
||||
GNULIB_TANHF = @GNULIB_TANHF@
|
||||
GNULIB_TANL = @GNULIB_TANL@
|
||||
GNULIB_TOWCTRANS = @GNULIB_TOWCTRANS@
|
||||
GNULIB_TRUNC = @GNULIB_TRUNC@
|
||||
GNULIB_TRUNCF = @GNULIB_TRUNCF@
|
||||
GNULIB_TRUNCL = @GNULIB_TRUNCL@
|
||||
GNULIB_WCPCPY = @GNULIB_WCPCPY@
|
||||
GNULIB_WCPNCPY = @GNULIB_WCPNCPY@
|
||||
GNULIB_WCRTOMB = @GNULIB_WCRTOMB@
|
||||
|
@ -283,11 +390,58 @@ GNULIB_WMEMCPY = @GNULIB_WMEMCPY@
|
|||
GNULIB_WMEMMOVE = @GNULIB_WMEMMOVE@
|
||||
GNULIB_WMEMSET = @GNULIB_WMEMSET@
|
||||
GREP = @GREP@
|
||||
HAVE_ACOSF = @HAVE_ACOSF@
|
||||
HAVE_ACOSL = @HAVE_ACOSL@
|
||||
HAVE_ASINF = @HAVE_ASINF@
|
||||
HAVE_ASINL = @HAVE_ASINL@
|
||||
HAVE_ATAN2F = @HAVE_ATAN2F@
|
||||
HAVE_ATANF = @HAVE_ATANF@
|
||||
HAVE_ATANL = @HAVE_ATANL@
|
||||
HAVE_BTOWC = @HAVE_BTOWC@
|
||||
HAVE_CBRT = @HAVE_CBRT@
|
||||
HAVE_CBRTF = @HAVE_CBRTF@
|
||||
HAVE_CBRTL = @HAVE_CBRTL@
|
||||
HAVE_COPYSIGN = @HAVE_COPYSIGN@
|
||||
HAVE_COPYSIGNL = @HAVE_COPYSIGNL@
|
||||
HAVE_COSF = @HAVE_COSF@
|
||||
HAVE_COSHF = @HAVE_COSHF@
|
||||
HAVE_COSL = @HAVE_COSL@
|
||||
HAVE_DECL_ACOSL = @HAVE_DECL_ACOSL@
|
||||
HAVE_DECL_ASINL = @HAVE_DECL_ASINL@
|
||||
HAVE_DECL_ATANL = @HAVE_DECL_ATANL@
|
||||
HAVE_DECL_CBRTF = @HAVE_DECL_CBRTF@
|
||||
HAVE_DECL_CBRTL = @HAVE_DECL_CBRTL@
|
||||
HAVE_DECL_CEILF = @HAVE_DECL_CEILF@
|
||||
HAVE_DECL_CEILL = @HAVE_DECL_CEILL@
|
||||
HAVE_DECL_COPYSIGNF = @HAVE_DECL_COPYSIGNF@
|
||||
HAVE_DECL_COSL = @HAVE_DECL_COSL@
|
||||
HAVE_DECL_EXP2 = @HAVE_DECL_EXP2@
|
||||
HAVE_DECL_EXP2F = @HAVE_DECL_EXP2F@
|
||||
HAVE_DECL_EXP2L = @HAVE_DECL_EXP2L@
|
||||
HAVE_DECL_EXPL = @HAVE_DECL_EXPL@
|
||||
HAVE_DECL_EXPM1L = @HAVE_DECL_EXPM1L@
|
||||
HAVE_DECL_FLOORF = @HAVE_DECL_FLOORF@
|
||||
HAVE_DECL_FLOORL = @HAVE_DECL_FLOORL@
|
||||
HAVE_DECL_FREXPL = @HAVE_DECL_FREXPL@
|
||||
HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
|
||||
HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
|
||||
HAVE_DECL_LDEXPL = @HAVE_DECL_LDEXPL@
|
||||
HAVE_DECL_LOG10L = @HAVE_DECL_LOG10L@
|
||||
HAVE_DECL_LOG2 = @HAVE_DECL_LOG2@
|
||||
HAVE_DECL_LOG2F = @HAVE_DECL_LOG2F@
|
||||
HAVE_DECL_LOG2L = @HAVE_DECL_LOG2L@
|
||||
HAVE_DECL_LOGB = @HAVE_DECL_LOGB@
|
||||
HAVE_DECL_LOGL = @HAVE_DECL_LOGL@
|
||||
HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
|
||||
HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
|
||||
HAVE_DECL_REMAINDER = @HAVE_DECL_REMAINDER@
|
||||
HAVE_DECL_REMAINDERL = @HAVE_DECL_REMAINDERL@
|
||||
HAVE_DECL_RINTF = @HAVE_DECL_RINTF@
|
||||
HAVE_DECL_ROUND = @HAVE_DECL_ROUND@
|
||||
HAVE_DECL_ROUNDF = @HAVE_DECL_ROUNDF@
|
||||
HAVE_DECL_ROUNDL = @HAVE_DECL_ROUNDL@
|
||||
HAVE_DECL_SINL = @HAVE_DECL_SINL@
|
||||
HAVE_DECL_SQRTL = @HAVE_DECL_SQRTL@
|
||||
HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
|
||||
HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@
|
||||
HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
|
||||
|
@ -296,14 +450,48 @@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@
|
|||
HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
|
||||
HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
|
||||
HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
|
||||
HAVE_DECL_TANL = @HAVE_DECL_TANL@
|
||||
HAVE_DECL_TRUNC = @HAVE_DECL_TRUNC@
|
||||
HAVE_DECL_TRUNCF = @HAVE_DECL_TRUNCF@
|
||||
HAVE_DECL_TRUNCL = @HAVE_DECL_TRUNCL@
|
||||
HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@
|
||||
HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@
|
||||
HAVE_EXPF = @HAVE_EXPF@
|
||||
HAVE_EXPL = @HAVE_EXPL@
|
||||
HAVE_EXPM1 = @HAVE_EXPM1@
|
||||
HAVE_EXPM1F = @HAVE_EXPM1F@
|
||||
HAVE_FABSF = @HAVE_FABSF@
|
||||
HAVE_FABSL = @HAVE_FABSL@
|
||||
HAVE_FEATURES_H = @HAVE_FEATURES_H@
|
||||
HAVE_FFSL = @HAVE_FFSL@
|
||||
HAVE_FFSLL = @HAVE_FFSLL@
|
||||
HAVE_FMA = @HAVE_FMA@
|
||||
HAVE_FMAF = @HAVE_FMAF@
|
||||
HAVE_FMAL = @HAVE_FMAL@
|
||||
HAVE_FMODF = @HAVE_FMODF@
|
||||
HAVE_FMODL = @HAVE_FMODL@
|
||||
HAVE_FREXPF = @HAVE_FREXPF@
|
||||
HAVE_HYPOTF = @HAVE_HYPOTF@
|
||||
HAVE_HYPOTL = @HAVE_HYPOTL@
|
||||
HAVE_ILOGB = @HAVE_ILOGB@
|
||||
HAVE_ILOGBF = @HAVE_ILOGBF@
|
||||
HAVE_ILOGBL = @HAVE_ILOGBL@
|
||||
HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
|
||||
HAVE_ISNAND = @HAVE_ISNAND@
|
||||
HAVE_ISNANF = @HAVE_ISNANF@
|
||||
HAVE_ISNANL = @HAVE_ISNANL@
|
||||
HAVE_ISWBLANK = @HAVE_ISWBLANK@
|
||||
HAVE_ISWCNTRL = @HAVE_ISWCNTRL@
|
||||
HAVE_LDEXPF = @HAVE_LDEXPF@
|
||||
HAVE_LOG10F = @HAVE_LOG10F@
|
||||
HAVE_LOG10L = @HAVE_LOG10L@
|
||||
HAVE_LOG1P = @HAVE_LOG1P@
|
||||
HAVE_LOG1PF = @HAVE_LOG1PF@
|
||||
HAVE_LOG1PL = @HAVE_LOG1PL@
|
||||
HAVE_LOGBF = @HAVE_LOGBF@
|
||||
HAVE_LOGBL = @HAVE_LOGBL@
|
||||
HAVE_LOGF = @HAVE_LOGF@
|
||||
HAVE_LOGL = @HAVE_LOGL@
|
||||
HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
|
||||
HAVE_MBRLEN = @HAVE_MBRLEN@
|
||||
HAVE_MBRTOWC = @HAVE_MBRTOWC@
|
||||
|
@ -313,10 +501,23 @@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@
|
|||
HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@
|
||||
HAVE_MEMCHR = @HAVE_MEMCHR@
|
||||
HAVE_MEMPCPY = @HAVE_MEMPCPY@
|
||||
HAVE_MODFF = @HAVE_MODFF@
|
||||
HAVE_MODFL = @HAVE_MODFL@
|
||||
HAVE_POWF = @HAVE_POWF@
|
||||
HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@
|
||||
HAVE_REMAINDER = @HAVE_REMAINDER@
|
||||
HAVE_REMAINDERF = @HAVE_REMAINDERF@
|
||||
HAVE_RINT = @HAVE_RINT@
|
||||
HAVE_RINTL = @HAVE_RINTL@
|
||||
HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = @HAVE_SAME_LONG_DOUBLE_AS_DOUBLE@
|
||||
HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
|
||||
HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
|
||||
HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
|
||||
HAVE_SINF = @HAVE_SINF@
|
||||
HAVE_SINHF = @HAVE_SINHF@
|
||||
HAVE_SINL = @HAVE_SINL@
|
||||
HAVE_SQRTF = @HAVE_SQRTF@
|
||||
HAVE_SQRTL = @HAVE_SQRTL@
|
||||
HAVE_STDINT_H = @HAVE_STDINT_H@
|
||||
HAVE_STPCPY = @HAVE_STPCPY@
|
||||
HAVE_STPNCPY = @HAVE_STPNCPY@
|
||||
|
@ -328,6 +529,9 @@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@
|
|||
HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
|
||||
HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
|
||||
HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
|
||||
HAVE_TANF = @HAVE_TANF@
|
||||
HAVE_TANHF = @HAVE_TANHF@
|
||||
HAVE_TANL = @HAVE_TANL@
|
||||
HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
|
||||
HAVE_WCHAR_H = @HAVE_WCHAR_H@
|
||||
HAVE_WCHAR_T = @HAVE_WCHAR_T@
|
||||
|
@ -391,13 +595,17 @@ LTLIBOBJS = @LTLIBOBJS@
|
|||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_MATH_H = @NEXT_AS_FIRST_DIRECTIVE_MATH_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@
|
||||
NEXT_FLOAT_H = @NEXT_FLOAT_H@
|
||||
NEXT_INTTYPES_H = @NEXT_INTTYPES_H@
|
||||
NEXT_MATH_H = @NEXT_MATH_H@
|
||||
NEXT_STDDEF_H = @NEXT_STDDEF_H@
|
||||
NEXT_STDINT_H = @NEXT_STDINT_H@
|
||||
NEXT_STRING_H = @NEXT_STRING_H@
|
||||
|
@ -419,8 +627,56 @@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
|
|||
PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
|
||||
RANLIB = @RANLIB@
|
||||
REPLACE_BTOWC = @REPLACE_BTOWC@
|
||||
REPLACE_CBRTF = @REPLACE_CBRTF@
|
||||
REPLACE_CBRTL = @REPLACE_CBRTL@
|
||||
REPLACE_CEIL = @REPLACE_CEIL@
|
||||
REPLACE_CEILF = @REPLACE_CEILF@
|
||||
REPLACE_CEILL = @REPLACE_CEILL@
|
||||
REPLACE_EXP2 = @REPLACE_EXP2@
|
||||
REPLACE_EXP2L = @REPLACE_EXP2L@
|
||||
REPLACE_EXPM1 = @REPLACE_EXPM1@
|
||||
REPLACE_EXPM1F = @REPLACE_EXPM1F@
|
||||
REPLACE_FABSL = @REPLACE_FABSL@
|
||||
REPLACE_FLOOR = @REPLACE_FLOOR@
|
||||
REPLACE_FLOORF = @REPLACE_FLOORF@
|
||||
REPLACE_FLOORL = @REPLACE_FLOORL@
|
||||
REPLACE_FMA = @REPLACE_FMA@
|
||||
REPLACE_FMAF = @REPLACE_FMAF@
|
||||
REPLACE_FMAL = @REPLACE_FMAL@
|
||||
REPLACE_FMOD = @REPLACE_FMOD@
|
||||
REPLACE_FMODF = @REPLACE_FMODF@
|
||||
REPLACE_FMODL = @REPLACE_FMODL@
|
||||
REPLACE_FREXP = @REPLACE_FREXP@
|
||||
REPLACE_FREXPF = @REPLACE_FREXPF@
|
||||
REPLACE_FREXPL = @REPLACE_FREXPL@
|
||||
REPLACE_HUGE_VAL = @REPLACE_HUGE_VAL@
|
||||
REPLACE_HYPOT = @REPLACE_HYPOT@
|
||||
REPLACE_HYPOTF = @REPLACE_HYPOTF@
|
||||
REPLACE_HYPOTL = @REPLACE_HYPOTL@
|
||||
REPLACE_ILOGB = @REPLACE_ILOGB@
|
||||
REPLACE_ILOGBF = @REPLACE_ILOGBF@
|
||||
REPLACE_ISFINITE = @REPLACE_ISFINITE@
|
||||
REPLACE_ISINF = @REPLACE_ISINF@
|
||||
REPLACE_ISNAN = @REPLACE_ISNAN@
|
||||
REPLACE_ISWBLANK = @REPLACE_ISWBLANK@
|
||||
REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@
|
||||
REPLACE_ITOLD = @REPLACE_ITOLD@
|
||||
REPLACE_LDEXPL = @REPLACE_LDEXPL@
|
||||
REPLACE_LOG = @REPLACE_LOG@
|
||||
REPLACE_LOG10 = @REPLACE_LOG10@
|
||||
REPLACE_LOG10F = @REPLACE_LOG10F@
|
||||
REPLACE_LOG10L = @REPLACE_LOG10L@
|
||||
REPLACE_LOG1P = @REPLACE_LOG1P@
|
||||
REPLACE_LOG1PF = @REPLACE_LOG1PF@
|
||||
REPLACE_LOG1PL = @REPLACE_LOG1PL@
|
||||
REPLACE_LOG2 = @REPLACE_LOG2@
|
||||
REPLACE_LOG2F = @REPLACE_LOG2F@
|
||||
REPLACE_LOG2L = @REPLACE_LOG2L@
|
||||
REPLACE_LOGB = @REPLACE_LOGB@
|
||||
REPLACE_LOGBF = @REPLACE_LOGBF@
|
||||
REPLACE_LOGBL = @REPLACE_LOGBL@
|
||||
REPLACE_LOGF = @REPLACE_LOGF@
|
||||
REPLACE_LOGL = @REPLACE_LOGL@
|
||||
REPLACE_MBRLEN = @REPLACE_MBRLEN@
|
||||
REPLACE_MBRTOWC = @REPLACE_MBRTOWC@
|
||||
REPLACE_MBSINIT = @REPLACE_MBSINIT@
|
||||
|
@ -429,7 +685,20 @@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@
|
|||
REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@
|
||||
REPLACE_MEMCHR = @REPLACE_MEMCHR@
|
||||
REPLACE_MEMMEM = @REPLACE_MEMMEM@
|
||||
REPLACE_MODF = @REPLACE_MODF@
|
||||
REPLACE_MODFF = @REPLACE_MODFF@
|
||||
REPLACE_MODFL = @REPLACE_MODFL@
|
||||
REPLACE_NAN = @REPLACE_NAN@
|
||||
REPLACE_NULL = @REPLACE_NULL@
|
||||
REPLACE_REMAINDER = @REPLACE_REMAINDER@
|
||||
REPLACE_REMAINDERF = @REPLACE_REMAINDERF@
|
||||
REPLACE_REMAINDERL = @REPLACE_REMAINDERL@
|
||||
REPLACE_ROUND = @REPLACE_ROUND@
|
||||
REPLACE_ROUNDF = @REPLACE_ROUNDF@
|
||||
REPLACE_ROUNDL = @REPLACE_ROUNDL@
|
||||
REPLACE_SIGNBIT = @REPLACE_SIGNBIT@
|
||||
REPLACE_SIGNBIT_USING_GCC = @REPLACE_SIGNBIT_USING_GCC@
|
||||
REPLACE_SQRTL = @REPLACE_SQRTL@
|
||||
REPLACE_STPNCPY = @REPLACE_STPNCPY@
|
||||
REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
|
||||
REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@
|
||||
|
@ -444,6 +713,9 @@ REPLACE_STRSTR = @REPLACE_STRSTR@
|
|||
REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@
|
||||
REPLACE_STRTOK_R = @REPLACE_STRTOK_R@
|
||||
REPLACE_TOWLOWER = @REPLACE_TOWLOWER@
|
||||
REPLACE_TRUNC = @REPLACE_TRUNC@
|
||||
REPLACE_TRUNCF = @REPLACE_TRUNCF@
|
||||
REPLACE_TRUNCL = @REPLACE_TRUNCL@
|
||||
REPLACE_WCRTOMB = @REPLACE_WCRTOMB@
|
||||
REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@
|
||||
REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@
|
||||
|
@ -529,9 +801,12 @@ SUBDIRS =
|
|||
noinst_HEADERS =
|
||||
noinst_LIBRARIES = libgnu.a
|
||||
noinst_LTLIBRARIES =
|
||||
EXTRA_DIST = m4/gnulib-cache.m4 alloca.c alloca.in.h fnmatch.c \
|
||||
fnmatch.in.h fnmatch_loop.c inttypes.in.h config.charset \
|
||||
ref-add.sin ref-del.sin mbrtowc.c mbsinit.c mbsrtowcs-impl.h \
|
||||
EXTRA_DIST = m4/gnulib-cache.m4 alloca.c alloca.in.h float.c \
|
||||
float.in.h itold.c fnmatch.c fnmatch.in.h fnmatch_loop.c \
|
||||
fpucw.h frexp.c frexp.c frexpl.c inttypes.in.h float+.h \
|
||||
isnan.c isnand-nolibm.h isnand.c float+.h isnan.c \
|
||||
isnanl-nolibm.h isnanl.c config.charset ref-add.sin \
|
||||
ref-del.sin math.in.h mbrtowc.c mbsinit.c mbsrtowcs-impl.h \
|
||||
mbsrtowcs-state.c mbsrtowcs.c memchr.c memchr.valgrind \
|
||||
memmem.c str-two-way.h \
|
||||
$(top_srcdir)/import/extra/snippet/arg-nonnull.h \
|
||||
|
@ -550,16 +825,16 @@ EXTRA_DIST = m4/gnulib-cache.m4 alloca.c alloca.in.h fnmatch.c \
|
|||
# statements but through direct file reference. Therefore this snippet must be
|
||||
# present in all Makefile.am that need it. This is ensured by the applicability
|
||||
# 'all' defined above.
|
||||
BUILT_SOURCES = $(ALLOCA_H) configmake.h $(FNMATCH_H) inttypes.h \
|
||||
arg-nonnull.h c++defs.h warn-on-use.h $(STDBOOL_H) $(STDDEF_H) \
|
||||
$(STDINT_H) string.h wchar.h wctype.h
|
||||
BUILT_SOURCES = $(ALLOCA_H) configmake.h $(FLOAT_H) $(FNMATCH_H) \
|
||||
inttypes.h math.h arg-nonnull.h c++defs.h warn-on-use.h \
|
||||
$(STDBOOL_H) $(STDDEF_H) $(STDINT_H) string.h wchar.h wctype.h
|
||||
SUFFIXES = .sed .sin
|
||||
MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t fnmatch.h \
|
||||
fnmatch.h-t inttypes.h inttypes.h-t arg-nonnull.h \
|
||||
arg-nonnull.h-t c++defs.h c++defs.h-t warn-on-use.h \
|
||||
warn-on-use.h-t stdbool.h stdbool.h-t stddef.h stddef.h-t \
|
||||
stdint.h stdint.h-t string.h string.h-t wchar.h wchar.h-t \
|
||||
wctype.h wctype.h-t
|
||||
MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t float.h \
|
||||
float.h-t fnmatch.h fnmatch.h-t inttypes.h inttypes.h-t math.h \
|
||||
math.h-t arg-nonnull.h arg-nonnull.h-t c++defs.h c++defs.h-t \
|
||||
warn-on-use.h warn-on-use.h-t stdbool.h stdbool.h-t stddef.h \
|
||||
stddef.h-t stdint.h stdint.h-t string.h string.h-t wchar.h \
|
||||
wchar.h-t wctype.h wctype.h-t
|
||||
MOSTLYCLEANDIRS =
|
||||
CLEANFILES = configmake.h configmake.h-t charset.alias ref-add.sed \
|
||||
ref-del.sed
|
||||
|
@ -567,12 +842,14 @@ DISTCLEANFILES =
|
|||
MAINTAINERCLEANFILES =
|
||||
AM_CPPFLAGS =
|
||||
AM_CFLAGS =
|
||||
libgnu_a_SOURCES = localcharset.h localcharset.c strnlen1.h strnlen1.c \
|
||||
wctype-h.c
|
||||
libgnu_a_SOURCES = localcharset.h localcharset.c math.c strnlen1.h \
|
||||
strnlen1.c wctype-h.c
|
||||
libgnu_a_LIBADD = $(gl_LIBOBJS) @ALLOCA@
|
||||
libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) @ALLOCA@
|
||||
EXTRA_libgnu_a_SOURCES = alloca.c fnmatch.c fnmatch_loop.c mbrtowc.c \
|
||||
mbsinit.c mbsrtowcs-state.c mbsrtowcs.c memchr.c memmem.c
|
||||
EXTRA_libgnu_a_SOURCES = alloca.c float.c itold.c fnmatch.c \
|
||||
fnmatch_loop.c frexp.c frexp.c frexpl.c isnan.c isnand.c \
|
||||
isnan.c isnanl.c mbrtowc.c mbsinit.c mbsrtowcs-state.c \
|
||||
mbsrtowcs.c memchr.c memmem.c
|
||||
charset_alias = $(DESTDIR)$(libdir)/charset.alias
|
||||
charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
|
||||
ARG_NONNULL_H = arg-nonnull.h
|
||||
|
@ -638,9 +915,17 @@ distclean-compile:
|
|||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/alloca.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alloca.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/float.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fnmatch.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fnmatch_loop.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frexp.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frexpl.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnan.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnand.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnanl.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/itold.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/localcharset.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/math.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbrtowc.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbsinit.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbsrtowcs-state.Po@am__quote@
|
||||
|
@ -1033,6 +1318,23 @@ configmake.h: Makefile
|
|||
} | sed '/""/d' > $@-t && \
|
||||
mv -f $@-t $@
|
||||
|
||||
# We need the following in order to create <float.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
@GL_GENERATE_FLOAT_H_TRUE@float.h: float.in.h $(top_builddir)/config.status
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ sed -e 's|@''GUARD_PREFIX''@|GL|g' \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ < $(srcdir)/float.in.h; \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ } > $@-t && \
|
||||
@GL_GENERATE_FLOAT_H_TRUE@ mv $@-t $@
|
||||
@GL_GENERATE_FLOAT_H_FALSE@float.h: $(top_builddir)/config.status
|
||||
@GL_GENERATE_FLOAT_H_FALSE@ rm -f $@
|
||||
|
||||
# We need the following in order to create <fnmatch.h> when the system
|
||||
# doesn't have one that supports the required API.
|
||||
@GL_GENERATE_FNMATCH_H_TRUE@fnmatch.h: fnmatch.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
|
||||
|
@ -1138,6 +1440,280 @@ charset.alias: config.charset
|
|||
$(AM_V_GEN)rm -f t-$@ $@ && \
|
||||
sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \
|
||||
mv t-$@ $@
|
||||
|
||||
# We need the following in order to create <math.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
|
||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||
sed -e 's|@''GUARD_PREFIX''@|GL|g' \
|
||||
-e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
|
||||
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
-e 's|@''NEXT_AS_FIRST_DIRECTIVE_MATH_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MATH_H)|g' \
|
||||
-e 's/@''GNULIB_ACOSF''@/$(GNULIB_ACOSF)/g' \
|
||||
-e 's/@''GNULIB_ACOSL''@/$(GNULIB_ACOSL)/g' \
|
||||
-e 's/@''GNULIB_ASINF''@/$(GNULIB_ASINF)/g' \
|
||||
-e 's/@''GNULIB_ASINL''@/$(GNULIB_ASINL)/g' \
|
||||
-e 's/@''GNULIB_ATANF''@/$(GNULIB_ATANF)/g' \
|
||||
-e 's/@''GNULIB_ATANL''@/$(GNULIB_ATANL)/g' \
|
||||
-e 's/@''GNULIB_ATAN2F''@/$(GNULIB_ATAN2F)/g' \
|
||||
-e 's/@''GNULIB_CBRT''@/$(GNULIB_CBRT)/g' \
|
||||
-e 's/@''GNULIB_CBRTF''@/$(GNULIB_CBRTF)/g' \
|
||||
-e 's/@''GNULIB_CBRTL''@/$(GNULIB_CBRTL)/g' \
|
||||
-e 's/@''GNULIB_CEIL''@/$(GNULIB_CEIL)/g' \
|
||||
-e 's/@''GNULIB_CEILF''@/$(GNULIB_CEILF)/g' \
|
||||
-e 's/@''GNULIB_CEILL''@/$(GNULIB_CEILL)/g' \
|
||||
-e 's/@''GNULIB_COPYSIGN''@/$(GNULIB_COPYSIGN)/g' \
|
||||
-e 's/@''GNULIB_COPYSIGNF''@/$(GNULIB_COPYSIGNF)/g' \
|
||||
-e 's/@''GNULIB_COPYSIGNL''@/$(GNULIB_COPYSIGNL)/g' \
|
||||
-e 's/@''GNULIB_COSF''@/$(GNULIB_COSF)/g' \
|
||||
-e 's/@''GNULIB_COSL''@/$(GNULIB_COSL)/g' \
|
||||
-e 's/@''GNULIB_COSHF''@/$(GNULIB_COSHF)/g' \
|
||||
-e 's/@''GNULIB_EXPF''@/$(GNULIB_EXPF)/g' \
|
||||
-e 's/@''GNULIB_EXPL''@/$(GNULIB_EXPL)/g' \
|
||||
-e 's/@''GNULIB_EXP2''@/$(GNULIB_EXP2)/g' \
|
||||
-e 's/@''GNULIB_EXP2F''@/$(GNULIB_EXP2F)/g' \
|
||||
-e 's/@''GNULIB_EXP2L''@/$(GNULIB_EXP2L)/g' \
|
||||
-e 's/@''GNULIB_EXPM1''@/$(GNULIB_EXPM1)/g' \
|
||||
-e 's/@''GNULIB_EXPM1F''@/$(GNULIB_EXPM1F)/g' \
|
||||
-e 's/@''GNULIB_EXPM1L''@/$(GNULIB_EXPM1L)/g' \
|
||||
-e 's/@''GNULIB_FABSF''@/$(GNULIB_FABSF)/g' \
|
||||
-e 's/@''GNULIB_FABSL''@/$(GNULIB_FABSL)/g' \
|
||||
-e 's/@''GNULIB_FLOOR''@/$(GNULIB_FLOOR)/g' \
|
||||
-e 's/@''GNULIB_FLOORF''@/$(GNULIB_FLOORF)/g' \
|
||||
-e 's/@''GNULIB_FLOORL''@/$(GNULIB_FLOORL)/g' \
|
||||
-e 's/@''GNULIB_FMA''@/$(GNULIB_FMA)/g' \
|
||||
-e 's/@''GNULIB_FMAF''@/$(GNULIB_FMAF)/g' \
|
||||
-e 's/@''GNULIB_FMAL''@/$(GNULIB_FMAL)/g' \
|
||||
-e 's/@''GNULIB_FMOD''@/$(GNULIB_FMOD)/g' \
|
||||
-e 's/@''GNULIB_FMODF''@/$(GNULIB_FMODF)/g' \
|
||||
-e 's/@''GNULIB_FMODL''@/$(GNULIB_FMODL)/g' \
|
||||
-e 's/@''GNULIB_FREXPF''@/$(GNULIB_FREXPF)/g' \
|
||||
-e 's/@''GNULIB_FREXP''@/$(GNULIB_FREXP)/g' \
|
||||
-e 's/@''GNULIB_FREXPL''@/$(GNULIB_FREXPL)/g' \
|
||||
-e 's/@''GNULIB_HYPOT''@/$(GNULIB_HYPOT)/g' \
|
||||
-e 's/@''GNULIB_HYPOTF''@/$(GNULIB_HYPOTF)/g' \
|
||||
-e 's/@''GNULIB_HYPOTL''@/$(GNULIB_HYPOTL)/g' \
|
||||
< $(srcdir)/math.in.h | \
|
||||
sed -e 's/@''GNULIB_ILOGB''@/$(GNULIB_ILOGB)/g' \
|
||||
-e 's/@''GNULIB_ILOGBF''@/$(GNULIB_ILOGBF)/g' \
|
||||
-e 's/@''GNULIB_ILOGBL''@/$(GNULIB_ILOGBL)/g' \
|
||||
-e 's/@''GNULIB_ISFINITE''@/$(GNULIB_ISFINITE)/g' \
|
||||
-e 's/@''GNULIB_ISINF''@/$(GNULIB_ISINF)/g' \
|
||||
-e 's/@''GNULIB_ISNAN''@/$(GNULIB_ISNAN)/g' \
|
||||
-e 's/@''GNULIB_ISNANF''@/$(GNULIB_ISNANF)/g' \
|
||||
-e 's/@''GNULIB_ISNAND''@/$(GNULIB_ISNAND)/g' \
|
||||
-e 's/@''GNULIB_ISNANL''@/$(GNULIB_ISNANL)/g' \
|
||||
-e 's/@''GNULIB_LDEXPF''@/$(GNULIB_LDEXPF)/g' \
|
||||
-e 's/@''GNULIB_LDEXPL''@/$(GNULIB_LDEXPL)/g' \
|
||||
-e 's/@''GNULIB_LOG''@/$(GNULIB_LOG)/g' \
|
||||
-e 's/@''GNULIB_LOGF''@/$(GNULIB_LOGF)/g' \
|
||||
-e 's/@''GNULIB_LOGL''@/$(GNULIB_LOGL)/g' \
|
||||
-e 's/@''GNULIB_LOG10''@/$(GNULIB_LOG10)/g' \
|
||||
-e 's/@''GNULIB_LOG10F''@/$(GNULIB_LOG10F)/g' \
|
||||
-e 's/@''GNULIB_LOG10L''@/$(GNULIB_LOG10L)/g' \
|
||||
-e 's/@''GNULIB_LOG1P''@/$(GNULIB_LOG1P)/g' \
|
||||
-e 's/@''GNULIB_LOG1PF''@/$(GNULIB_LOG1PF)/g' \
|
||||
-e 's/@''GNULIB_LOG1PL''@/$(GNULIB_LOG1PL)/g' \
|
||||
-e 's/@''GNULIB_LOG2''@/$(GNULIB_LOG2)/g' \
|
||||
-e 's/@''GNULIB_LOG2F''@/$(GNULIB_LOG2F)/g' \
|
||||
-e 's/@''GNULIB_LOG2L''@/$(GNULIB_LOG2L)/g' \
|
||||
-e 's/@''GNULIB_LOGB''@/$(GNULIB_LOGB)/g' \
|
||||
-e 's/@''GNULIB_LOGBF''@/$(GNULIB_LOGBF)/g' \
|
||||
-e 's/@''GNULIB_LOGBL''@/$(GNULIB_LOGBL)/g' \
|
||||
-e 's/@''GNULIB_MODF''@/$(GNULIB_MODF)/g' \
|
||||
-e 's/@''GNULIB_MODFF''@/$(GNULIB_MODFF)/g' \
|
||||
-e 's/@''GNULIB_MODFL''@/$(GNULIB_MODFL)/g' \
|
||||
-e 's/@''GNULIB_POWF''@/$(GNULIB_POWF)/g' \
|
||||
-e 's/@''GNULIB_REMAINDER''@/$(GNULIB_REMAINDER)/g' \
|
||||
-e 's/@''GNULIB_REMAINDERF''@/$(GNULIB_REMAINDERF)/g' \
|
||||
-e 's/@''GNULIB_REMAINDERL''@/$(GNULIB_REMAINDERL)/g' \
|
||||
-e 's/@''GNULIB_RINT''@/$(GNULIB_RINT)/g' \
|
||||
-e 's/@''GNULIB_RINTF''@/$(GNULIB_RINTF)/g' \
|
||||
-e 's/@''GNULIB_RINTL''@/$(GNULIB_RINTL)/g' \
|
||||
-e 's/@''GNULIB_ROUND''@/$(GNULIB_ROUND)/g' \
|
||||
-e 's/@''GNULIB_ROUNDF''@/$(GNULIB_ROUNDF)/g' \
|
||||
-e 's/@''GNULIB_ROUNDL''@/$(GNULIB_ROUNDL)/g' \
|
||||
-e 's/@''GNULIB_SIGNBIT''@/$(GNULIB_SIGNBIT)/g' \
|
||||
-e 's/@''GNULIB_SINF''@/$(GNULIB_SINF)/g' \
|
||||
-e 's/@''GNULIB_SINL''@/$(GNULIB_SINL)/g' \
|
||||
-e 's/@''GNULIB_SINHF''@/$(GNULIB_SINHF)/g' \
|
||||
-e 's/@''GNULIB_SQRTF''@/$(GNULIB_SQRTF)/g' \
|
||||
-e 's/@''GNULIB_SQRTL''@/$(GNULIB_SQRTL)/g' \
|
||||
-e 's/@''GNULIB_TANF''@/$(GNULIB_TANF)/g' \
|
||||
-e 's/@''GNULIB_TANL''@/$(GNULIB_TANL)/g' \
|
||||
-e 's/@''GNULIB_TANHF''@/$(GNULIB_TANHF)/g' \
|
||||
-e 's/@''GNULIB_TRUNC''@/$(GNULIB_TRUNC)/g' \
|
||||
-e 's/@''GNULIB_TRUNCF''@/$(GNULIB_TRUNCF)/g' \
|
||||
-e 's/@''GNULIB_TRUNCL''@/$(GNULIB_TRUNCL)/g' \
|
||||
| \
|
||||
sed -e 's|@''HAVE_ACOSF''@|$(HAVE_ACOSF)|g' \
|
||||
-e 's|@''HAVE_ACOSL''@|$(HAVE_ACOSL)|g' \
|
||||
-e 's|@''HAVE_ASINF''@|$(HAVE_ASINF)|g' \
|
||||
-e 's|@''HAVE_ASINL''@|$(HAVE_ASINL)|g' \
|
||||
-e 's|@''HAVE_ATANF''@|$(HAVE_ATANF)|g' \
|
||||
-e 's|@''HAVE_ATANL''@|$(HAVE_ATANL)|g' \
|
||||
-e 's|@''HAVE_ATAN2F''@|$(HAVE_ATAN2F)|g' \
|
||||
-e 's|@''HAVE_CBRT''@|$(HAVE_CBRT)|g' \
|
||||
-e 's|@''HAVE_CBRTF''@|$(HAVE_CBRTF)|g' \
|
||||
-e 's|@''HAVE_CBRTL''@|$(HAVE_CBRTL)|g' \
|
||||
-e 's|@''HAVE_COPYSIGN''@|$(HAVE_COPYSIGN)|g' \
|
||||
-e 's|@''HAVE_COPYSIGNL''@|$(HAVE_COPYSIGNL)|g' \
|
||||
-e 's|@''HAVE_COSF''@|$(HAVE_COSF)|g' \
|
||||
-e 's|@''HAVE_COSL''@|$(HAVE_COSL)|g' \
|
||||
-e 's|@''HAVE_COSHF''@|$(HAVE_COSHF)|g' \
|
||||
-e 's|@''HAVE_EXPF''@|$(HAVE_EXPF)|g' \
|
||||
-e 's|@''HAVE_EXPL''@|$(HAVE_EXPL)|g' \
|
||||
-e 's|@''HAVE_EXPM1''@|$(HAVE_EXPM1)|g' \
|
||||
-e 's|@''HAVE_EXPM1F''@|$(HAVE_EXPM1F)|g' \
|
||||
-e 's|@''HAVE_FABSF''@|$(HAVE_FABSF)|g' \
|
||||
-e 's|@''HAVE_FABSL''@|$(HAVE_FABSL)|g' \
|
||||
-e 's|@''HAVE_FMA''@|$(HAVE_FMA)|g' \
|
||||
-e 's|@''HAVE_FMAF''@|$(HAVE_FMAF)|g' \
|
||||
-e 's|@''HAVE_FMAL''@|$(HAVE_FMAL)|g' \
|
||||
-e 's|@''HAVE_FMODF''@|$(HAVE_FMODF)|g' \
|
||||
-e 's|@''HAVE_FMODL''@|$(HAVE_FMODL)|g' \
|
||||
-e 's|@''HAVE_FREXPF''@|$(HAVE_FREXPF)|g' \
|
||||
-e 's|@''HAVE_HYPOTF''@|$(HAVE_HYPOTF)|g' \
|
||||
-e 's|@''HAVE_HYPOTL''@|$(HAVE_HYPOTL)|g' \
|
||||
-e 's|@''HAVE_ILOGB''@|$(HAVE_ILOGB)|g' \
|
||||
-e 's|@''HAVE_ILOGBF''@|$(HAVE_ILOGBF)|g' \
|
||||
-e 's|@''HAVE_ILOGBL''@|$(HAVE_ILOGBL)|g' \
|
||||
-e 's|@''HAVE_ISNANF''@|$(HAVE_ISNANF)|g' \
|
||||
-e 's|@''HAVE_ISNAND''@|$(HAVE_ISNAND)|g' \
|
||||
-e 's|@''HAVE_ISNANL''@|$(HAVE_ISNANL)|g' \
|
||||
-e 's|@''HAVE_LDEXPF''@|$(HAVE_LDEXPF)|g' \
|
||||
-e 's|@''HAVE_LOGF''@|$(HAVE_LOGF)|g' \
|
||||
-e 's|@''HAVE_LOGL''@|$(HAVE_LOGL)|g' \
|
||||
-e 's|@''HAVE_LOG10F''@|$(HAVE_LOG10F)|g' \
|
||||
-e 's|@''HAVE_LOG10L''@|$(HAVE_LOG10L)|g' \
|
||||
-e 's|@''HAVE_LOG1P''@|$(HAVE_LOG1P)|g' \
|
||||
-e 's|@''HAVE_LOG1PF''@|$(HAVE_LOG1PF)|g' \
|
||||
-e 's|@''HAVE_LOG1PL''@|$(HAVE_LOG1PL)|g' \
|
||||
-e 's|@''HAVE_LOGBF''@|$(HAVE_LOGBF)|g' \
|
||||
-e 's|@''HAVE_LOGBL''@|$(HAVE_LOGBL)|g' \
|
||||
-e 's|@''HAVE_MODFF''@|$(HAVE_MODFF)|g' \
|
||||
-e 's|@''HAVE_MODFL''@|$(HAVE_MODFL)|g' \
|
||||
-e 's|@''HAVE_POWF''@|$(HAVE_POWF)|g' \
|
||||
-e 's|@''HAVE_REMAINDER''@|$(HAVE_REMAINDER)|g' \
|
||||
-e 's|@''HAVE_REMAINDERF''@|$(HAVE_REMAINDERF)|g' \
|
||||
-e 's|@''HAVE_RINT''@|$(HAVE_RINT)|g' \
|
||||
-e 's|@''HAVE_RINTL''@|$(HAVE_RINTL)|g' \
|
||||
-e 's|@''HAVE_SINF''@|$(HAVE_SINF)|g' \
|
||||
-e 's|@''HAVE_SINL''@|$(HAVE_SINL)|g' \
|
||||
-e 's|@''HAVE_SINHF''@|$(HAVE_SINHF)|g' \
|
||||
-e 's|@''HAVE_SQRTF''@|$(HAVE_SQRTF)|g' \
|
||||
-e 's|@''HAVE_SQRTL''@|$(HAVE_SQRTL)|g' \
|
||||
-e 's|@''HAVE_TANF''@|$(HAVE_TANF)|g' \
|
||||
-e 's|@''HAVE_TANL''@|$(HAVE_TANL)|g' \
|
||||
-e 's|@''HAVE_TANHF''@|$(HAVE_TANHF)|g' \
|
||||
-e 's|@''HAVE_DECL_ACOSL''@|$(HAVE_DECL_ACOSL)|g' \
|
||||
-e 's|@''HAVE_DECL_ASINL''@|$(HAVE_DECL_ASINL)|g' \
|
||||
-e 's|@''HAVE_DECL_ATANL''@|$(HAVE_DECL_ATANL)|g' \
|
||||
-e 's|@''HAVE_DECL_CBRTF''@|$(HAVE_DECL_CBRTF)|g' \
|
||||
-e 's|@''HAVE_DECL_CBRTL''@|$(HAVE_DECL_CBRTL)|g' \
|
||||
-e 's|@''HAVE_DECL_CEILF''@|$(HAVE_DECL_CEILF)|g' \
|
||||
-e 's|@''HAVE_DECL_CEILL''@|$(HAVE_DECL_CEILL)|g' \
|
||||
-e 's|@''HAVE_DECL_COPYSIGNF''@|$(HAVE_DECL_COPYSIGNF)|g' \
|
||||
-e 's|@''HAVE_DECL_COSL''@|$(HAVE_DECL_COSL)|g' \
|
||||
-e 's|@''HAVE_DECL_EXPL''@|$(HAVE_DECL_EXPL)|g' \
|
||||
-e 's|@''HAVE_DECL_EXP2''@|$(HAVE_DECL_EXP2)|g' \
|
||||
-e 's|@''HAVE_DECL_EXP2F''@|$(HAVE_DECL_EXP2F)|g' \
|
||||
-e 's|@''HAVE_DECL_EXP2L''@|$(HAVE_DECL_EXP2L)|g' \
|
||||
-e 's|@''HAVE_DECL_EXPM1L''@|$(HAVE_DECL_EXPM1L)|g' \
|
||||
-e 's|@''HAVE_DECL_FLOORF''@|$(HAVE_DECL_FLOORF)|g' \
|
||||
-e 's|@''HAVE_DECL_FLOORL''@|$(HAVE_DECL_FLOORL)|g' \
|
||||
-e 's|@''HAVE_DECL_FREXPL''@|$(HAVE_DECL_FREXPL)|g' \
|
||||
-e 's|@''HAVE_DECL_LDEXPL''@|$(HAVE_DECL_LDEXPL)|g' \
|
||||
-e 's|@''HAVE_DECL_LOGL''@|$(HAVE_DECL_LOGL)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG10L''@|$(HAVE_DECL_LOG10L)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG2''@|$(HAVE_DECL_LOG2)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG2F''@|$(HAVE_DECL_LOG2F)|g' \
|
||||
-e 's|@''HAVE_DECL_LOG2L''@|$(HAVE_DECL_LOG2L)|g' \
|
||||
-e 's|@''HAVE_DECL_LOGB''@|$(HAVE_DECL_LOGB)|g' \
|
||||
-e 's|@''HAVE_DECL_REMAINDER''@|$(HAVE_DECL_REMAINDER)|g' \
|
||||
-e 's|@''HAVE_DECL_REMAINDERL''@|$(HAVE_DECL_REMAINDERL)|g' \
|
||||
-e 's|@''HAVE_DECL_RINTF''@|$(HAVE_DECL_RINTF)|g' \
|
||||
-e 's|@''HAVE_DECL_ROUND''@|$(HAVE_DECL_ROUND)|g' \
|
||||
-e 's|@''HAVE_DECL_ROUNDF''@|$(HAVE_DECL_ROUNDF)|g' \
|
||||
-e 's|@''HAVE_DECL_ROUNDL''@|$(HAVE_DECL_ROUNDL)|g' \
|
||||
-e 's|@''HAVE_DECL_SINL''@|$(HAVE_DECL_SINL)|g' \
|
||||
-e 's|@''HAVE_DECL_SQRTL''@|$(HAVE_DECL_SQRTL)|g' \
|
||||
-e 's|@''HAVE_DECL_TANL''@|$(HAVE_DECL_TANL)|g' \
|
||||
-e 's|@''HAVE_DECL_TRUNC''@|$(HAVE_DECL_TRUNC)|g' \
|
||||
-e 's|@''HAVE_DECL_TRUNCF''@|$(HAVE_DECL_TRUNCF)|g' \
|
||||
-e 's|@''HAVE_DECL_TRUNCL''@|$(HAVE_DECL_TRUNCL)|g' \
|
||||
| \
|
||||
sed -e 's|@''REPLACE_CBRTF''@|$(REPLACE_CBRTF)|g' \
|
||||
-e 's|@''REPLACE_CBRTL''@|$(REPLACE_CBRTL)|g' \
|
||||
-e 's|@''REPLACE_CEIL''@|$(REPLACE_CEIL)|g' \
|
||||
-e 's|@''REPLACE_CEILF''@|$(REPLACE_CEILF)|g' \
|
||||
-e 's|@''REPLACE_CEILL''@|$(REPLACE_CEILL)|g' \
|
||||
-e 's|@''REPLACE_EXPM1''@|$(REPLACE_EXPM1)|g' \
|
||||
-e 's|@''REPLACE_EXPM1F''@|$(REPLACE_EXPM1F)|g' \
|
||||
-e 's|@''REPLACE_EXP2''@|$(REPLACE_EXP2)|g' \
|
||||
-e 's|@''REPLACE_EXP2L''@|$(REPLACE_EXP2L)|g' \
|
||||
-e 's|@''REPLACE_FABSL''@|$(REPLACE_FABSL)|g' \
|
||||
-e 's|@''REPLACE_FLOOR''@|$(REPLACE_FLOOR)|g' \
|
||||
-e 's|@''REPLACE_FLOORF''@|$(REPLACE_FLOORF)|g' \
|
||||
-e 's|@''REPLACE_FLOORL''@|$(REPLACE_FLOORL)|g' \
|
||||
-e 's|@''REPLACE_FMA''@|$(REPLACE_FMA)|g' \
|
||||
-e 's|@''REPLACE_FMAF''@|$(REPLACE_FMAF)|g' \
|
||||
-e 's|@''REPLACE_FMAL''@|$(REPLACE_FMAL)|g' \
|
||||
-e 's|@''REPLACE_FMOD''@|$(REPLACE_FMOD)|g' \
|
||||
-e 's|@''REPLACE_FMODF''@|$(REPLACE_FMODF)|g' \
|
||||
-e 's|@''REPLACE_FMODL''@|$(REPLACE_FMODL)|g' \
|
||||
-e 's|@''REPLACE_FREXPF''@|$(REPLACE_FREXPF)|g' \
|
||||
-e 's|@''REPLACE_FREXP''@|$(REPLACE_FREXP)|g' \
|
||||
-e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
|
||||
-e 's|@''REPLACE_HUGE_VAL''@|$(REPLACE_HUGE_VAL)|g' \
|
||||
-e 's|@''REPLACE_HYPOT''@|$(REPLACE_HYPOT)|g' \
|
||||
-e 's|@''REPLACE_HYPOTF''@|$(REPLACE_HYPOTF)|g' \
|
||||
-e 's|@''REPLACE_HYPOTL''@|$(REPLACE_HYPOTL)|g' \
|
||||
-e 's|@''REPLACE_ILOGB''@|$(REPLACE_ILOGB)|g' \
|
||||
-e 's|@''REPLACE_ILOGBF''@|$(REPLACE_ILOGBF)|g' \
|
||||
-e 's|@''REPLACE_ISFINITE''@|$(REPLACE_ISFINITE)|g' \
|
||||
-e 's|@''REPLACE_ISINF''@|$(REPLACE_ISINF)|g' \
|
||||
-e 's|@''REPLACE_ISNAN''@|$(REPLACE_ISNAN)|g' \
|
||||
-e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \
|
||||
-e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
|
||||
-e 's|@''REPLACE_LOG''@|$(REPLACE_LOG)|g' \
|
||||
-e 's|@''REPLACE_LOGF''@|$(REPLACE_LOGF)|g' \
|
||||
-e 's|@''REPLACE_LOGL''@|$(REPLACE_LOGL)|g' \
|
||||
-e 's|@''REPLACE_LOG10''@|$(REPLACE_LOG10)|g' \
|
||||
-e 's|@''REPLACE_LOG10F''@|$(REPLACE_LOG10F)|g' \
|
||||
-e 's|@''REPLACE_LOG10L''@|$(REPLACE_LOG10L)|g' \
|
||||
-e 's|@''REPLACE_LOG1P''@|$(REPLACE_LOG1P)|g' \
|
||||
-e 's|@''REPLACE_LOG1PF''@|$(REPLACE_LOG1PF)|g' \
|
||||
-e 's|@''REPLACE_LOG1PL''@|$(REPLACE_LOG1PL)|g' \
|
||||
-e 's|@''REPLACE_LOG2''@|$(REPLACE_LOG2)|g' \
|
||||
-e 's|@''REPLACE_LOG2F''@|$(REPLACE_LOG2F)|g' \
|
||||
-e 's|@''REPLACE_LOG2L''@|$(REPLACE_LOG2L)|g' \
|
||||
-e 's|@''REPLACE_LOGB''@|$(REPLACE_LOGB)|g' \
|
||||
-e 's|@''REPLACE_LOGBF''@|$(REPLACE_LOGBF)|g' \
|
||||
-e 's|@''REPLACE_LOGBL''@|$(REPLACE_LOGBL)|g' \
|
||||
-e 's|@''REPLACE_MODF''@|$(REPLACE_MODF)|g' \
|
||||
-e 's|@''REPLACE_MODFF''@|$(REPLACE_MODFF)|g' \
|
||||
-e 's|@''REPLACE_MODFL''@|$(REPLACE_MODFL)|g' \
|
||||
-e 's|@''REPLACE_NAN''@|$(REPLACE_NAN)|g' \
|
||||
-e 's|@''REPLACE_REMAINDER''@|$(REPLACE_REMAINDER)|g' \
|
||||
-e 's|@''REPLACE_REMAINDERF''@|$(REPLACE_REMAINDERF)|g' \
|
||||
-e 's|@''REPLACE_REMAINDERL''@|$(REPLACE_REMAINDERL)|g' \
|
||||
-e 's|@''REPLACE_ROUND''@|$(REPLACE_ROUND)|g' \
|
||||
-e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
|
||||
-e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
|
||||
-e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
|
||||
-e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
|
||||
-e 's|@''REPLACE_SQRTL''@|$(REPLACE_SQRTL)|g' \
|
||||
-e 's|@''REPLACE_TRUNC''@|$(REPLACE_TRUNC)|g' \
|
||||
-e 's|@''REPLACE_TRUNCF''@|$(REPLACE_TRUNCF)|g' \
|
||||
-e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
|
||||
} > $@-t && \
|
||||
mv $@-t $@
|
||||
# The arg-nonnull.h that gets inserted into generated .h files is the same as
|
||||
# build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
|
||||
# off.
|
||||
|
|
147
gdb/gnulib/import/float+.h
Normal file
147
gdb/gnulib/import/float+.h
Normal file
|
@ -0,0 +1,147 @@
|
|||
/* Supplemental information about the floating-point formats.
|
||||
Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2007.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _FLOATPLUS_H
|
||||
#define _FLOATPLUS_H
|
||||
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
|
||||
/* Number of bits in the mantissa of a floating-point number, including the
|
||||
"hidden bit". */
|
||||
#if FLT_RADIX == 2
|
||||
# define FLT_MANT_BIT FLT_MANT_DIG
|
||||
# define DBL_MANT_BIT DBL_MANT_DIG
|
||||
# define LDBL_MANT_BIT LDBL_MANT_DIG
|
||||
#elif FLT_RADIX == 4
|
||||
# define FLT_MANT_BIT (FLT_MANT_DIG * 2)
|
||||
# define DBL_MANT_BIT (DBL_MANT_DIG * 2)
|
||||
# define LDBL_MANT_BIT (LDBL_MANT_DIG * 2)
|
||||
#elif FLT_RADIX == 16
|
||||
# define FLT_MANT_BIT (FLT_MANT_DIG * 4)
|
||||
# define DBL_MANT_BIT (DBL_MANT_DIG * 4)
|
||||
# define LDBL_MANT_BIT (LDBL_MANT_DIG * 4)
|
||||
#endif
|
||||
|
||||
/* Bit mask that can be used to mask the exponent, as an unsigned number. */
|
||||
#define FLT_EXP_MASK ((FLT_MAX_EXP - FLT_MIN_EXP) | 7)
|
||||
#define DBL_EXP_MASK ((DBL_MAX_EXP - DBL_MIN_EXP) | 7)
|
||||
#define LDBL_EXP_MASK ((LDBL_MAX_EXP - LDBL_MIN_EXP) | 7)
|
||||
|
||||
/* Number of bits used for the exponent of a floating-point number, including
|
||||
the exponent's sign. */
|
||||
#define FLT_EXP_BIT \
|
||||
(FLT_EXP_MASK < 0x100 ? 8 : \
|
||||
FLT_EXP_MASK < 0x200 ? 9 : \
|
||||
FLT_EXP_MASK < 0x400 ? 10 : \
|
||||
FLT_EXP_MASK < 0x800 ? 11 : \
|
||||
FLT_EXP_MASK < 0x1000 ? 12 : \
|
||||
FLT_EXP_MASK < 0x2000 ? 13 : \
|
||||
FLT_EXP_MASK < 0x4000 ? 14 : \
|
||||
FLT_EXP_MASK < 0x8000 ? 15 : \
|
||||
FLT_EXP_MASK < 0x10000 ? 16 : \
|
||||
FLT_EXP_MASK < 0x20000 ? 17 : \
|
||||
FLT_EXP_MASK < 0x40000 ? 18 : \
|
||||
FLT_EXP_MASK < 0x80000 ? 19 : \
|
||||
FLT_EXP_MASK < 0x100000 ? 20 : \
|
||||
FLT_EXP_MASK < 0x200000 ? 21 : \
|
||||
FLT_EXP_MASK < 0x400000 ? 22 : \
|
||||
FLT_EXP_MASK < 0x800000 ? 23 : \
|
||||
FLT_EXP_MASK < 0x1000000 ? 24 : \
|
||||
FLT_EXP_MASK < 0x2000000 ? 25 : \
|
||||
FLT_EXP_MASK < 0x4000000 ? 26 : \
|
||||
FLT_EXP_MASK < 0x8000000 ? 27 : \
|
||||
FLT_EXP_MASK < 0x10000000 ? 28 : \
|
||||
FLT_EXP_MASK < 0x20000000 ? 29 : \
|
||||
FLT_EXP_MASK < 0x40000000 ? 30 : \
|
||||
FLT_EXP_MASK <= 0x7fffffff ? 31 : \
|
||||
32)
|
||||
#define DBL_EXP_BIT \
|
||||
(DBL_EXP_MASK < 0x100 ? 8 : \
|
||||
DBL_EXP_MASK < 0x200 ? 9 : \
|
||||
DBL_EXP_MASK < 0x400 ? 10 : \
|
||||
DBL_EXP_MASK < 0x800 ? 11 : \
|
||||
DBL_EXP_MASK < 0x1000 ? 12 : \
|
||||
DBL_EXP_MASK < 0x2000 ? 13 : \
|
||||
DBL_EXP_MASK < 0x4000 ? 14 : \
|
||||
DBL_EXP_MASK < 0x8000 ? 15 : \
|
||||
DBL_EXP_MASK < 0x10000 ? 16 : \
|
||||
DBL_EXP_MASK < 0x20000 ? 17 : \
|
||||
DBL_EXP_MASK < 0x40000 ? 18 : \
|
||||
DBL_EXP_MASK < 0x80000 ? 19 : \
|
||||
DBL_EXP_MASK < 0x100000 ? 20 : \
|
||||
DBL_EXP_MASK < 0x200000 ? 21 : \
|
||||
DBL_EXP_MASK < 0x400000 ? 22 : \
|
||||
DBL_EXP_MASK < 0x800000 ? 23 : \
|
||||
DBL_EXP_MASK < 0x1000000 ? 24 : \
|
||||
DBL_EXP_MASK < 0x2000000 ? 25 : \
|
||||
DBL_EXP_MASK < 0x4000000 ? 26 : \
|
||||
DBL_EXP_MASK < 0x8000000 ? 27 : \
|
||||
DBL_EXP_MASK < 0x10000000 ? 28 : \
|
||||
DBL_EXP_MASK < 0x20000000 ? 29 : \
|
||||
DBL_EXP_MASK < 0x40000000 ? 30 : \
|
||||
DBL_EXP_MASK <= 0x7fffffff ? 31 : \
|
||||
32)
|
||||
#define LDBL_EXP_BIT \
|
||||
(LDBL_EXP_MASK < 0x100 ? 8 : \
|
||||
LDBL_EXP_MASK < 0x200 ? 9 : \
|
||||
LDBL_EXP_MASK < 0x400 ? 10 : \
|
||||
LDBL_EXP_MASK < 0x800 ? 11 : \
|
||||
LDBL_EXP_MASK < 0x1000 ? 12 : \
|
||||
LDBL_EXP_MASK < 0x2000 ? 13 : \
|
||||
LDBL_EXP_MASK < 0x4000 ? 14 : \
|
||||
LDBL_EXP_MASK < 0x8000 ? 15 : \
|
||||
LDBL_EXP_MASK < 0x10000 ? 16 : \
|
||||
LDBL_EXP_MASK < 0x20000 ? 17 : \
|
||||
LDBL_EXP_MASK < 0x40000 ? 18 : \
|
||||
LDBL_EXP_MASK < 0x80000 ? 19 : \
|
||||
LDBL_EXP_MASK < 0x100000 ? 20 : \
|
||||
LDBL_EXP_MASK < 0x200000 ? 21 : \
|
||||
LDBL_EXP_MASK < 0x400000 ? 22 : \
|
||||
LDBL_EXP_MASK < 0x800000 ? 23 : \
|
||||
LDBL_EXP_MASK < 0x1000000 ? 24 : \
|
||||
LDBL_EXP_MASK < 0x2000000 ? 25 : \
|
||||
LDBL_EXP_MASK < 0x4000000 ? 26 : \
|
||||
LDBL_EXP_MASK < 0x8000000 ? 27 : \
|
||||
LDBL_EXP_MASK < 0x10000000 ? 28 : \
|
||||
LDBL_EXP_MASK < 0x20000000 ? 29 : \
|
||||
LDBL_EXP_MASK < 0x40000000 ? 30 : \
|
||||
LDBL_EXP_MASK <= 0x7fffffff ? 31 : \
|
||||
32)
|
||||
|
||||
/* Number of bits used for a floating-point number: the mantissa (not
|
||||
counting the "hidden bit", since it may or may not be explicit), the
|
||||
exponent, and the sign. */
|
||||
#define FLT_TOTAL_BIT ((FLT_MANT_BIT - 1) + FLT_EXP_BIT + 1)
|
||||
#define DBL_TOTAL_BIT ((DBL_MANT_BIT - 1) + DBL_EXP_BIT + 1)
|
||||
#define LDBL_TOTAL_BIT ((LDBL_MANT_BIT - 1) + LDBL_EXP_BIT + 1)
|
||||
|
||||
/* Number of bytes used for a floating-point number.
|
||||
This can be smaller than the 'sizeof'. For example, on i386 systems,
|
||||
'long double' most often have LDBL_MANT_BIT = 64, LDBL_EXP_BIT = 16, hence
|
||||
LDBL_TOTAL_BIT = 80 bits, i.e. 10 bytes of consecutive memory, but
|
||||
sizeof (long double) = 12 or = 16. */
|
||||
#define SIZEOF_FLT ((FLT_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
|
||||
#define SIZEOF_DBL ((DBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
|
||||
#define SIZEOF_LDBL ((LDBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
|
||||
|
||||
/* Verify that SIZEOF_FLT <= sizeof (float) etc. */
|
||||
typedef int verify_sizeof_flt[SIZEOF_FLT <= sizeof (float) ? 1 : -1];
|
||||
typedef int verify_sizeof_dbl[SIZEOF_DBL <= sizeof (double) ? 1 : - 1];
|
||||
typedef int verify_sizeof_ldbl[SIZEOF_LDBL <= sizeof (long double) ? 1 : - 1];
|
||||
|
||||
#endif /* _FLOATPLUS_H */
|
33
gdb/gnulib/import/float.c
Normal file
33
gdb/gnulib/import/float.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/* Auxiliary definitions for <float.h>.
|
||||
Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2011.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <float.h>
|
||||
|
||||
#if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__
|
||||
const union gl_long_double_union gl_LDBL_MAX =
|
||||
{ { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } };
|
||||
#elif defined __i386__
|
||||
const union gl_long_double_union gl_LDBL_MAX =
|
||||
{ { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } };
|
||||
#else
|
||||
/* This declaration is solely to ensure that after preprocessing
|
||||
this file is never empty. */
|
||||
typedef int dummy;
|
||||
#endif
|
188
gdb/gnulib/import/float.in.h
Normal file
188
gdb/gnulib/import/float.in.h
Normal file
|
@ -0,0 +1,188 @@
|
|||
/* A correct <float.h>.
|
||||
|
||||
Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _@GUARD_PREFIX@_FLOAT_H
|
||||
|
||||
#if __GNUC__ >= 3
|
||||
@PRAGMA_SYSTEM_HEADER@
|
||||
#endif
|
||||
@PRAGMA_COLUMNS@
|
||||
|
||||
/* The include_next requires a split double-inclusion guard. */
|
||||
#@INCLUDE_NEXT@ @NEXT_FLOAT_H@
|
||||
|
||||
#ifndef _@GUARD_PREFIX@_FLOAT_H
|
||||
#define _@GUARD_PREFIX@_FLOAT_H
|
||||
|
||||
/* 'long double' properties. */
|
||||
|
||||
#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
|
||||
/* Number of mantissa units, in base FLT_RADIX. */
|
||||
# undef LDBL_MANT_DIG
|
||||
# define LDBL_MANT_DIG 64
|
||||
/* Number of decimal digits that is sufficient for representing a number. */
|
||||
# undef LDBL_DIG
|
||||
# define LDBL_DIG 18
|
||||
/* x-1 where x is the smallest representable number > 1. */
|
||||
# undef LDBL_EPSILON
|
||||
# define LDBL_EPSILON 1.0842021724855044340E-19L
|
||||
/* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP (-16381)
|
||||
/* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */
|
||||
# undef LDBL_MAX_EXP
|
||||
# define LDBL_MAX_EXP 16384
|
||||
/* Minimum positive normalized number. */
|
||||
# undef LDBL_MIN
|
||||
# define LDBL_MIN 3.3621031431120935063E-4932L
|
||||
/* Maximum representable finite number. */
|
||||
# undef LDBL_MAX
|
||||
# define LDBL_MAX 1.1897314953572317650E+4932L
|
||||
/* Minimum e such that 10^e is in the range of normalized numbers. */
|
||||
# undef LDBL_MIN_10_EXP
|
||||
# define LDBL_MIN_10_EXP (-4931)
|
||||
/* Maximum e such that 10^e is in the range of representable finite numbers. */
|
||||
# undef LDBL_MAX_10_EXP
|
||||
# define LDBL_MAX_10_EXP 4932
|
||||
#endif
|
||||
|
||||
/* On FreeBSD/x86 6.4, the 'long double' type really has only 53 bits of
|
||||
precision in the compiler but 64 bits of precision at runtime. See
|
||||
<http://lists.gnu.org/archive/html/bug-gnulib/2008-07/msg00063.html>. */
|
||||
#if defined __i386__ && defined __FreeBSD__
|
||||
/* Number of mantissa units, in base FLT_RADIX. */
|
||||
# undef LDBL_MANT_DIG
|
||||
# define LDBL_MANT_DIG 64
|
||||
/* Number of decimal digits that is sufficient for representing a number. */
|
||||
# undef LDBL_DIG
|
||||
# define LDBL_DIG 18
|
||||
/* x-1 where x is the smallest representable number > 1. */
|
||||
# undef LDBL_EPSILON
|
||||
# define LDBL_EPSILON 1.084202172485504434007452800869941711426e-19L /* 2^-63 */
|
||||
/* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP (-16381)
|
||||
/* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */
|
||||
# undef LDBL_MAX_EXP
|
||||
# define LDBL_MAX_EXP 16384
|
||||
/* Minimum positive normalized number. */
|
||||
# undef LDBL_MIN
|
||||
# define LDBL_MIN 3.3621031431120935E-4932L /* = 0x1p-16382L */
|
||||
/* Maximum representable finite number. */
|
||||
# undef LDBL_MAX
|
||||
/* LDBL_MAX is represented as { 0xFFFFFFFF, 0xFFFFFFFF, 32766 }.
|
||||
But the largest literal that GCC allows us to write is
|
||||
0x0.fffffffffffff8p16384L = { 0xFFFFF800, 0xFFFFFFFF, 32766 }.
|
||||
So, define it like this through a reference to an external variable
|
||||
|
||||
const unsigned int LDBL_MAX[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 32766 };
|
||||
extern const long double LDBL_MAX;
|
||||
|
||||
Unfortunately, this is not a constant expression. */
|
||||
union gl_long_double_union
|
||||
{
|
||||
struct { unsigned int lo; unsigned int hi; unsigned int exponent; } xd;
|
||||
long double ld;
|
||||
};
|
||||
extern const union gl_long_double_union gl_LDBL_MAX;
|
||||
# define LDBL_MAX (gl_LDBL_MAX.ld)
|
||||
/* Minimum e such that 10^e is in the range of normalized numbers. */
|
||||
# undef LDBL_MIN_10_EXP
|
||||
# define LDBL_MIN_10_EXP (-4931)
|
||||
/* Maximum e such that 10^e is in the range of representable finite numbers. */
|
||||
# undef LDBL_MAX_10_EXP
|
||||
# define LDBL_MAX_10_EXP 4932
|
||||
#endif
|
||||
|
||||
/* On AIX 7.1 with gcc 4.2, the values of LDBL_MIN_EXP, LDBL_MIN, LDBL_MAX are
|
||||
wrong.
|
||||
On Linux/PowerPC with gcc 4.4, the value of LDBL_MAX is wrong. */
|
||||
#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP DBL_MIN_EXP
|
||||
# undef LDBL_MIN_10_EXP
|
||||
# define LDBL_MIN_10_EXP DBL_MIN_10_EXP
|
||||
# undef LDBL_MIN
|
||||
# define LDBL_MIN 2.22507385850720138309023271733240406422e-308L /* DBL_MIN = 2^-1022 */
|
||||
#endif
|
||||
#if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__
|
||||
# undef LDBL_MAX
|
||||
/* LDBL_MAX is represented as { 0x7FEFFFFF, 0xFFFFFFFF, 0x7C8FFFFF, 0xFFFFFFFF }.
|
||||
It is not easy to define:
|
||||
#define LDBL_MAX 1.79769313486231580793728971405302307166e308L
|
||||
is too small, whereas
|
||||
#define LDBL_MAX 1.79769313486231580793728971405302307167e308L
|
||||
is too large. Apparently a bug in GCC decimal-to-binary conversion.
|
||||
Also, I can't get values larger than
|
||||
#define LDBL63 ((long double) (1ULL << 63))
|
||||
#define LDBL882 (LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63)
|
||||
#define LDBL945 (LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63)
|
||||
#define LDBL1008 (LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63)
|
||||
#define LDBL_MAX (LDBL1008 * 65535.0L + LDBL945 * (long double) 9223372036821221375ULL + LDBL882 * (long double) 4611686018427387904ULL)
|
||||
which is represented as { 0x7FEFFFFF, 0xFFFFFFFF, 0x7C8FFFFF, 0xF8000000 }.
|
||||
So, define it like this through a reference to an external variable
|
||||
|
||||
const double LDBL_MAX[2] = { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL };
|
||||
extern const long double LDBL_MAX;
|
||||
|
||||
or through a pointer cast
|
||||
|
||||
#define LDBL_MAX \
|
||||
(*(const long double *) (double[]) { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL })
|
||||
|
||||
Unfortunately, this is not a constant expression, and the latter expression
|
||||
does not work well when GCC is optimizing.. */
|
||||
union gl_long_double_union
|
||||
{
|
||||
struct { double hi; double lo; } dd;
|
||||
long double ld;
|
||||
};
|
||||
extern const union gl_long_double_union gl_LDBL_MAX;
|
||||
# define LDBL_MAX (gl_LDBL_MAX.ld)
|
||||
#endif
|
||||
|
||||
/* On IRIX 6.5, with cc, the value of LDBL_MANT_DIG is wrong.
|
||||
On IRIX 6.5, with gcc 4.2, the values of LDBL_MIN_EXP, LDBL_MIN, LDBL_EPSILON
|
||||
are wrong. */
|
||||
#if defined __sgi && (LDBL_MANT_DIG >= 106)
|
||||
# undef LDBL_MANT_DIG
|
||||
# define LDBL_MANT_DIG 106
|
||||
# if defined __GNUC__
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP DBL_MIN_EXP
|
||||
# undef LDBL_MIN_10_EXP
|
||||
# define LDBL_MIN_10_EXP DBL_MIN_10_EXP
|
||||
# undef LDBL_MIN
|
||||
# define LDBL_MIN 2.22507385850720138309023271733240406422e-308L /* DBL_MIN = 2^-1022 */
|
||||
# undef LDBL_EPSILON
|
||||
# define LDBL_EPSILON 2.46519032881566189191165176650870696773e-32L /* 2^-105 */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if @REPLACE_ITOLD@
|
||||
/* Pull in a function that fixes the 'int' to 'long double' conversion
|
||||
of glibc 2.7. */
|
||||
extern
|
||||
# ifdef __cplusplus
|
||||
"C"
|
||||
# endif
|
||||
void _Qp_itoq (long double *, int);
|
||||
static void (*_gl_float_fix_itold) (long double *, int) = _Qp_itoq;
|
||||
#endif
|
||||
|
||||
#endif /* _@GUARD_PREFIX@_FLOAT_H */
|
||||
#endif /* _@GUARD_PREFIX@_FLOAT_H */
|
108
gdb/gnulib/import/fpucw.h
Normal file
108
gdb/gnulib/import/fpucw.h
Normal file
|
@ -0,0 +1,108 @@
|
|||
/* Manipulating the FPU control word.
|
||||
Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2007.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _FPUCW_H
|
||||
#define _FPUCW_H
|
||||
|
||||
/* The i386 floating point hardware (the 387 compatible FPU, not the modern
|
||||
SSE/SSE2 hardware) has a controllable rounding precision. It is specified
|
||||
through the 'PC' bits in the FPU control word ('fctrl' register). (See
|
||||
the GNU libc i386 <fpu_control.h> header for details.)
|
||||
|
||||
On some platforms, such as Linux or Solaris, the default precision setting
|
||||
is set to "extended precision". This means that 'long double' instructions
|
||||
operate correctly, but 'double' computations often produce slightly
|
||||
different results as on strictly IEEE 754 conforming systems.
|
||||
|
||||
On some platforms, such as NetBSD, the default precision is set to
|
||||
"double precision". This means that 'long double' instructions will operate
|
||||
only as 'double', i.e. lead to wrong results. Similarly on FreeBSD 6.4, at
|
||||
least for the division of 'long double' numbers.
|
||||
|
||||
The FPU control word is under control of the application, i.e. it is
|
||||
not required to be set either way by the ABI. (In fact, the i386 ABI
|
||||
http://refspecs.freestandards.org/elf/abi386-4.pdf page 3-12 = page 38
|
||||
is not clear about it. But in any case, gcc treats the control word
|
||||
like a "preserved" register: it emits code that assumes that the control
|
||||
word is preserved across calls, and it restores the control word at the
|
||||
end of functions that modify it.)
|
||||
|
||||
See Vincent Lefèvre's page http://www.vinc17.org/research/extended.en.html
|
||||
for a good explanation.
|
||||
See http://www.uwsg.iu.edu/hypermail/linux/kernel/0103.0/0453.html for
|
||||
some argumentation which setting should be the default. */
|
||||
|
||||
/* This header file provides the following facilities:
|
||||
fpucw_t integral type holding the value of 'fctrl'
|
||||
FPU_PC_MASK bit mask denoting the precision control
|
||||
FPU_PC_DOUBLE precision control for 53 bits mantissa
|
||||
FPU_PC_EXTENDED precision control for 64 bits mantissa
|
||||
GET_FPUCW () yields the current FPU control word
|
||||
SET_FPUCW (word) sets the FPU control word
|
||||
DECL_LONG_DOUBLE_ROUNDING variable declaration for
|
||||
BEGIN/END_LONG_DOUBLE_ROUNDING
|
||||
BEGIN_LONG_DOUBLE_ROUNDING () starts a sequence of instructions with
|
||||
'long double' safe operation precision
|
||||
END_LONG_DOUBLE_ROUNDING () ends a sequence of instructions with
|
||||
'long double' safe operation precision
|
||||
*/
|
||||
|
||||
/* Inline assembler like this works only with GNU C. */
|
||||
#if (defined __i386__ || defined __x86_64__) && defined __GNUC__
|
||||
|
||||
typedef unsigned short fpucw_t; /* glibc calls this fpu_control_t */
|
||||
|
||||
# define FPU_PC_MASK 0x0300
|
||||
# define FPU_PC_DOUBLE 0x200 /* glibc calls this _FPU_DOUBLE */
|
||||
# define FPU_PC_EXTENDED 0x300 /* glibc calls this _FPU_EXTENDED */
|
||||
|
||||
# define GET_FPUCW() \
|
||||
({ fpucw_t _cw; \
|
||||
__asm__ __volatile__ ("fnstcw %0" : "=m" (*&_cw)); \
|
||||
_cw; \
|
||||
})
|
||||
# define SET_FPUCW(word) \
|
||||
(void)({ fpucw_t _ncw = (word); \
|
||||
__asm__ __volatile__ ("fldcw %0" : : "m" (*&_ncw)); \
|
||||
})
|
||||
|
||||
# define DECL_LONG_DOUBLE_ROUNDING \
|
||||
fpucw_t oldcw;
|
||||
# define BEGIN_LONG_DOUBLE_ROUNDING() \
|
||||
(void)(oldcw = GET_FPUCW (), \
|
||||
SET_FPUCW ((oldcw & ~FPU_PC_MASK) | FPU_PC_EXTENDED))
|
||||
# define END_LONG_DOUBLE_ROUNDING() \
|
||||
SET_FPUCW (oldcw)
|
||||
|
||||
#else
|
||||
|
||||
typedef unsigned int fpucw_t;
|
||||
|
||||
# define FPU_PC_MASK 0
|
||||
# define FPU_PC_DOUBLE 0
|
||||
# define FPU_PC_EXTENDED 0
|
||||
|
||||
# define GET_FPUCW() 0
|
||||
# define SET_FPUCW(word) (void)(word)
|
||||
|
||||
# define DECL_LONG_DOUBLE_ROUNDING
|
||||
# define BEGIN_LONG_DOUBLE_ROUNDING()
|
||||
# define END_LONG_DOUBLE_ROUNDING()
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _FPUCW_H */
|
168
gdb/gnulib/import/frexp.c
Normal file
168
gdb/gnulib/import/frexp.c
Normal file
|
@ -0,0 +1,168 @@
|
|||
/* Split a double into fraction and mantissa.
|
||||
Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written by Paolo Bonzini <bonzini@gnu.org>, 2003, and
|
||||
Bruno Haible <bruno@clisp.org>, 2007. */
|
||||
|
||||
#if ! defined USE_LONG_DOUBLE
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
/* Specification. */
|
||||
#include <math.h>
|
||||
|
||||
#include <float.h>
|
||||
#ifdef USE_LONG_DOUBLE
|
||||
# include "isnanl-nolibm.h"
|
||||
# include "fpucw.h"
|
||||
#else
|
||||
# include "isnand-nolibm.h"
|
||||
#endif
|
||||
|
||||
/* This file assumes FLT_RADIX = 2. If FLT_RADIX is a power of 2 greater
|
||||
than 2, or not even a power of 2, some rounding errors can occur, so that
|
||||
then the returned mantissa is only guaranteed to be <= 1.0, not < 1.0. */
|
||||
|
||||
#ifdef USE_LONG_DOUBLE
|
||||
# define FUNC frexpl
|
||||
# define DOUBLE long double
|
||||
# define ISNAN isnanl
|
||||
# define DECL_ROUNDING DECL_LONG_DOUBLE_ROUNDING
|
||||
# define BEGIN_ROUNDING() BEGIN_LONG_DOUBLE_ROUNDING ()
|
||||
# define END_ROUNDING() END_LONG_DOUBLE_ROUNDING ()
|
||||
# define L_(literal) literal##L
|
||||
#else
|
||||
# define FUNC frexp
|
||||
# define DOUBLE double
|
||||
# define ISNAN isnand
|
||||
# define DECL_ROUNDING
|
||||
# define BEGIN_ROUNDING()
|
||||
# define END_ROUNDING()
|
||||
# define L_(literal) literal
|
||||
#endif
|
||||
|
||||
DOUBLE
|
||||
FUNC (DOUBLE x, int *expptr)
|
||||
{
|
||||
int sign;
|
||||
int exponent;
|
||||
DECL_ROUNDING
|
||||
|
||||
/* Test for NaN, infinity, and zero. */
|
||||
if (ISNAN (x) || x + x == x)
|
||||
{
|
||||
*expptr = 0;
|
||||
return x;
|
||||
}
|
||||
|
||||
sign = 0;
|
||||
if (x < 0)
|
||||
{
|
||||
x = - x;
|
||||
sign = -1;
|
||||
}
|
||||
|
||||
BEGIN_ROUNDING ();
|
||||
|
||||
{
|
||||
/* Since the exponent is an 'int', it fits in 64 bits. Therefore the
|
||||
loops are executed no more than 64 times. */
|
||||
DOUBLE pow2[64]; /* pow2[i] = 2^2^i */
|
||||
DOUBLE powh[64]; /* powh[i] = 2^-2^i */
|
||||
int i;
|
||||
|
||||
exponent = 0;
|
||||
if (x >= L_(1.0))
|
||||
{
|
||||
/* A positive exponent. */
|
||||
DOUBLE pow2_i; /* = pow2[i] */
|
||||
DOUBLE powh_i; /* = powh[i] */
|
||||
|
||||
/* Invariants: pow2_i = 2^2^i, powh_i = 2^-2^i,
|
||||
x * 2^exponent = argument, x >= 1.0. */
|
||||
for (i = 0, pow2_i = L_(2.0), powh_i = L_(0.5);
|
||||
;
|
||||
i++, pow2_i = pow2_i * pow2_i, powh_i = powh_i * powh_i)
|
||||
{
|
||||
if (x >= pow2_i)
|
||||
{
|
||||
exponent += (1 << i);
|
||||
x *= powh_i;
|
||||
}
|
||||
else
|
||||
break;
|
||||
|
||||
pow2[i] = pow2_i;
|
||||
powh[i] = powh_i;
|
||||
}
|
||||
/* Avoid making x too small, as it could become a denormalized
|
||||
number and thus lose precision. */
|
||||
while (i > 0 && x < pow2[i - 1])
|
||||
{
|
||||
i--;
|
||||
powh_i = powh[i];
|
||||
}
|
||||
exponent += (1 << i);
|
||||
x *= powh_i;
|
||||
/* Here 2^-2^i <= x < 1.0. */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* A negative or zero exponent. */
|
||||
DOUBLE pow2_i; /* = pow2[i] */
|
||||
DOUBLE powh_i; /* = powh[i] */
|
||||
|
||||
/* Invariants: pow2_i = 2^2^i, powh_i = 2^-2^i,
|
||||
x * 2^exponent = argument, x < 1.0. */
|
||||
for (i = 0, pow2_i = L_(2.0), powh_i = L_(0.5);
|
||||
;
|
||||
i++, pow2_i = pow2_i * pow2_i, powh_i = powh_i * powh_i)
|
||||
{
|
||||
if (x < powh_i)
|
||||
{
|
||||
exponent -= (1 << i);
|
||||
x *= pow2_i;
|
||||
}
|
||||
else
|
||||
break;
|
||||
|
||||
pow2[i] = pow2_i;
|
||||
powh[i] = powh_i;
|
||||
}
|
||||
/* Here 2^-2^i <= x < 1.0. */
|
||||
}
|
||||
|
||||
/* Invariants: x * 2^exponent = argument, and 2^-2^i <= x < 1.0. */
|
||||
while (i > 0)
|
||||
{
|
||||
i--;
|
||||
if (x < powh[i])
|
||||
{
|
||||
exponent -= (1 << i);
|
||||
x *= pow2[i];
|
||||
}
|
||||
}
|
||||
/* Here 0.5 <= x < 1.0. */
|
||||
}
|
||||
|
||||
if (sign < 0)
|
||||
x = - x;
|
||||
|
||||
END_ROUNDING ();
|
||||
|
||||
*expptr = exponent;
|
||||
return x;
|
||||
}
|
35
gdb/gnulib/import/frexpl.c
Normal file
35
gdb/gnulib/import/frexpl.c
Normal file
|
@ -0,0 +1,35 @@
|
|||
/* Split a 'long double' into fraction and mantissa.
|
||||
Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
|
||||
|
||||
/* Specification. */
|
||||
# include <math.h>
|
||||
|
||||
long double
|
||||
frexpl (long double x, int *expptr)
|
||||
{
|
||||
return frexp (x, expptr);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
# define USE_LONG_DOUBLE
|
||||
# include "frexp.c"
|
||||
|
||||
#endif
|
177
gdb/gnulib/import/isnan.c
Normal file
177
gdb/gnulib/import/isnan.c
Normal file
|
@ -0,0 +1,177 @@
|
|||
/* Test for NaN that does not need libm.
|
||||
Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#ifdef USE_LONG_DOUBLE
|
||||
/* Specification found in math.h or isnanl-nolibm.h. */
|
||||
extern int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;
|
||||
#elif ! defined USE_FLOAT
|
||||
/* Specification found in math.h or isnand-nolibm.h. */
|
||||
extern int rpl_isnand (double x);
|
||||
#else /* defined USE_FLOAT */
|
||||
/* Specification found in math.h or isnanf-nolibm.h. */
|
||||
extern int rpl_isnanf (float x);
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "float+.h"
|
||||
|
||||
#ifdef USE_LONG_DOUBLE
|
||||
# define FUNC rpl_isnanl
|
||||
# define DOUBLE long double
|
||||
# define MAX_EXP LDBL_MAX_EXP
|
||||
# define MIN_EXP LDBL_MIN_EXP
|
||||
# if defined LDBL_EXPBIT0_WORD && defined LDBL_EXPBIT0_BIT
|
||||
# define KNOWN_EXPBIT0_LOCATION
|
||||
# define EXPBIT0_WORD LDBL_EXPBIT0_WORD
|
||||
# define EXPBIT0_BIT LDBL_EXPBIT0_BIT
|
||||
# endif
|
||||
# define SIZE SIZEOF_LDBL
|
||||
# define L_(literal) literal##L
|
||||
#elif ! defined USE_FLOAT
|
||||
# define FUNC rpl_isnand
|
||||
# define DOUBLE double
|
||||
# define MAX_EXP DBL_MAX_EXP
|
||||
# define MIN_EXP DBL_MIN_EXP
|
||||
# if defined DBL_EXPBIT0_WORD && defined DBL_EXPBIT0_BIT
|
||||
# define KNOWN_EXPBIT0_LOCATION
|
||||
# define EXPBIT0_WORD DBL_EXPBIT0_WORD
|
||||
# define EXPBIT0_BIT DBL_EXPBIT0_BIT
|
||||
# endif
|
||||
# define SIZE SIZEOF_DBL
|
||||
# define L_(literal) literal
|
||||
#else /* defined USE_FLOAT */
|
||||
# define FUNC rpl_isnanf
|
||||
# define DOUBLE float
|
||||
# define MAX_EXP FLT_MAX_EXP
|
||||
# define MIN_EXP FLT_MIN_EXP
|
||||
# if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
|
||||
# define KNOWN_EXPBIT0_LOCATION
|
||||
# define EXPBIT0_WORD FLT_EXPBIT0_WORD
|
||||
# define EXPBIT0_BIT FLT_EXPBIT0_BIT
|
||||
# endif
|
||||
# define SIZE SIZEOF_FLT
|
||||
# define L_(literal) literal##f
|
||||
#endif
|
||||
|
||||
#define EXP_MASK ((MAX_EXP - MIN_EXP) | 7)
|
||||
|
||||
#define NWORDS \
|
||||
((sizeof (DOUBLE) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
|
||||
typedef union { DOUBLE value; unsigned int word[NWORDS]; } memory_double;
|
||||
|
||||
int
|
||||
FUNC (DOUBLE x)
|
||||
{
|
||||
#ifdef KNOWN_EXPBIT0_LOCATION
|
||||
# if defined USE_LONG_DOUBLE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
|
||||
/* Special CPU dependent code is needed to treat bit patterns outside the
|
||||
IEEE 754 specification (such as Pseudo-NaNs, Pseudo-Infinities,
|
||||
Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals) as NaNs.
|
||||
These bit patterns are:
|
||||
- exponent = 0x0001..0x7FFF, mantissa bit 63 = 0,
|
||||
- exponent = 0x0000, mantissa bit 63 = 1.
|
||||
The NaN bit pattern is:
|
||||
- exponent = 0x7FFF, mantissa >= 0x8000000000000001. */
|
||||
memory_double m;
|
||||
unsigned int exponent;
|
||||
|
||||
m.value = x;
|
||||
exponent = (m.word[EXPBIT0_WORD] >> EXPBIT0_BIT) & EXP_MASK;
|
||||
# ifdef WORDS_BIGENDIAN
|
||||
/* Big endian: EXPBIT0_WORD = 0, EXPBIT0_BIT = 16. */
|
||||
if (exponent == 0)
|
||||
return 1 & (m.word[0] >> 15);
|
||||
else if (exponent == EXP_MASK)
|
||||
return (((m.word[0] ^ 0x8000U) << 16) | m.word[1] | (m.word[2] >> 16)) != 0;
|
||||
else
|
||||
return 1 & ~(m.word[0] >> 15);
|
||||
# else
|
||||
/* Little endian: EXPBIT0_WORD = 2, EXPBIT0_BIT = 0. */
|
||||
if (exponent == 0)
|
||||
return (m.word[1] >> 31);
|
||||
else if (exponent == EXP_MASK)
|
||||
return ((m.word[1] ^ 0x80000000U) | m.word[0]) != 0;
|
||||
else
|
||||
return (m.word[1] >> 31) ^ 1;
|
||||
# endif
|
||||
# else
|
||||
/* Be careful to not do any floating-point operation on x, such as x == x,
|
||||
because x may be a signaling NaN. */
|
||||
# if defined __SUNPRO_C || defined __ICC || defined _MSC_VER \
|
||||
|| defined __DECC || defined __TINYC__ \
|
||||
|| (defined __sgi && !defined __GNUC__)
|
||||
/* The Sun C 5.0, Intel ICC 10.0, Microsoft Visual C/C++ 9.0, Compaq (ex-DEC)
|
||||
6.4, and TinyCC compilers don't recognize the initializers as constant
|
||||
expressions. The Compaq compiler also fails when constant-folding
|
||||
0.0 / 0.0 even when constant-folding is not required. The Microsoft
|
||||
Visual C/C++ compiler also fails when constant-folding 1.0 / 0.0 even
|
||||
when constant-folding is not required. The SGI MIPSpro C compiler
|
||||
complains about "floating-point operation result is out of range". */
|
||||
static DOUBLE zero = L_(0.0);
|
||||
memory_double nan;
|
||||
DOUBLE plus_inf = L_(1.0) / zero;
|
||||
DOUBLE minus_inf = -L_(1.0) / zero;
|
||||
nan.value = zero / zero;
|
||||
# else
|
||||
static memory_double nan = { L_(0.0) / L_(0.0) };
|
||||
static DOUBLE plus_inf = L_(1.0) / L_(0.0);
|
||||
static DOUBLE minus_inf = -L_(1.0) / L_(0.0);
|
||||
# endif
|
||||
{
|
||||
memory_double m;
|
||||
|
||||
/* A NaN can be recognized through its exponent. But exclude +Infinity and
|
||||
-Infinity, which have the same exponent. */
|
||||
m.value = x;
|
||||
if (((m.word[EXPBIT0_WORD] ^ nan.word[EXPBIT0_WORD])
|
||||
& (EXP_MASK << EXPBIT0_BIT))
|
||||
== 0)
|
||||
return (memcmp (&m.value, &plus_inf, SIZE) != 0
|
||||
&& memcmp (&m.value, &minus_inf, SIZE) != 0);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
# endif
|
||||
#else
|
||||
/* The configuration did not find sufficient information. Give up about
|
||||
the signaling NaNs, handle only the quiet NaNs. */
|
||||
if (x == x)
|
||||
{
|
||||
# if defined USE_LONG_DOUBLE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
|
||||
/* Detect any special bit patterns that pass ==; see comment above. */
|
||||
memory_double m1;
|
||||
memory_double m2;
|
||||
|
||||
memset (&m1.value, 0, SIZE);
|
||||
memset (&m2.value, 0, SIZE);
|
||||
m1.value = x;
|
||||
m2.value = x + (x ? 0.0L : -0.0L);
|
||||
if (memcmp (&m1.value, &m2.value, SIZE) != 0)
|
||||
return 1;
|
||||
# endif
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
return 1;
|
||||
#endif
|
||||
}
|
33
gdb/gnulib/import/isnand-nolibm.h
Normal file
33
gdb/gnulib/import/isnand-nolibm.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/* Test for NaN that does not need libm.
|
||||
Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#if HAVE_ISNAND_IN_LIBC
|
||||
/* Get declaration of isnan macro. */
|
||||
# include <math.h>
|
||||
# if __GNUC__ >= 4
|
||||
/* GCC 4.0 and newer provides three built-ins for isnan. */
|
||||
# undef isnand
|
||||
# define isnand(x) __builtin_isnan ((double)(x))
|
||||
# else
|
||||
# undef isnand
|
||||
# define isnand(x) isnan ((double)(x))
|
||||
# endif
|
||||
#else
|
||||
/* Test whether X is a NaN. */
|
||||
# undef isnand
|
||||
# define isnand rpl_isnand
|
||||
extern int isnand (double x);
|
||||
#endif
|
19
gdb/gnulib/import/isnand.c
Normal file
19
gdb/gnulib/import/isnand.c
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* Test for NaN that does not need libm.
|
||||
Copyright (C) 2008-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written by Bruno Haible <bruno@clisp.org>, 2008. */
|
||||
|
||||
#include "isnan.c"
|
33
gdb/gnulib/import/isnanl-nolibm.h
Normal file
33
gdb/gnulib/import/isnanl-nolibm.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/* Test for NaN that does not need libm.
|
||||
Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#if HAVE_ISNANL_IN_LIBC
|
||||
/* Get declaration of isnan macro or (older) isnanl function. */
|
||||
# include <math.h>
|
||||
# if __GNUC__ >= 4
|
||||
/* GCC 4.0 and newer provides three built-ins for isnan. */
|
||||
# undef isnanl
|
||||
# define isnanl(x) __builtin_isnanl ((long double)(x))
|
||||
# elif defined isnan
|
||||
# undef isnanl
|
||||
# define isnanl(x) isnan ((long double)(x))
|
||||
# endif
|
||||
#else
|
||||
/* Test whether X is a NaN. */
|
||||
# undef isnanl
|
||||
# define isnanl rpl_isnanl
|
||||
extern int isnanl (long double x);
|
||||
#endif
|
20
gdb/gnulib/import/isnanl.c
Normal file
20
gdb/gnulib/import/isnanl.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* Test for NaN that does not need libm.
|
||||
Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
|
||||
|
||||
#define USE_LONG_DOUBLE
|
||||
#include "isnan.c"
|
28
gdb/gnulib/import/itold.c
Normal file
28
gdb/gnulib/import/itold.c
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* Replacement for 'int' to 'long double' conversion routine.
|
||||
Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2011.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <float.h>
|
||||
|
||||
void
|
||||
_Qp_itoq (long double *result, int a)
|
||||
{
|
||||
/* Convert from 'int' to 'double', then from 'double' to 'long double'. */
|
||||
*result = (double) a;
|
||||
}
|
116
gdb/gnulib/import/m4/exponentd.m4
Normal file
116
gdb/gnulib/import/m4/exponentd.m4
Normal file
|
@ -0,0 +1,116 @@
|
|||
# exponentd.m4 serial 3
|
||||
dnl Copyright (C) 2007-2008, 2010-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
AC_DEFUN([gl_DOUBLE_EXPONENT_LOCATION],
|
||||
[
|
||||
AC_CACHE_CHECK([where to find the exponent in a 'double'],
|
||||
[gl_cv_cc_double_expbit0],
|
||||
[
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
#include <float.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#define NWORDS \
|
||||
((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
|
||||
typedef union { double value; unsigned int word[NWORDS]; } memory_double;
|
||||
static unsigned int ored_words[NWORDS];
|
||||
static unsigned int anded_words[NWORDS];
|
||||
static void add_to_ored_words (double x)
|
||||
{
|
||||
memory_double m;
|
||||
size_t i;
|
||||
/* Clear it first, in case sizeof (double) < sizeof (memory_double). */
|
||||
memset (&m, 0, sizeof (memory_double));
|
||||
m.value = x;
|
||||
for (i = 0; i < NWORDS; i++)
|
||||
{
|
||||
ored_words[i] |= m.word[i];
|
||||
anded_words[i] &= m.word[i];
|
||||
}
|
||||
}
|
||||
int main ()
|
||||
{
|
||||
size_t j;
|
||||
FILE *fp = fopen ("conftest.out", "w");
|
||||
if (fp == NULL)
|
||||
return 1;
|
||||
for (j = 0; j < NWORDS; j++)
|
||||
anded_words[j] = ~ (unsigned int) 0;
|
||||
add_to_ored_words (0.25);
|
||||
add_to_ored_words (0.5);
|
||||
add_to_ored_words (1.0);
|
||||
add_to_ored_words (2.0);
|
||||
add_to_ored_words (4.0);
|
||||
/* Remove bits that are common (e.g. if representation of the first mantissa
|
||||
bit is explicit). */
|
||||
for (j = 0; j < NWORDS; j++)
|
||||
ored_words[j] &= ~anded_words[j];
|
||||
/* Now find the nonzero word. */
|
||||
for (j = 0; j < NWORDS; j++)
|
||||
if (ored_words[j] != 0)
|
||||
break;
|
||||
if (j < NWORDS)
|
||||
{
|
||||
size_t i;
|
||||
for (i = j + 1; i < NWORDS; i++)
|
||||
if (ored_words[i] != 0)
|
||||
{
|
||||
fprintf (fp, "unknown");
|
||||
return (fclose (fp) != 0);
|
||||
}
|
||||
for (i = 0; ; i++)
|
||||
if ((ored_words[j] >> i) & 1)
|
||||
{
|
||||
fprintf (fp, "word %d bit %d", (int) j, (int) i);
|
||||
return (fclose (fp) != 0);
|
||||
}
|
||||
}
|
||||
fprintf (fp, "unknown");
|
||||
return (fclose (fp) != 0);
|
||||
}
|
||||
]])],
|
||||
[gl_cv_cc_double_expbit0=`cat conftest.out`],
|
||||
[gl_cv_cc_double_expbit0="unknown"],
|
||||
[
|
||||
dnl On ARM, there are two 'double' floating-point formats, used by
|
||||
dnl different sets of instructions: The older FPA instructions assume
|
||||
dnl that they are stored in big-endian word order, while the words
|
||||
dnl (like integer types) are stored in little-endian byte order.
|
||||
dnl The newer VFP instructions assume little-endian order
|
||||
dnl consistently.
|
||||
AC_EGREP_CPP([mixed_endianness], [
|
||||
#if defined arm || defined __arm || defined __arm__
|
||||
mixed_endianness
|
||||
#endif
|
||||
],
|
||||
[gl_cv_cc_double_expbit0="unknown"],
|
||||
[
|
||||
pushdef([AC_MSG_CHECKING],[:])dnl
|
||||
pushdef([AC_MSG_RESULT],[:])dnl
|
||||
pushdef([AC_MSG_RESULT_UNQUOTED],[:])dnl
|
||||
AC_C_BIGENDIAN(
|
||||
[gl_cv_cc_double_expbit0="word 0 bit 20"],
|
||||
[gl_cv_cc_double_expbit0="word 1 bit 20"],
|
||||
[gl_cv_cc_double_expbit0="unknown"])
|
||||
popdef([AC_MSG_RESULT_UNQUOTED])dnl
|
||||
popdef([AC_MSG_RESULT])dnl
|
||||
popdef([AC_MSG_CHECKING])dnl
|
||||
])
|
||||
])
|
||||
rm -f conftest.out
|
||||
])
|
||||
case "$gl_cv_cc_double_expbit0" in
|
||||
word*bit*)
|
||||
word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
|
||||
bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
|
||||
AC_DEFINE_UNQUOTED([DBL_EXPBIT0_WORD], [$word],
|
||||
[Define as the word index where to find the exponent of 'double'.])
|
||||
AC_DEFINE_UNQUOTED([DBL_EXPBIT0_BIT], [$bit],
|
||||
[Define as the bit index in the word where to find bit 0 of the exponent of 'double'.])
|
||||
;;
|
||||
esac
|
||||
])
|
98
gdb/gnulib/import/m4/exponentl.m4
Normal file
98
gdb/gnulib/import/m4/exponentl.m4
Normal file
|
@ -0,0 +1,98 @@
|
|||
# exponentl.m4 serial 3
|
||||
dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
AC_DEFUN([gl_LONG_DOUBLE_EXPONENT_LOCATION],
|
||||
[
|
||||
AC_REQUIRE([gl_BIGENDIAN])
|
||||
AC_CACHE_CHECK([where to find the exponent in a 'long double'],
|
||||
[gl_cv_cc_long_double_expbit0],
|
||||
[
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
#include <float.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#define NWORDS \
|
||||
((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
|
||||
typedef union { long double value; unsigned int word[NWORDS]; }
|
||||
memory_long_double;
|
||||
static unsigned int ored_words[NWORDS];
|
||||
static unsigned int anded_words[NWORDS];
|
||||
static void add_to_ored_words (long double x)
|
||||
{
|
||||
memory_long_double m;
|
||||
size_t i;
|
||||
/* Clear it first, in case
|
||||
sizeof (long double) < sizeof (memory_long_double). */
|
||||
memset (&m, 0, sizeof (memory_long_double));
|
||||
m.value = x;
|
||||
for (i = 0; i < NWORDS; i++)
|
||||
{
|
||||
ored_words[i] |= m.word[i];
|
||||
anded_words[i] &= m.word[i];
|
||||
}
|
||||
}
|
||||
int main ()
|
||||
{
|
||||
size_t j;
|
||||
FILE *fp = fopen ("conftest.out", "w");
|
||||
if (fp == NULL)
|
||||
return 1;
|
||||
for (j = 0; j < NWORDS; j++)
|
||||
anded_words[j] = ~ (unsigned int) 0;
|
||||
add_to_ored_words (0.25L);
|
||||
add_to_ored_words (0.5L);
|
||||
add_to_ored_words (1.0L);
|
||||
add_to_ored_words (2.0L);
|
||||
add_to_ored_words (4.0L);
|
||||
/* Remove bits that are common (e.g. if representation of the first mantissa
|
||||
bit is explicit). */
|
||||
for (j = 0; j < NWORDS; j++)
|
||||
ored_words[j] &= ~anded_words[j];
|
||||
/* Now find the nonzero word. */
|
||||
for (j = 0; j < NWORDS; j++)
|
||||
if (ored_words[j] != 0)
|
||||
break;
|
||||
if (j < NWORDS)
|
||||
{
|
||||
size_t i;
|
||||
for (i = j + 1; i < NWORDS; i++)
|
||||
if (ored_words[i] != 0)
|
||||
{
|
||||
fprintf (fp, "unknown");
|
||||
return (fclose (fp) != 0);
|
||||
}
|
||||
for (i = 0; ; i++)
|
||||
if ((ored_words[j] >> i) & 1)
|
||||
{
|
||||
fprintf (fp, "word %d bit %d", (int) j, (int) i);
|
||||
return (fclose (fp) != 0);
|
||||
}
|
||||
}
|
||||
fprintf (fp, "unknown");
|
||||
return (fclose (fp) != 0);
|
||||
}
|
||||
]])],
|
||||
[gl_cv_cc_long_double_expbit0=`cat conftest.out`],
|
||||
[gl_cv_cc_long_double_expbit0="unknown"],
|
||||
[
|
||||
dnl When cross-compiling, we don't know. It depends on the
|
||||
dnl ABI and compiler version. There are too many cases.
|
||||
gl_cv_cc_long_double_expbit0="unknown"
|
||||
])
|
||||
rm -f conftest.out
|
||||
])
|
||||
case "$gl_cv_cc_long_double_expbit0" in
|
||||
word*bit*)
|
||||
word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
|
||||
bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
|
||||
AC_DEFINE_UNQUOTED([LDBL_EXPBIT0_WORD], [$word],
|
||||
[Define as the word index where to find the exponent of 'long double'.])
|
||||
AC_DEFINE_UNQUOTED([LDBL_EXPBIT0_BIT], [$bit],
|
||||
[Define as the bit index in the word where to find bit 0 of the exponent of 'long double'.])
|
||||
;;
|
||||
esac
|
||||
])
|
98
gdb/gnulib/import/m4/float_h.m4
Normal file
98
gdb/gnulib/import/m4/float_h.m4
Normal file
|
@ -0,0 +1,98 @@
|
|||
# float_h.m4 serial 9
|
||||
dnl Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
AC_DEFUN([gl_FLOAT_H],
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
FLOAT_H=
|
||||
REPLACE_FLOAT_LDBL=0
|
||||
case "$host_os" in
|
||||
aix* | beos* | openbsd* | mirbsd* | irix*)
|
||||
FLOAT_H=float.h
|
||||
;;
|
||||
freebsd*)
|
||||
case "$host_cpu" in
|
||||
changequote(,)dnl
|
||||
i[34567]86 )
|
||||
changequote([,])dnl
|
||||
FLOAT_H=float.h
|
||||
;;
|
||||
x86_64 )
|
||||
# On x86_64 systems, the C compiler may still be generating
|
||||
# 32-bit code.
|
||||
AC_EGREP_CPP([yes],
|
||||
[#if defined __LP64__ || defined __x86_64__ || defined __amd64__
|
||||
yes
|
||||
#endif],
|
||||
[],
|
||||
[FLOAT_H=float.h])
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
linux*)
|
||||
case "$host_cpu" in
|
||||
powerpc*)
|
||||
FLOAT_H=float.h
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
case "$host_os" in
|
||||
aix* | freebsd* | linux*)
|
||||
if test -n "$FLOAT_H"; then
|
||||
REPLACE_FLOAT_LDBL=1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl Test against glibc-2.7 Linux/SPARC64 bug.
|
||||
REPLACE_ITOLD=0
|
||||
AC_CACHE_CHECK([whether conversion from 'int' to 'long double' works],
|
||||
[gl_cv_func_itold_works],
|
||||
[
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
int i = -1;
|
||||
volatile long double ld;
|
||||
int main ()
|
||||
{
|
||||
ld += i * 1.0L;
|
||||
if (ld > 0)
|
||||
return 1;
|
||||
return 0;
|
||||
}]])],
|
||||
[gl_cv_func_itold_works=yes],
|
||||
[gl_cv_func_itold_works=no],
|
||||
[case "$host" in
|
||||
sparc*-*-linux*)
|
||||
AC_EGREP_CPP([yes],
|
||||
[#if defined __LP64__ || defined __arch64__
|
||||
yes
|
||||
#endif],
|
||||
[gl_cv_func_itold_works="guessing no"],
|
||||
[gl_cv_func_itold_works="guessing yes"])
|
||||
;;
|
||||
*) gl_cv_func_itold_works="guessing yes" ;;
|
||||
esac
|
||||
])
|
||||
])
|
||||
case "$gl_cv_func_itold_works" in
|
||||
*no)
|
||||
REPLACE_ITOLD=1
|
||||
dnl We add the workaround to <float.h> but also to <math.h>,
|
||||
dnl to increase the chances that the fix function gets pulled in.
|
||||
FLOAT_H=float.h
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -n "$FLOAT_H"; then
|
||||
gl_NEXT_HEADERS([float.h])
|
||||
fi
|
||||
AC_SUBST([FLOAT_H])
|
||||
AM_CONDITIONAL([GL_GENERATE_FLOAT_H], [test -n "$FLOAT_H"])
|
||||
AC_SUBST([REPLACE_ITOLD])
|
||||
])
|
54
gdb/gnulib/import/m4/fpieee.m4
Normal file
54
gdb/gnulib/import/m4/fpieee.m4
Normal file
|
@ -0,0 +1,54 @@
|
|||
# fpieee.m4 serial 2
|
||||
dnl Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl IEEE 754 standardized three items:
|
||||
dnl - The formats of single-float and double-float - nowadays commonly
|
||||
dnl available as 'float' and 'double' in C and C++.
|
||||
dnl No autoconf test needed.
|
||||
dnl - The overflow and division by zero behaviour: The result are values
|
||||
dnl '±Inf' and 'NaN', rather than exceptions as it was before.
|
||||
dnl This file provides an autoconf macro for ensuring this behaviour of
|
||||
dnl floating-point operations.
|
||||
dnl - A set of conditions (overflow, underflow, inexact, etc.) which can
|
||||
dnl be configured to trigger an exception.
|
||||
dnl This cannot be done in a portable way: it depends on the compiler,
|
||||
dnl libc, kernel, and CPU. No autoconf macro is provided for this.
|
||||
|
||||
dnl Ensure non-trapping behaviour of floating-point overflow and
|
||||
dnl floating-point division by zero.
|
||||
dnl (For integer overflow, see gcc's -ftrapv option; for integer division by
|
||||
dnl zero, see the autoconf macro in intdiv0.m4.)
|
||||
|
||||
AC_DEFUN([gl_FP_IEEE],
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
# IEEE behaviour is the default on all CPUs except Alpha and SH
|
||||
# (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
|
||||
# and the GCC 4.1.2 manual).
|
||||
case "$host_cpu" in
|
||||
alpha*)
|
||||
# On Alpha systems, a compiler option provides the behaviour.
|
||||
# See the ieee(3) manual page, also available at
|
||||
# <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
|
||||
if test -n "$GCC"; then
|
||||
# GCC has the option -mieee.
|
||||
# For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
|
||||
CPPFLAGS="$CPPFLAGS -mieee"
|
||||
else
|
||||
# Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
|
||||
# For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
|
||||
CPPFLAGS="$CPPFLAGS -ieee"
|
||||
fi
|
||||
;;
|
||||
sh*)
|
||||
if test -n "$GCC"; then
|
||||
# GCC has the option -mieee.
|
||||
CPPFLAGS="$CPPFLAGS -mieee"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
])
|
170
gdb/gnulib/import/m4/frexp.m4
Normal file
170
gdb/gnulib/import/m4/frexp.m4
Normal file
|
@ -0,0 +1,170 @@
|
|||
# frexp.m4 serial 14
|
||||
dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
AC_DEFUN([gl_FUNC_FREXP],
|
||||
[
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
AC_REQUIRE([gl_CHECK_FREXP_NO_LIBM])
|
||||
FREXP_LIBM=
|
||||
if test $gl_cv_func_frexp_no_libm = no; then
|
||||
AC_CACHE_CHECK([whether frexp() can be used with libm],
|
||||
[gl_cv_func_frexp_in_libm],
|
||||
[
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lm"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
double x;]],
|
||||
[[int e; return frexp (x, &e) > 0;]])],
|
||||
[gl_cv_func_frexp_in_libm=yes],
|
||||
[gl_cv_func_frexp_in_libm=no])
|
||||
LIBS="$save_LIBS"
|
||||
])
|
||||
if test $gl_cv_func_frexp_in_libm = yes; then
|
||||
FREXP_LIBM=-lm
|
||||
fi
|
||||
fi
|
||||
if test $gl_cv_func_frexp_no_libm = yes \
|
||||
|| test $gl_cv_func_frexp_in_libm = yes; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $FREXP_LIBM"
|
||||
gl_FUNC_FREXP_WORKS
|
||||
LIBS="$save_LIBS"
|
||||
case "$gl_cv_func_frexp_works" in
|
||||
*yes) gl_func_frexp=yes ;;
|
||||
*) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
|
||||
esac
|
||||
else
|
||||
gl_func_frexp=no
|
||||
fi
|
||||
if test $gl_func_frexp = yes; then
|
||||
AC_DEFINE([HAVE_FREXP], [1],
|
||||
[Define if the frexp() function is available and works.])
|
||||
fi
|
||||
AC_SUBST([FREXP_LIBM])
|
||||
])
|
||||
|
||||
AC_DEFUN([gl_FUNC_FREXP_NO_LIBM],
|
||||
[
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
AC_REQUIRE([gl_CHECK_FREXP_NO_LIBM])
|
||||
if test $gl_cv_func_frexp_no_libm = yes; then
|
||||
gl_FUNC_FREXP_WORKS
|
||||
case "$gl_cv_func_frexp_works" in
|
||||
*yes) gl_func_frexp_no_libm=yes ;;
|
||||
*) gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
|
||||
esac
|
||||
else
|
||||
gl_func_frexp_no_libm=no
|
||||
dnl Set REPLACE_FREXP here because the system may have frexp in libm.
|
||||
REPLACE_FREXP=1
|
||||
fi
|
||||
if test $gl_func_frexp_no_libm = yes; then
|
||||
AC_DEFINE([HAVE_FREXP_IN_LIBC], [1],
|
||||
[Define if the frexp() function is available in libc.])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl Test whether frexp() can be used without linking with libm.
|
||||
dnl Set gl_cv_func_frexp_no_libm to 'yes' or 'no' accordingly.
|
||||
AC_DEFUN([gl_CHECK_FREXP_NO_LIBM],
|
||||
[
|
||||
AC_CACHE_CHECK([whether frexp() can be used without linking with libm],
|
||||
[gl_cv_func_frexp_no_libm],
|
||||
[
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
double x;]],
|
||||
[[int e; return frexp (x, &e) > 0;]])],
|
||||
[gl_cv_func_frexp_no_libm=yes],
|
||||
[gl_cv_func_frexp_no_libm=no])
|
||||
])
|
||||
])
|
||||
|
||||
dnl Test whether frexp() works also on denormalized numbers (this fails e.g. on
|
||||
dnl NetBSD 3.0), on infinite numbers (this fails e.g. on IRIX 6.5 and mingw),
|
||||
dnl and on negative zero (this fails e.g. on NetBSD 4.99 and mingw).
|
||||
AC_DEFUN([gl_FUNC_FREXP_WORKS],
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
|
||||
AC_CHECK_FUNCS_ONCE([alarm])
|
||||
AC_CACHE_CHECK([whether frexp works], [gl_cv_func_frexp_works],
|
||||
[
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#if HAVE_ALARM
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
|
||||
ICC 10.0 has a bug when optimizing the expression -zero.
|
||||
The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
|
||||
to PowerPC on Mac OS X 10.5. */
|
||||
#if defined __hpux || defined __sgi || defined __ICC
|
||||
static double
|
||||
compute_minus_zero (void)
|
||||
{
|
||||
return -DBL_MIN * DBL_MIN;
|
||||
}
|
||||
# define minus_zero compute_minus_zero ()
|
||||
#else
|
||||
double minus_zero = -0.0;
|
||||
#endif
|
||||
int main()
|
||||
{
|
||||
int result = 0;
|
||||
int i;
|
||||
volatile double x;
|
||||
double zero = 0.0;
|
||||
#if HAVE_ALARM
|
||||
/* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
|
||||
number. Let the test fail in this case. */
|
||||
alarm (5);
|
||||
#endif
|
||||
/* Test on denormalized numbers. */
|
||||
for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
|
||||
;
|
||||
if (x > 0.0)
|
||||
{
|
||||
int exp;
|
||||
double y = frexp (x, &exp);
|
||||
/* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
|
||||
On NetBSD: y = 0.75. Correct: y = 0.5. */
|
||||
if (y != 0.5)
|
||||
result |= 1;
|
||||
}
|
||||
/* Test on infinite numbers. */
|
||||
x = 1.0 / zero;
|
||||
{
|
||||
int exp;
|
||||
double y = frexp (x, &exp);
|
||||
if (y != x)
|
||||
result |= 2;
|
||||
}
|
||||
/* Test on negative zero. */
|
||||
x = minus_zero;
|
||||
{
|
||||
int exp;
|
||||
double y = frexp (x, &exp);
|
||||
if (memcmp (&y, &x, sizeof x))
|
||||
result |= 4;
|
||||
}
|
||||
return result;
|
||||
}]])],
|
||||
[gl_cv_func_frexp_works=yes],
|
||||
[gl_cv_func_frexp_works=no],
|
||||
[case "$host_os" in
|
||||
netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
|
||||
*) gl_cv_func_frexp_works="guessing yes";;
|
||||
esac
|
||||
])
|
||||
])
|
||||
])
|
231
gdb/gnulib/import/m4/frexpl.m4
Normal file
231
gdb/gnulib/import/m4/frexpl.m4
Normal file
|
@ -0,0 +1,231 @@
|
|||
# frexpl.m4 serial 20
|
||||
dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
AC_DEFUN([gl_FUNC_FREXPL],
|
||||
[
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
|
||||
|
||||
dnl Persuade glibc <math.h> to declare frexpl().
|
||||
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
||||
|
||||
dnl Check whether it's declared.
|
||||
dnl Mac OS X 10.3 has frexpl() in libc but doesn't declare it in <math.h>.
|
||||
AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include <math.h>]])
|
||||
|
||||
FREXPL_LIBM=
|
||||
if test $HAVE_DECL_FREXPL = 1; then
|
||||
gl_CHECK_FREXPL_NO_LIBM
|
||||
if test $gl_cv_func_frexpl_no_libm = no; then
|
||||
AC_CACHE_CHECK([whether frexpl() can be used with libm],
|
||||
[gl_cv_func_frexpl_in_libm],
|
||||
[
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lm"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
long double x;]],
|
||||
[[int e; return frexpl (x, &e) > 0;]])],
|
||||
[gl_cv_func_frexpl_in_libm=yes],
|
||||
[gl_cv_func_frexpl_in_libm=no])
|
||||
LIBS="$save_LIBS"
|
||||
])
|
||||
if test $gl_cv_func_frexpl_in_libm = yes; then
|
||||
FREXPL_LIBM=-lm
|
||||
fi
|
||||
fi
|
||||
if test $gl_cv_func_frexpl_no_libm = yes \
|
||||
|| test $gl_cv_func_frexpl_in_libm = yes; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $FREXPL_LIBM"
|
||||
gl_FUNC_FREXPL_WORKS
|
||||
LIBS="$save_LIBS"
|
||||
case "$gl_cv_func_frexpl_works" in
|
||||
*yes) gl_func_frexpl=yes ;;
|
||||
*) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
|
||||
esac
|
||||
else
|
||||
gl_func_frexpl=no
|
||||
fi
|
||||
if test $gl_func_frexpl = yes; then
|
||||
AC_DEFINE([HAVE_FREXPL], [1],
|
||||
[Define if the frexpl() function is available.])
|
||||
fi
|
||||
fi
|
||||
if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
|
||||
dnl Find libraries needed to link lib/frexpl.c.
|
||||
if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
|
||||
AC_REQUIRE([gl_FUNC_FREXP])
|
||||
FREXPL_LIBM="$FREXP_LIBM"
|
||||
else
|
||||
FREXPL_LIBM=
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([FREXPL_LIBM])
|
||||
])
|
||||
|
||||
AC_DEFUN([gl_FUNC_FREXPL_NO_LIBM],
|
||||
[
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
|
||||
dnl Check whether it's declared.
|
||||
dnl Mac OS X 10.3 has frexpl() in libc but doesn't declare it in <math.h>.
|
||||
AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include <math.h>]])
|
||||
if test $HAVE_DECL_FREXPL = 1; then
|
||||
gl_CHECK_FREXPL_NO_LIBM
|
||||
if test $gl_cv_func_frexpl_no_libm = yes; then
|
||||
gl_FUNC_FREXPL_WORKS
|
||||
case "$gl_cv_func_frexpl_works" in
|
||||
*yes) gl_func_frexpl_no_libm=yes ;;
|
||||
*) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
|
||||
esac
|
||||
else
|
||||
gl_func_frexpl_no_libm=no
|
||||
dnl Set REPLACE_FREXPL here because the system may have frexpl in libm.
|
||||
REPLACE_FREXPL=1
|
||||
fi
|
||||
if test $gl_func_frexpl_no_libm = yes; then
|
||||
AC_DEFINE([HAVE_FREXPL_IN_LIBC], [1],
|
||||
[Define if the frexpl() function is available in libc.])
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
dnl Test whether frexpl() can be used without linking with libm.
|
||||
dnl Set gl_cv_func_frexpl_no_libm to 'yes' or 'no' accordingly.
|
||||
AC_DEFUN([gl_CHECK_FREXPL_NO_LIBM],
|
||||
[
|
||||
AC_CACHE_CHECK([whether frexpl() can be used without linking with libm],
|
||||
[gl_cv_func_frexpl_no_libm],
|
||||
[
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
long double x;]],
|
||||
[[int e; return frexpl (x, &e) > 0;]])],
|
||||
[gl_cv_func_frexpl_no_libm=yes],
|
||||
[gl_cv_func_frexpl_no_libm=no])
|
||||
])
|
||||
])
|
||||
|
||||
dnl Test whether frexpl() works on finite numbers (this fails on
|
||||
dnl Mac OS X 10.4/PowerPC, on AIX 5.1, and on BeOS), on denormalized numbers
|
||||
dnl (this fails on Mac OS X 10.5/i386), and also on infinite numbers (this
|
||||
dnl fails e.g. on IRIX 6.5 and mingw).
|
||||
AC_DEFUN([gl_FUNC_FREXPL_WORKS],
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
|
||||
AC_CACHE_CHECK([whether frexpl works], [gl_cv_func_frexpl_works],
|
||||
[
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
/* Override the values of <float.h>, like done in float.in.h. */
|
||||
#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP (-16381)
|
||||
#endif
|
||||
#if defined __i386__ && defined __FreeBSD__
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP (-16381)
|
||||
#endif
|
||||
#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP DBL_MIN_EXP
|
||||
#endif
|
||||
#if defined __sgi && (LDBL_MANT_DIG >= 106)
|
||||
# if defined __GNUC__
|
||||
# undef LDBL_MIN_EXP
|
||||
# define LDBL_MIN_EXP DBL_MIN_EXP
|
||||
# endif
|
||||
#endif
|
||||
extern
|
||||
#ifdef __cplusplus
|
||||
"C"
|
||||
#endif
|
||||
long double frexpl (long double, int *);
|
||||
int main()
|
||||
{
|
||||
int result = 0;
|
||||
volatile long double x;
|
||||
/* Test on finite numbers that fails on AIX 5.1. */
|
||||
x = 16.0L;
|
||||
{
|
||||
int exp = -9999;
|
||||
frexpl (x, &exp);
|
||||
if (exp != 5)
|
||||
result |= 1;
|
||||
}
|
||||
/* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
|
||||
function returns an invalid (incorrectly normalized) value: it returns
|
||||
y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
|
||||
but the correct result is
|
||||
0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
|
||||
x = 1.01L;
|
||||
{
|
||||
int exp = -9999;
|
||||
long double y = frexpl (x, &exp);
|
||||
if (!(exp == 1 && y == 0.505L))
|
||||
result |= 2;
|
||||
}
|
||||
/* Test on large finite numbers. This fails on BeOS at i = 16322, while
|
||||
LDBL_MAX_EXP = 16384.
|
||||
In the loop end test, we test x against Infinity, rather than comparing
|
||||
i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
|
||||
{
|
||||
int i;
|
||||
for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
|
||||
{
|
||||
int exp = -9999;
|
||||
frexpl (x, &exp);
|
||||
if (exp != i)
|
||||
{
|
||||
result |= 4;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Test on denormalized numbers. */
|
||||
{
|
||||
int i;
|
||||
for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
|
||||
;
|
||||
if (x > 0.0L)
|
||||
{
|
||||
int exp;
|
||||
long double y = frexpl (x, &exp);
|
||||
/* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
|
||||
exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
|
||||
if (exp != LDBL_MIN_EXP - 1)
|
||||
result |= 8;
|
||||
}
|
||||
}
|
||||
/* Test on infinite numbers. */
|
||||
x = 1.0L / 0.0L;
|
||||
{
|
||||
int exp;
|
||||
long double y = frexpl (x, &exp);
|
||||
if (y != x)
|
||||
result |= 16;
|
||||
}
|
||||
return result;
|
||||
}]])],
|
||||
[gl_cv_func_frexpl_works=yes],
|
||||
[gl_cv_func_frexpl_works=no],
|
||||
[
|
||||
changequote(,)dnl
|
||||
case "$host_os" in
|
||||
aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
|
||||
gl_cv_func_frexpl_works="guessing no";;
|
||||
*) gl_cv_func_frexpl_works="guessing yes";;
|
||||
esac
|
||||
changequote([,])dnl
|
||||
])
|
||||
])
|
||||
])
|
|
@ -27,12 +27,13 @@
|
|||
|
||||
|
||||
# Specification in the form of a command-line invocation:
|
||||
# gnulib-tool --import --dir=. --lib=libgnu --source-base=import --m4-base=import/m4 --doc-base=doc --tests-base=tests --aux-dir=import/extra --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files fnmatch-gnu inttypes memmem update-copyright
|
||||
# gnulib-tool --import --dir=. --lib=libgnu --source-base=import --m4-base=import/m4 --doc-base=doc --tests-base=tests --aux-dir=import/extra --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files fnmatch-gnu frexpl inttypes memmem update-copyright
|
||||
|
||||
# Specification in the form of a few gnulib-tool.m4 macro invocations:
|
||||
gl_LOCAL_DIR([])
|
||||
gl_MODULES([
|
||||
fnmatch-gnu
|
||||
frexpl
|
||||
inttypes
|
||||
memmem
|
||||
update-copyright
|
||||
|
|
|
@ -44,12 +44,21 @@ AC_DEFUN([gl_EARLY],
|
|||
# Code from module extensions:
|
||||
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
||||
# Code from module extern-inline:
|
||||
# Code from module float:
|
||||
# Code from module fnmatch:
|
||||
# Code from module fnmatch-gnu:
|
||||
# Code from module fpieee:
|
||||
AC_REQUIRE([gl_FP_IEEE])
|
||||
# Code from module fpucw:
|
||||
# Code from module frexp:
|
||||
# Code from module frexpl:
|
||||
# Code from module include_next:
|
||||
# Code from module inttypes:
|
||||
# Code from module inttypes-incomplete:
|
||||
# Code from module isnand-nolibm:
|
||||
# Code from module isnanl-nolibm:
|
||||
# Code from module localcharset:
|
||||
# Code from module math:
|
||||
# Code from module mbrtowc:
|
||||
# Code from module mbsinit:
|
||||
# Code from module mbsrtowcs:
|
||||
|
@ -91,6 +100,13 @@ AC_DEFUN([gl_INIT],
|
|||
gl_FUNC_ALLOCA
|
||||
gl_CONFIGMAKE_PREP
|
||||
AC_REQUIRE([gl_EXTERN_INLINE])
|
||||
gl_FLOAT_H
|
||||
if test $REPLACE_FLOAT_LDBL = 1; then
|
||||
AC_LIBOBJ([float])
|
||||
fi
|
||||
if test $REPLACE_ITOLD = 1; then
|
||||
AC_LIBOBJ([itold])
|
||||
fi
|
||||
gl_FUNC_FNMATCH_POSIX
|
||||
if test -n "$FNMATCH_H"; then
|
||||
AC_LIBOBJ([fnmatch])
|
||||
|
@ -101,11 +117,32 @@ AC_DEFUN([gl_INIT],
|
|||
AC_LIBOBJ([fnmatch])
|
||||
gl_PREREQ_FNMATCH
|
||||
fi
|
||||
gl_FUNC_FREXP
|
||||
if test $gl_func_frexp != yes; then
|
||||
AC_LIBOBJ([frexp])
|
||||
fi
|
||||
gl_MATH_MODULE_INDICATOR([frexp])
|
||||
gl_FUNC_FREXPL
|
||||
if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
|
||||
AC_LIBOBJ([frexpl])
|
||||
fi
|
||||
gl_MATH_MODULE_INDICATOR([frexpl])
|
||||
gl_INTTYPES_H
|
||||
gl_INTTYPES_INCOMPLETE
|
||||
gl_FUNC_ISNAND_NO_LIBM
|
||||
if test $gl_func_isnand_no_libm != yes; then
|
||||
AC_LIBOBJ([isnand])
|
||||
gl_PREREQ_ISNAND
|
||||
fi
|
||||
gl_FUNC_ISNANL_NO_LIBM
|
||||
if test $gl_func_isnanl_no_libm != yes; then
|
||||
AC_LIBOBJ([isnanl])
|
||||
gl_PREREQ_ISNANL
|
||||
fi
|
||||
gl_LOCALCHARSET
|
||||
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
|
||||
AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
|
||||
gl_MATH_H
|
||||
gl_FUNC_MBRTOWC
|
||||
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
|
||||
AC_LIBOBJ([mbrtowc])
|
||||
|
@ -294,12 +331,26 @@ AC_DEFUN([gl_FILE_LIST], [
|
|||
lib/alloca.c
|
||||
lib/alloca.in.h
|
||||
lib/config.charset
|
||||
lib/float+.h
|
||||
lib/float.c
|
||||
lib/float.in.h
|
||||
lib/fnmatch.c
|
||||
lib/fnmatch.in.h
|
||||
lib/fnmatch_loop.c
|
||||
lib/fpucw.h
|
||||
lib/frexp.c
|
||||
lib/frexpl.c
|
||||
lib/inttypes.in.h
|
||||
lib/isnan.c
|
||||
lib/isnand-nolibm.h
|
||||
lib/isnand.c
|
||||
lib/isnanl-nolibm.h
|
||||
lib/isnanl.c
|
||||
lib/itold.c
|
||||
lib/localcharset.c
|
||||
lib/localcharset.h
|
||||
lib/math.c
|
||||
lib/math.in.h
|
||||
lib/mbrtowc.c
|
||||
lib/mbsinit.c
|
||||
lib/mbsrtowcs-impl.h
|
||||
|
@ -326,20 +377,29 @@ AC_DEFUN([gl_FILE_LIST], [
|
|||
m4/alloca.m4
|
||||
m4/codeset.m4
|
||||
m4/configmake.m4
|
||||
m4/exponentd.m4
|
||||
m4/exponentl.m4
|
||||
m4/extensions.m4
|
||||
m4/extern-inline.m4
|
||||
m4/fcntl-o.m4
|
||||
m4/float_h.m4
|
||||
m4/fnmatch.m4
|
||||
m4/fpieee.m4
|
||||
m4/frexp.m4
|
||||
m4/frexpl.m4
|
||||
m4/glibc21.m4
|
||||
m4/gnulib-common.m4
|
||||
m4/include_next.m4
|
||||
m4/inttypes-pri.m4
|
||||
m4/inttypes.m4
|
||||
m4/isnand.m4
|
||||
m4/isnanl.m4
|
||||
m4/localcharset.m4
|
||||
m4/locale-fr.m4
|
||||
m4/locale-ja.m4
|
||||
m4/locale-zh.m4
|
||||
m4/longlong.m4
|
||||
m4/math_h.m4
|
||||
m4/mbrtowc.m4
|
||||
m4/mbsinit.m4
|
||||
m4/mbsrtowcs.m4
|
||||
|
|
96
gdb/gnulib/import/m4/isnand.m4
Normal file
96
gdb/gnulib/import/m4/isnand.m4
Normal file
|
@ -0,0 +1,96 @@
|
|||
# isnand.m4 serial 11
|
||||
dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl Check how to get or define isnand().
|
||||
|
||||
AC_DEFUN([gl_FUNC_ISNAND],
|
||||
[
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
ISNAND_LIBM=
|
||||
gl_HAVE_ISNAND_NO_LIBM
|
||||
if test $gl_cv_func_isnand_no_libm = no; then
|
||||
gl_HAVE_ISNAND_IN_LIBM
|
||||
if test $gl_cv_func_isnand_in_libm = yes; then
|
||||
ISNAND_LIBM=-lm
|
||||
fi
|
||||
fi
|
||||
dnl The variable gl_func_isnand set here is used by isnan.m4.
|
||||
if test $gl_cv_func_isnand_no_libm = yes \
|
||||
|| test $gl_cv_func_isnand_in_libm = yes; then
|
||||
gl_func_isnand=yes
|
||||
else
|
||||
gl_func_isnand=no
|
||||
HAVE_ISNAND=0
|
||||
fi
|
||||
AC_SUBST([ISNAND_LIBM])
|
||||
])
|
||||
|
||||
dnl Check how to get or define isnand() without linking with libm.
|
||||
|
||||
AC_DEFUN([gl_FUNC_ISNAND_NO_LIBM],
|
||||
[
|
||||
gl_HAVE_ISNAND_NO_LIBM
|
||||
gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
|
||||
if test $gl_cv_func_isnand_no_libm = yes; then
|
||||
AC_DEFINE([HAVE_ISNAND_IN_LIBC], [1],
|
||||
[Define if the isnan(double) function is available in libc.])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl Prerequisites of replacement isnand definition. It does not need -lm.
|
||||
AC_DEFUN([gl_PREREQ_ISNAND],
|
||||
[
|
||||
AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION])
|
||||
])
|
||||
|
||||
dnl Test whether isnand() can be used with libm.
|
||||
|
||||
AC_DEFUN([gl_HAVE_ISNAND_IN_LIBM],
|
||||
[
|
||||
AC_CACHE_CHECK([whether isnan(double) can be used with libm],
|
||||
[gl_cv_func_isnand_in_libm],
|
||||
[
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lm"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
#if __GNUC__ >= 4
|
||||
# undef isnand
|
||||
# define isnand(x) __builtin_isnan ((double)(x))
|
||||
#elif defined isnan
|
||||
# undef isnand
|
||||
# define isnand(x) isnan ((double)(x))
|
||||
#endif
|
||||
double x;]],
|
||||
[[return isnand (x);]])],
|
||||
[gl_cv_func_isnand_in_libm=yes],
|
||||
[gl_cv_func_isnand_in_libm=no])
|
||||
LIBS="$save_LIBS"
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([gl_HAVE_ISNAND_NO_LIBM],
|
||||
[
|
||||
AC_CACHE_CHECK([whether isnan(double) can be used without linking with libm],
|
||||
[gl_cv_func_isnand_no_libm],
|
||||
[
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
#if __GNUC__ >= 4
|
||||
# undef isnand
|
||||
# define isnand(x) __builtin_isnan ((double)(x))
|
||||
#else
|
||||
# undef isnand
|
||||
# define isnand(x) isnan ((double)(x))
|
||||
#endif
|
||||
double x;]],
|
||||
[[return isnand (x);]])],
|
||||
[gl_cv_func_isnand_no_libm=yes],
|
||||
[gl_cv_func_isnand_no_libm=no])
|
||||
])
|
||||
])
|
255
gdb/gnulib/import/m4/isnanl.m4
Normal file
255
gdb/gnulib/import/m4/isnanl.m4
Normal file
|
@ -0,0 +1,255 @@
|
|||
# isnanl.m4 serial 17
|
||||
dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
AC_DEFUN([gl_FUNC_ISNANL],
|
||||
[
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
ISNANL_LIBM=
|
||||
gl_HAVE_ISNANL_NO_LIBM
|
||||
if test $gl_cv_func_isnanl_no_libm = no; then
|
||||
gl_HAVE_ISNANL_IN_LIBM
|
||||
if test $gl_cv_func_isnanl_in_libm = yes; then
|
||||
ISNANL_LIBM=-lm
|
||||
fi
|
||||
fi
|
||||
dnl The variable gl_func_isnanl set here is used by isnan.m4.
|
||||
if test $gl_cv_func_isnanl_no_libm = yes \
|
||||
|| test $gl_cv_func_isnanl_in_libm = yes; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $ISNANL_LIBM"
|
||||
gl_FUNC_ISNANL_WORKS
|
||||
LIBS="$save_LIBS"
|
||||
case "$gl_cv_func_isnanl_works" in
|
||||
*yes) gl_func_isnanl=yes ;;
|
||||
*) gl_func_isnanl=no; ISNANL_LIBM= ;;
|
||||
esac
|
||||
else
|
||||
gl_func_isnanl=no
|
||||
fi
|
||||
if test $gl_func_isnanl != yes; then
|
||||
HAVE_ISNANL=0
|
||||
fi
|
||||
AC_SUBST([ISNANL_LIBM])
|
||||
])
|
||||
|
||||
AC_DEFUN([gl_FUNC_ISNANL_NO_LIBM],
|
||||
[
|
||||
gl_HAVE_ISNANL_NO_LIBM
|
||||
gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
|
||||
if test $gl_func_isnanl_no_libm = yes; then
|
||||
gl_FUNC_ISNANL_WORKS
|
||||
case "$gl_cv_func_isnanl_works" in
|
||||
*yes) ;;
|
||||
*) gl_func_isnanl_no_libm=no ;;
|
||||
esac
|
||||
fi
|
||||
if test $gl_func_isnanl_no_libm = yes; then
|
||||
AC_DEFINE([HAVE_ISNANL_IN_LIBC], [1],
|
||||
[Define if the isnan(long double) function is available in libc.])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl Prerequisites of replacement isnanl definition. It does not need -lm.
|
||||
AC_DEFUN([gl_PREREQ_ISNANL],
|
||||
[
|
||||
gl_LONG_DOUBLE_EXPONENT_LOCATION
|
||||
AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
|
||||
])
|
||||
|
||||
dnl Test whether isnanl() can be used without libm.
|
||||
AC_DEFUN([gl_HAVE_ISNANL_NO_LIBM],
|
||||
[
|
||||
AC_CACHE_CHECK([whether isnan(long double) can be used without linking with libm],
|
||||
[gl_cv_func_isnanl_no_libm],
|
||||
[
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
#if __GNUC__ >= 4
|
||||
# undef isnanl
|
||||
# define isnanl(x) __builtin_isnanl ((long double)(x))
|
||||
#elif defined isnan
|
||||
# undef isnanl
|
||||
# define isnanl(x) isnan ((long double)(x))
|
||||
#endif
|
||||
long double x;]],
|
||||
[[return isnanl (x);]])],
|
||||
[gl_cv_func_isnanl_no_libm=yes],
|
||||
[gl_cv_func_isnanl_no_libm=no])
|
||||
])
|
||||
])
|
||||
|
||||
dnl Test whether isnanl() can be used with libm.
|
||||
AC_DEFUN([gl_HAVE_ISNANL_IN_LIBM],
|
||||
[
|
||||
AC_CACHE_CHECK([whether isnan(long double) can be used with libm],
|
||||
[gl_cv_func_isnanl_in_libm],
|
||||
[
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lm"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <math.h>
|
||||
#if __GNUC__ >= 4
|
||||
# undef isnanl
|
||||
# define isnanl(x) __builtin_isnanl ((long double)(x))
|
||||
#elif defined isnan
|
||||
# undef isnanl
|
||||
# define isnanl(x) isnan ((long double)(x))
|
||||
#endif
|
||||
long double x;]],
|
||||
[[return isnanl (x);]])],
|
||||
[gl_cv_func_isnanl_in_libm=yes],
|
||||
[gl_cv_func_isnanl_in_libm=no])
|
||||
LIBS="$save_LIBS"
|
||||
])
|
||||
])
|
||||
|
||||
dnl Test whether isnanl() recognizes all numbers which are neither finite nor
|
||||
dnl infinite. This test fails e.g. on NetBSD/i386 and on glibc/ia64.
|
||||
dnl Also, the GCC >= 4.0 built-in __builtin_isnanl does not pass the tests
|
||||
dnl - for pseudo-denormals on i686 and x86_64,
|
||||
dnl - for pseudo-zeroes, unnormalized numbers, and pseudo-denormals on ia64.
|
||||
AC_DEFUN([gl_FUNC_ISNANL_WORKS],
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([gl_BIGENDIAN])
|
||||
AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
|
||||
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
|
||||
AC_CACHE_CHECK([whether isnanl works], [gl_cv_func_isnanl_works],
|
||||
[
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#if __GNUC__ >= 4
|
||||
# undef isnanl
|
||||
# define isnanl(x) __builtin_isnanl ((long double)(x))
|
||||
#elif defined isnan
|
||||
# undef isnanl
|
||||
# define isnanl(x) isnan ((long double)(x))
|
||||
#endif
|
||||
#define NWORDS \
|
||||
((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
|
||||
typedef union { unsigned int word[NWORDS]; long double value; }
|
||||
memory_long_double;
|
||||
/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
|
||||
runtime type conversion. */
|
||||
#ifdef __sgi
|
||||
static long double NaNl ()
|
||||
{
|
||||
double zero = 0.0;
|
||||
return zero / zero;
|
||||
}
|
||||
#else
|
||||
# define NaNl() (0.0L / 0.0L)
|
||||
#endif
|
||||
int main ()
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
if (!isnanl (NaNl ()))
|
||||
result |= 1;
|
||||
|
||||
{
|
||||
memory_long_double m;
|
||||
unsigned int i;
|
||||
|
||||
/* The isnanl function should be immune against changes in the sign bit and
|
||||
in the mantissa bits. The xor operation twiddles a bit that can only be
|
||||
a sign bit or a mantissa bit (since the exponent never extends to
|
||||
bit 31). */
|
||||
m.value = NaNl ();
|
||||
m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
|
||||
for (i = 0; i < NWORDS; i++)
|
||||
m.word[i] |= 1;
|
||||
if (!isnanl (m.value))
|
||||
result |= 1;
|
||||
}
|
||||
|
||||
#if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
|
||||
/* Representation of an 80-bit 'long double' as an initializer for a sequence
|
||||
of 'unsigned int' words. */
|
||||
# ifdef WORDS_BIGENDIAN
|
||||
# define LDBL80_WORDS(exponent,manthi,mantlo) \
|
||||
{ ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
|
||||
((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
|
||||
(unsigned int) (mantlo) << 16 \
|
||||
}
|
||||
# else
|
||||
# define LDBL80_WORDS(exponent,manthi,mantlo) \
|
||||
{ mantlo, manthi, exponent }
|
||||
# endif
|
||||
{ /* Quiet NaN. */
|
||||
static memory_long_double x =
|
||||
{ LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
|
||||
if (!isnanl (x.value))
|
||||
result |= 2;
|
||||
}
|
||||
{
|
||||
/* Signalling NaN. */
|
||||
static memory_long_double x =
|
||||
{ LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
|
||||
if (!isnanl (x.value))
|
||||
result |= 2;
|
||||
}
|
||||
/* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
|
||||
Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
|
||||
Intel IA-64 Architecture Software Developer's Manual, Volume 1:
|
||||
Application Architecture.
|
||||
Table 5-2 "Floating-Point Register Encodings"
|
||||
Figure 5-6 "Memory to Floating-Point Register Data Translation"
|
||||
*/
|
||||
{ /* Pseudo-NaN. */
|
||||
static memory_long_double x =
|
||||
{ LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
|
||||
if (!isnanl (x.value))
|
||||
result |= 4;
|
||||
}
|
||||
{ /* Pseudo-Infinity. */
|
||||
static memory_long_double x =
|
||||
{ LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
|
||||
if (!isnanl (x.value))
|
||||
result |= 8;
|
||||
}
|
||||
{ /* Pseudo-Zero. */
|
||||
static memory_long_double x =
|
||||
{ LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
|
||||
if (!isnanl (x.value))
|
||||
result |= 16;
|
||||
}
|
||||
{ /* Unnormalized number. */
|
||||
static memory_long_double x =
|
||||
{ LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
|
||||
if (!isnanl (x.value))
|
||||
result |= 32;
|
||||
}
|
||||
{ /* Pseudo-Denormal. */
|
||||
static memory_long_double x =
|
||||
{ LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
|
||||
if (!isnanl (x.value))
|
||||
result |= 64;
|
||||
}
|
||||
#endif
|
||||
|
||||
return result;
|
||||
}]])],
|
||||
[gl_cv_func_isnanl_works=yes],
|
||||
[gl_cv_func_isnanl_works=no],
|
||||
[case "$host_cpu" in
|
||||
# Guess no on ia64, x86_64, i386.
|
||||
ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
|
||||
*)
|
||||
case "$host_os" in
|
||||
netbsd*) gl_cv_func_isnanl_works="guessing no";;
|
||||
*) gl_cv_func_isnanl_works="guessing yes";;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
])
|
||||
])
|
||||
])
|
353
gdb/gnulib/import/m4/math_h.m4
Normal file
353
gdb/gnulib/import/m4/math_h.m4
Normal file
|
@ -0,0 +1,353 @@
|
|||
# math_h.m4 serial 114
|
||||
dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
AC_DEFUN([gl_MATH_H],
|
||||
[
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
gl_CHECK_NEXT_HEADERS([math.h])
|
||||
|
||||
AC_CACHE_CHECK([whether NAN macro works], [gl_cv_header_math_nan_works],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]],
|
||||
[[/* Solaris 10 has a broken definition of NAN. Other platforms
|
||||
fail to provide NAN, or provide it only in C99 mode; this
|
||||
test only needs to fail when NAN is provided but wrong. */
|
||||
float f = 1.0f;
|
||||
#ifdef NAN
|
||||
f = NAN;
|
||||
#endif
|
||||
return f == 0;]])],
|
||||
[gl_cv_header_math_nan_works=yes],
|
||||
[gl_cv_header_math_nan_works=no])])
|
||||
if test $gl_cv_header_math_nan_works = no; then
|
||||
REPLACE_NAN=1
|
||||
fi
|
||||
AC_CACHE_CHECK([whether HUGE_VAL works], [gl_cv_header_math_huge_val_works],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]],
|
||||
[[/* Solaris 10 has a broken definition of HUGE_VAL. */
|
||||
double d = HUGE_VAL;
|
||||
return d == 0;]])],
|
||||
[gl_cv_header_math_huge_val_works=yes],
|
||||
[gl_cv_header_math_huge_val_works=no])])
|
||||
if test $gl_cv_header_math_huge_val_works = no; then
|
||||
REPLACE_HUGE_VAL=1
|
||||
fi
|
||||
|
||||
dnl Check for declarations of anything we want to poison if the
|
||||
dnl corresponding gnulib module is not in use.
|
||||
gl_WARN_ON_USE_PREPARE([[#include <math.h>]],
|
||||
[acosf acosl asinf asinl atanf atanl
|
||||
cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf
|
||||
expf expl exp2 exp2f exp2l expm1 expm1f expm1l
|
||||
fabsf fabsl floorf floorl fma fmaf fmal
|
||||
fmod fmodf fmodl frexpf frexpl hypotf hypotl
|
||||
ilogb ilogbf ilogbl
|
||||
ldexpf ldexpl
|
||||
log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l
|
||||
logb logbf logbl
|
||||
modf modff modfl powf
|
||||
remainder remainderf remainderl
|
||||
rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl
|
||||
tanf tanl tanhf trunc truncf truncl])
|
||||
])
|
||||
|
||||
AC_DEFUN([gl_MATH_MODULE_INDICATOR],
|
||||
[
|
||||
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
||||
AC_REQUIRE([gl_MATH_H_DEFAULTS])
|
||||
gl_MODULE_INDICATOR_SET_VARIABLE([$1])
|
||||
dnl Define it also as a C macro, for the benefit of the unit tests.
|
||||
gl_MODULE_INDICATOR_FOR_TESTS([$1])
|
||||
])
|
||||
|
||||
AC_DEFUN([gl_MATH_H_DEFAULTS],
|
||||
[
|
||||
GNULIB_ACOSF=0; AC_SUBST([GNULIB_ACOSF])
|
||||
GNULIB_ACOSL=0; AC_SUBST([GNULIB_ACOSL])
|
||||
GNULIB_ASINF=0; AC_SUBST([GNULIB_ASINF])
|
||||
GNULIB_ASINL=0; AC_SUBST([GNULIB_ASINL])
|
||||
GNULIB_ATANF=0; AC_SUBST([GNULIB_ATANF])
|
||||
GNULIB_ATANL=0; AC_SUBST([GNULIB_ATANL])
|
||||
GNULIB_ATAN2F=0; AC_SUBST([GNULIB_ATAN2F])
|
||||
GNULIB_CBRT=0; AC_SUBST([GNULIB_CBRT])
|
||||
GNULIB_CBRTF=0; AC_SUBST([GNULIB_CBRTF])
|
||||
GNULIB_CBRTL=0; AC_SUBST([GNULIB_CBRTL])
|
||||
GNULIB_CEIL=0; AC_SUBST([GNULIB_CEIL])
|
||||
GNULIB_CEILF=0; AC_SUBST([GNULIB_CEILF])
|
||||
GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL])
|
||||
GNULIB_COPYSIGN=0; AC_SUBST([GNULIB_COPYSIGN])
|
||||
GNULIB_COPYSIGNF=0; AC_SUBST([GNULIB_COPYSIGNF])
|
||||
GNULIB_COPYSIGNL=0; AC_SUBST([GNULIB_COPYSIGNL])
|
||||
GNULIB_COSF=0; AC_SUBST([GNULIB_COSF])
|
||||
GNULIB_COSL=0; AC_SUBST([GNULIB_COSL])
|
||||
GNULIB_COSHF=0; AC_SUBST([GNULIB_COSHF])
|
||||
GNULIB_EXPF=0; AC_SUBST([GNULIB_EXPF])
|
||||
GNULIB_EXPL=0; AC_SUBST([GNULIB_EXPL])
|
||||
GNULIB_EXP2=0; AC_SUBST([GNULIB_EXP2])
|
||||
GNULIB_EXP2F=0; AC_SUBST([GNULIB_EXP2F])
|
||||
GNULIB_EXP2L=0; AC_SUBST([GNULIB_EXP2L])
|
||||
GNULIB_EXPM1=0; AC_SUBST([GNULIB_EXPM1])
|
||||
GNULIB_EXPM1F=0; AC_SUBST([GNULIB_EXPM1F])
|
||||
GNULIB_EXPM1L=0; AC_SUBST([GNULIB_EXPM1L])
|
||||
GNULIB_FABSF=0; AC_SUBST([GNULIB_FABSF])
|
||||
GNULIB_FABSL=0; AC_SUBST([GNULIB_FABSL])
|
||||
GNULIB_FLOOR=0; AC_SUBST([GNULIB_FLOOR])
|
||||
GNULIB_FLOORF=0; AC_SUBST([GNULIB_FLOORF])
|
||||
GNULIB_FLOORL=0; AC_SUBST([GNULIB_FLOORL])
|
||||
GNULIB_FMA=0; AC_SUBST([GNULIB_FMA])
|
||||
GNULIB_FMAF=0; AC_SUBST([GNULIB_FMAF])
|
||||
GNULIB_FMAL=0; AC_SUBST([GNULIB_FMAL])
|
||||
GNULIB_FMOD=0; AC_SUBST([GNULIB_FMOD])
|
||||
GNULIB_FMODF=0; AC_SUBST([GNULIB_FMODF])
|
||||
GNULIB_FMODL=0; AC_SUBST([GNULIB_FMODL])
|
||||
GNULIB_FREXPF=0; AC_SUBST([GNULIB_FREXPF])
|
||||
GNULIB_FREXP=0; AC_SUBST([GNULIB_FREXP])
|
||||
GNULIB_FREXPL=0; AC_SUBST([GNULIB_FREXPL])
|
||||
GNULIB_HYPOT=0; AC_SUBST([GNULIB_HYPOT])
|
||||
GNULIB_HYPOTF=0; AC_SUBST([GNULIB_HYPOTF])
|
||||
GNULIB_HYPOTL=0; AC_SUBST([GNULIB_HYPOTL])
|
||||
GNULIB_ILOGB=0; AC_SUBST([GNULIB_ILOGB])
|
||||
GNULIB_ILOGBF=0; AC_SUBST([GNULIB_ILOGBF])
|
||||
GNULIB_ILOGBL=0; AC_SUBST([GNULIB_ILOGBL])
|
||||
GNULIB_ISFINITE=0; AC_SUBST([GNULIB_ISFINITE])
|
||||
GNULIB_ISINF=0; AC_SUBST([GNULIB_ISINF])
|
||||
GNULIB_ISNAN=0; AC_SUBST([GNULIB_ISNAN])
|
||||
GNULIB_ISNANF=0; AC_SUBST([GNULIB_ISNANF])
|
||||
GNULIB_ISNAND=0; AC_SUBST([GNULIB_ISNAND])
|
||||
GNULIB_ISNANL=0; AC_SUBST([GNULIB_ISNANL])
|
||||
GNULIB_LDEXPF=0; AC_SUBST([GNULIB_LDEXPF])
|
||||
GNULIB_LDEXPL=0; AC_SUBST([GNULIB_LDEXPL])
|
||||
GNULIB_LOG=0; AC_SUBST([GNULIB_LOG])
|
||||
GNULIB_LOGF=0; AC_SUBST([GNULIB_LOGF])
|
||||
GNULIB_LOGL=0; AC_SUBST([GNULIB_LOGL])
|
||||
GNULIB_LOG10=0; AC_SUBST([GNULIB_LOG10])
|
||||
GNULIB_LOG10F=0; AC_SUBST([GNULIB_LOG10F])
|
||||
GNULIB_LOG10L=0; AC_SUBST([GNULIB_LOG10L])
|
||||
GNULIB_LOG1P=0; AC_SUBST([GNULIB_LOG1P])
|
||||
GNULIB_LOG1PF=0; AC_SUBST([GNULIB_LOG1PF])
|
||||
GNULIB_LOG1PL=0; AC_SUBST([GNULIB_LOG1PL])
|
||||
GNULIB_LOG2=0; AC_SUBST([GNULIB_LOG2])
|
||||
GNULIB_LOG2F=0; AC_SUBST([GNULIB_LOG2F])
|
||||
GNULIB_LOG2L=0; AC_SUBST([GNULIB_LOG2L])
|
||||
GNULIB_LOGB=0; AC_SUBST([GNULIB_LOGB])
|
||||
GNULIB_LOGBF=0; AC_SUBST([GNULIB_LOGBF])
|
||||
GNULIB_LOGBL=0; AC_SUBST([GNULIB_LOGBL])
|
||||
GNULIB_MODF=0; AC_SUBST([GNULIB_MODF])
|
||||
GNULIB_MODFF=0; AC_SUBST([GNULIB_MODFF])
|
||||
GNULIB_MODFL=0; AC_SUBST([GNULIB_MODFL])
|
||||
GNULIB_POWF=0; AC_SUBST([GNULIB_POWF])
|
||||
GNULIB_REMAINDER=0; AC_SUBST([GNULIB_REMAINDER])
|
||||
GNULIB_REMAINDERF=0; AC_SUBST([GNULIB_REMAINDERF])
|
||||
GNULIB_REMAINDERL=0; AC_SUBST([GNULIB_REMAINDERL])
|
||||
GNULIB_RINT=0; AC_SUBST([GNULIB_RINT])
|
||||
GNULIB_RINTF=0; AC_SUBST([GNULIB_RINTF])
|
||||
GNULIB_RINTL=0; AC_SUBST([GNULIB_RINTL])
|
||||
GNULIB_ROUND=0; AC_SUBST([GNULIB_ROUND])
|
||||
GNULIB_ROUNDF=0; AC_SUBST([GNULIB_ROUNDF])
|
||||
GNULIB_ROUNDL=0; AC_SUBST([GNULIB_ROUNDL])
|
||||
GNULIB_SIGNBIT=0; AC_SUBST([GNULIB_SIGNBIT])
|
||||
GNULIB_SINF=0; AC_SUBST([GNULIB_SINF])
|
||||
GNULIB_SINL=0; AC_SUBST([GNULIB_SINL])
|
||||
GNULIB_SINHF=0; AC_SUBST([GNULIB_SINHF])
|
||||
GNULIB_SQRTF=0; AC_SUBST([GNULIB_SQRTF])
|
||||
GNULIB_SQRTL=0; AC_SUBST([GNULIB_SQRTL])
|
||||
GNULIB_TANF=0; AC_SUBST([GNULIB_TANF])
|
||||
GNULIB_TANL=0; AC_SUBST([GNULIB_TANL])
|
||||
GNULIB_TANHF=0; AC_SUBST([GNULIB_TANHF])
|
||||
GNULIB_TRUNC=0; AC_SUBST([GNULIB_TRUNC])
|
||||
GNULIB_TRUNCF=0; AC_SUBST([GNULIB_TRUNCF])
|
||||
GNULIB_TRUNCL=0; AC_SUBST([GNULIB_TRUNCL])
|
||||
dnl Assume proper GNU behavior unless another module says otherwise.
|
||||
HAVE_ACOSF=1; AC_SUBST([HAVE_ACOSF])
|
||||
HAVE_ACOSL=1; AC_SUBST([HAVE_ACOSL])
|
||||
HAVE_ASINF=1; AC_SUBST([HAVE_ASINF])
|
||||
HAVE_ASINL=1; AC_SUBST([HAVE_ASINL])
|
||||
HAVE_ATANF=1; AC_SUBST([HAVE_ATANF])
|
||||
HAVE_ATANL=1; AC_SUBST([HAVE_ATANL])
|
||||
HAVE_ATAN2F=1; AC_SUBST([HAVE_ATAN2F])
|
||||
HAVE_CBRT=1; AC_SUBST([HAVE_CBRT])
|
||||
HAVE_CBRTF=1; AC_SUBST([HAVE_CBRTF])
|
||||
HAVE_CBRTL=1; AC_SUBST([HAVE_CBRTL])
|
||||
HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN])
|
||||
HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL])
|
||||
HAVE_COSF=1; AC_SUBST([HAVE_COSF])
|
||||
HAVE_COSL=1; AC_SUBST([HAVE_COSL])
|
||||
HAVE_COSHF=1; AC_SUBST([HAVE_COSHF])
|
||||
HAVE_EXPF=1; AC_SUBST([HAVE_EXPF])
|
||||
HAVE_EXPL=1; AC_SUBST([HAVE_EXPL])
|
||||
HAVE_EXPM1=1; AC_SUBST([HAVE_EXPM1])
|
||||
HAVE_EXPM1F=1; AC_SUBST([HAVE_EXPM1F])
|
||||
HAVE_FABSF=1; AC_SUBST([HAVE_FABSF])
|
||||
HAVE_FABSL=1; AC_SUBST([HAVE_FABSL])
|
||||
HAVE_FMA=1; AC_SUBST([HAVE_FMA])
|
||||
HAVE_FMAF=1; AC_SUBST([HAVE_FMAF])
|
||||
HAVE_FMAL=1; AC_SUBST([HAVE_FMAL])
|
||||
HAVE_FMODF=1; AC_SUBST([HAVE_FMODF])
|
||||
HAVE_FMODL=1; AC_SUBST([HAVE_FMODL])
|
||||
HAVE_FREXPF=1; AC_SUBST([HAVE_FREXPF])
|
||||
HAVE_HYPOTF=1; AC_SUBST([HAVE_HYPOTF])
|
||||
HAVE_HYPOTL=1; AC_SUBST([HAVE_HYPOTL])
|
||||
HAVE_ILOGB=1; AC_SUBST([HAVE_ILOGB])
|
||||
HAVE_ILOGBF=1; AC_SUBST([HAVE_ILOGBF])
|
||||
HAVE_ILOGBL=1; AC_SUBST([HAVE_ILOGBL])
|
||||
HAVE_ISNANF=1; AC_SUBST([HAVE_ISNANF])
|
||||
HAVE_ISNAND=1; AC_SUBST([HAVE_ISNAND])
|
||||
HAVE_ISNANL=1; AC_SUBST([HAVE_ISNANL])
|
||||
HAVE_LDEXPF=1; AC_SUBST([HAVE_LDEXPF])
|
||||
HAVE_LOGF=1; AC_SUBST([HAVE_LOGF])
|
||||
HAVE_LOGL=1; AC_SUBST([HAVE_LOGL])
|
||||
HAVE_LOG10F=1; AC_SUBST([HAVE_LOG10F])
|
||||
HAVE_LOG10L=1; AC_SUBST([HAVE_LOG10L])
|
||||
HAVE_LOG1P=1; AC_SUBST([HAVE_LOG1P])
|
||||
HAVE_LOG1PF=1; AC_SUBST([HAVE_LOG1PF])
|
||||
HAVE_LOG1PL=1; AC_SUBST([HAVE_LOG1PL])
|
||||
HAVE_LOGBF=1; AC_SUBST([HAVE_LOGBF])
|
||||
HAVE_LOGBL=1; AC_SUBST([HAVE_LOGBL])
|
||||
HAVE_MODFF=1; AC_SUBST([HAVE_MODFF])
|
||||
HAVE_MODFL=1; AC_SUBST([HAVE_MODFL])
|
||||
HAVE_POWF=1; AC_SUBST([HAVE_POWF])
|
||||
HAVE_REMAINDER=1; AC_SUBST([HAVE_REMAINDER])
|
||||
HAVE_REMAINDERF=1; AC_SUBST([HAVE_REMAINDERF])
|
||||
HAVE_RINT=1; AC_SUBST([HAVE_RINT])
|
||||
HAVE_RINTL=1; AC_SUBST([HAVE_RINTL])
|
||||
HAVE_SINF=1; AC_SUBST([HAVE_SINF])
|
||||
HAVE_SINL=1; AC_SUBST([HAVE_SINL])
|
||||
HAVE_SINHF=1; AC_SUBST([HAVE_SINHF])
|
||||
HAVE_SQRTF=1; AC_SUBST([HAVE_SQRTF])
|
||||
HAVE_SQRTL=1; AC_SUBST([HAVE_SQRTL])
|
||||
HAVE_TANF=1; AC_SUBST([HAVE_TANF])
|
||||
HAVE_TANL=1; AC_SUBST([HAVE_TANL])
|
||||
HAVE_TANHF=1; AC_SUBST([HAVE_TANHF])
|
||||
HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL])
|
||||
HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL])
|
||||
HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL])
|
||||
HAVE_DECL_CBRTF=1; AC_SUBST([HAVE_DECL_CBRTF])
|
||||
HAVE_DECL_CBRTL=1; AC_SUBST([HAVE_DECL_CBRTL])
|
||||
HAVE_DECL_CEILF=1; AC_SUBST([HAVE_DECL_CEILF])
|
||||
HAVE_DECL_CEILL=1; AC_SUBST([HAVE_DECL_CEILL])
|
||||
HAVE_DECL_COPYSIGNF=1; AC_SUBST([HAVE_DECL_COPYSIGNF])
|
||||
HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL])
|
||||
HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL])
|
||||
HAVE_DECL_EXP2=1; AC_SUBST([HAVE_DECL_EXP2])
|
||||
HAVE_DECL_EXP2F=1; AC_SUBST([HAVE_DECL_EXP2F])
|
||||
HAVE_DECL_EXP2L=1; AC_SUBST([HAVE_DECL_EXP2L])
|
||||
HAVE_DECL_EXPM1L=1; AC_SUBST([HAVE_DECL_EXPM1L])
|
||||
HAVE_DECL_FLOORF=1; AC_SUBST([HAVE_DECL_FLOORF])
|
||||
HAVE_DECL_FLOORL=1; AC_SUBST([HAVE_DECL_FLOORL])
|
||||
HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL])
|
||||
HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL])
|
||||
HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL])
|
||||
HAVE_DECL_LOG10L=1; AC_SUBST([HAVE_DECL_LOG10L])
|
||||
HAVE_DECL_LOG2=1; AC_SUBST([HAVE_DECL_LOG2])
|
||||
HAVE_DECL_LOG2F=1; AC_SUBST([HAVE_DECL_LOG2F])
|
||||
HAVE_DECL_LOG2L=1; AC_SUBST([HAVE_DECL_LOG2L])
|
||||
HAVE_DECL_LOGB=1; AC_SUBST([HAVE_DECL_LOGB])
|
||||
HAVE_DECL_REMAINDER=1; AC_SUBST([HAVE_DECL_REMAINDER])
|
||||
HAVE_DECL_REMAINDERL=1; AC_SUBST([HAVE_DECL_REMAINDERL])
|
||||
HAVE_DECL_RINTF=1; AC_SUBST([HAVE_DECL_RINTF])
|
||||
HAVE_DECL_ROUND=1; AC_SUBST([HAVE_DECL_ROUND])
|
||||
HAVE_DECL_ROUNDF=1; AC_SUBST([HAVE_DECL_ROUNDF])
|
||||
HAVE_DECL_ROUNDL=1; AC_SUBST([HAVE_DECL_ROUNDL])
|
||||
HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL])
|
||||
HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL])
|
||||
HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL])
|
||||
HAVE_DECL_TRUNC=1; AC_SUBST([HAVE_DECL_TRUNC])
|
||||
HAVE_DECL_TRUNCF=1; AC_SUBST([HAVE_DECL_TRUNCF])
|
||||
HAVE_DECL_TRUNCL=1; AC_SUBST([HAVE_DECL_TRUNCL])
|
||||
REPLACE_CBRTF=0; AC_SUBST([REPLACE_CBRTF])
|
||||
REPLACE_CBRTL=0; AC_SUBST([REPLACE_CBRTL])
|
||||
REPLACE_CEIL=0; AC_SUBST([REPLACE_CEIL])
|
||||
REPLACE_CEILF=0; AC_SUBST([REPLACE_CEILF])
|
||||
REPLACE_CEILL=0; AC_SUBST([REPLACE_CEILL])
|
||||
REPLACE_EXPM1=0; AC_SUBST([REPLACE_EXPM1])
|
||||
REPLACE_EXPM1F=0; AC_SUBST([REPLACE_EXPM1F])
|
||||
REPLACE_EXP2=0; AC_SUBST([REPLACE_EXP2])
|
||||
REPLACE_EXP2L=0; AC_SUBST([REPLACE_EXP2L])
|
||||
REPLACE_FABSL=0; AC_SUBST([REPLACE_FABSL])
|
||||
REPLACE_FLOOR=0; AC_SUBST([REPLACE_FLOOR])
|
||||
REPLACE_FLOORF=0; AC_SUBST([REPLACE_FLOORF])
|
||||
REPLACE_FLOORL=0; AC_SUBST([REPLACE_FLOORL])
|
||||
REPLACE_FMA=0; AC_SUBST([REPLACE_FMA])
|
||||
REPLACE_FMAF=0; AC_SUBST([REPLACE_FMAF])
|
||||
REPLACE_FMAL=0; AC_SUBST([REPLACE_FMAL])
|
||||
REPLACE_FMOD=0; AC_SUBST([REPLACE_FMOD])
|
||||
REPLACE_FMODF=0; AC_SUBST([REPLACE_FMODF])
|
||||
REPLACE_FMODL=0; AC_SUBST([REPLACE_FMODL])
|
||||
REPLACE_FREXPF=0; AC_SUBST([REPLACE_FREXPF])
|
||||
REPLACE_FREXP=0; AC_SUBST([REPLACE_FREXP])
|
||||
REPLACE_FREXPL=0; AC_SUBST([REPLACE_FREXPL])
|
||||
REPLACE_HUGE_VAL=0; AC_SUBST([REPLACE_HUGE_VAL])
|
||||
REPLACE_HYPOT=0; AC_SUBST([REPLACE_HYPOT])
|
||||
REPLACE_HYPOTF=0; AC_SUBST([REPLACE_HYPOTF])
|
||||
REPLACE_HYPOTL=0; AC_SUBST([REPLACE_HYPOTL])
|
||||
REPLACE_ILOGB=0; AC_SUBST([REPLACE_ILOGB])
|
||||
REPLACE_ILOGBF=0; AC_SUBST([REPLACE_ILOGBF])
|
||||
REPLACE_ISFINITE=0; AC_SUBST([REPLACE_ISFINITE])
|
||||
REPLACE_ISINF=0; AC_SUBST([REPLACE_ISINF])
|
||||
REPLACE_ISNAN=0; AC_SUBST([REPLACE_ISNAN])
|
||||
REPLACE_LDEXPL=0; AC_SUBST([REPLACE_LDEXPL])
|
||||
REPLACE_LOG=0; AC_SUBST([REPLACE_LOG])
|
||||
REPLACE_LOGF=0; AC_SUBST([REPLACE_LOGF])
|
||||
REPLACE_LOGL=0; AC_SUBST([REPLACE_LOGL])
|
||||
REPLACE_LOG10=0; AC_SUBST([REPLACE_LOG10])
|
||||
REPLACE_LOG10F=0; AC_SUBST([REPLACE_LOG10F])
|
||||
REPLACE_LOG10L=0; AC_SUBST([REPLACE_LOG10L])
|
||||
REPLACE_LOG1P=0; AC_SUBST([REPLACE_LOG1P])
|
||||
REPLACE_LOG1PF=0; AC_SUBST([REPLACE_LOG1PF])
|
||||
REPLACE_LOG1PL=0; AC_SUBST([REPLACE_LOG1PL])
|
||||
REPLACE_LOG2=0; AC_SUBST([REPLACE_LOG2])
|
||||
REPLACE_LOG2F=0; AC_SUBST([REPLACE_LOG2F])
|
||||
REPLACE_LOG2L=0; AC_SUBST([REPLACE_LOG2L])
|
||||
REPLACE_LOGB=0; AC_SUBST([REPLACE_LOGB])
|
||||
REPLACE_LOGBF=0; AC_SUBST([REPLACE_LOGBF])
|
||||
REPLACE_LOGBL=0; AC_SUBST([REPLACE_LOGBL])
|
||||
REPLACE_MODF=0; AC_SUBST([REPLACE_MODF])
|
||||
REPLACE_MODFF=0; AC_SUBST([REPLACE_MODFF])
|
||||
REPLACE_MODFL=0; AC_SUBST([REPLACE_MODFL])
|
||||
REPLACE_NAN=0; AC_SUBST([REPLACE_NAN])
|
||||
REPLACE_REMAINDER=0; AC_SUBST([REPLACE_REMAINDER])
|
||||
REPLACE_REMAINDERF=0; AC_SUBST([REPLACE_REMAINDERF])
|
||||
REPLACE_REMAINDERL=0; AC_SUBST([REPLACE_REMAINDERL])
|
||||
REPLACE_ROUND=0; AC_SUBST([REPLACE_ROUND])
|
||||
REPLACE_ROUNDF=0; AC_SUBST([REPLACE_ROUNDF])
|
||||
REPLACE_ROUNDL=0; AC_SUBST([REPLACE_ROUNDL])
|
||||
REPLACE_SIGNBIT=0; AC_SUBST([REPLACE_SIGNBIT])
|
||||
REPLACE_SIGNBIT_USING_GCC=0; AC_SUBST([REPLACE_SIGNBIT_USING_GCC])
|
||||
REPLACE_SQRTL=0; AC_SUBST([REPLACE_SQRTL])
|
||||
REPLACE_TRUNC=0; AC_SUBST([REPLACE_TRUNC])
|
||||
REPLACE_TRUNCF=0; AC_SUBST([REPLACE_TRUNCF])
|
||||
REPLACE_TRUNCL=0; AC_SUBST([REPLACE_TRUNCL])
|
||||
])
|
||||
|
||||
# gl_LONG_DOUBLE_VS_DOUBLE
|
||||
# determines whether 'long double' and 'double' have the same representation.
|
||||
# Sets variable HAVE_SAME_LONG_DOUBLE_AS_DOUBLE to 0 or 1, and defines
|
||||
# HAVE_SAME_LONG_DOUBLE_AS_DOUBLE accordingly.
|
||||
# The currently known platforms where this is the case are:
|
||||
# Linux/HPPA, Minix 3.1.8, AIX 5, AIX 6 and 7 with xlc, MSVC 9.
|
||||
AC_DEFUN([gl_LONG_DOUBLE_VS_DOUBLE],
|
||||
[
|
||||
AC_CACHE_CHECK([whether long double and double are the same],
|
||||
[gl_cv_long_double_equals_double],
|
||||
[AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#include <float.h>]],
|
||||
[[typedef int check[sizeof (long double) == sizeof (double)
|
||||
&& LDBL_MANT_DIG == DBL_MANT_DIG
|
||||
&& LDBL_MAX_EXP == DBL_MAX_EXP
|
||||
&& LDBL_MIN_EXP == DBL_MIN_EXP
|
||||
? 1 : -1];
|
||||
]])],
|
||||
[gl_cv_long_double_equals_double=yes],
|
||||
[gl_cv_long_double_equals_double=no])
|
||||
])
|
||||
if test $gl_cv_long_double_equals_double = yes; then
|
||||
AC_DEFINE([HAVE_SAME_LONG_DOUBLE_AS_DOUBLE], [1],
|
||||
[Define to 1 if 'long double' and 'double' have the same representation.])
|
||||
HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
|
||||
else
|
||||
HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
|
||||
fi
|
||||
AC_SUBST([HAVE_SAME_LONG_DOUBLE_AS_DOUBLE])
|
||||
])
|
3
gdb/gnulib/import/math.c
Normal file
3
gdb/gnulib/import/math.c
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include <config.h>
|
||||
#define _GL_MATH_INLINE _GL_EXTERN_INLINE
|
||||
#include "math.h"
|
2275
gdb/gnulib/import/math.in.h
Normal file
2275
gdb/gnulib/import/math.in.h
Normal file
File diff suppressed because it is too large
Load diff
|
@ -29,7 +29,7 @@
|
|||
# regenerate the various scripts and Makefiles are on the PATH.
|
||||
|
||||
# The list of gnulib modules we are importing in GDB.
|
||||
IMPORTED_GNULIB_MODULES="fnmatch-gnu inttypes memmem update-copyright"
|
||||
IMPORTED_GNULIB_MODULES="fnmatch-gnu frexpl inttypes memmem update-copyright"
|
||||
|
||||
# The gnulib commit ID to use for the update.
|
||||
GNULIB_COMMIT_SHA1="8d5bd1402003bd0153984b138735adf537d960b0"
|
||||
|
|
Loading…
Reference in a new issue