Assume 'long double' exists.
authorBruno Haible <bruno@clisp.org>
Fri, 6 Apr 2007 14:36:56 +0000 (14:36 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 6 Apr 2007 14:36:56 +0000 (14:36 +0000)
38 files changed:
ChangeLog
NEWS
config/srclist.txt
lib/allocsa.h
lib/float+.h
lib/frexp.c
lib/printf-args.c
lib/printf-args.h
lib/printf-frexp.c
lib/printf-parse.c
lib/vasnprintf.c
m4/allocsa.m4
m4/intl.m4
m4/isnanl.m4
m4/longdouble.m4 [deleted file]
m4/printf-frexpl.m4
m4/printf.m4
m4/vasnprintf.m4
modules/allocsa
modules/gettext
modules/isnanl
modules/isnanl-nolibm
modules/printf-frexpl
modules/relocatable-prog-wrapper
modules/snprintf-posix-tests
modules/sprintf-posix-tests
modules/vasnprintf
modules/vasnprintf-posix-tests
modules/vasprintf-posix-tests
modules/vsnprintf-posix-tests
modules/vsprintf-posix-tests
tests/test-isnanl-nolibm.c
tests/test-isnanl.c
tests/test-snprintf-posix.h
tests/test-sprintf-posix.h
tests/test-vasnprintf-posix.c
tests/test-vasnprintf-posix2.c
tests/test-vasprintf-posix.c

index cd0e6e7e2c2781c4fbfe81435b0d4b0056a062d0..7947e5fcbbef610dc52edc280f3a3eb8c202b80b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,52 @@
+2007-04-06  Bruno Haible  <bruno@clisp.org>
+
+       Assume the 'long double' type.
+       * m4/longdouble.m4: Remove file.
+       * config/srclist.txt: Don't mention longdouble.m4.
+       * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
+       * lib/float+.h: Likewise.
+       * lib/frexp.c: Likewise.
+       * lib/printf-args.h: Likewise.
+       * lib/printf-args.c: Likewise.
+       * lib/printf-frexp.c: Likewise.
+       * lib/printf-parse.c: Likewise.
+       * lib/vasnprintf.c: Likewise.
+       * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
+       * m4/intl.m4: Likewise.
+       * m4/isnanl.m4: Likewise.
+       * m4/printf.m4: Likewise.
+       * m4/printf-frexpl.m4: Likewise.
+       * m4/vasnprintf.m4: Likewise.
+       * modules/allocsa (Files): Remove m4/longdouble.m4.
+       * modules/gettext (Files): Likewise.
+       * modules/relocatable-prog-wrapper (Files): Likewise.
+       * modules/vasnprintf (Files): Likewise.
+       * modules/isnanl (Files): Likewise.
+       (Include): Simplify.
+       * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
+       (Include): Simplify.
+       * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
+       (Include): Simplify.
+       * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
+       (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
+       * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
+       (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
+       * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
+       (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
+       * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
+       (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
+       * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
+       (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
+       * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
+       (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
+       * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
+       * tests/test-isnanl.c: Likewise.
+       * tests/test-snprintf-posix.h: Likewise.
+       * tests/test-sprintf-posix.h: Likewise.
+       * tests/test-vasnprintf-posix.c: Likewise.
+       * tests/test-vasnprintf-posix2.c: Likewise.
+       * tests/test-vasprintf-posix.c: Likewise.
+
 2007-04-06  Bruno Haible  <bruno@clisp.org>
 
        Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
diff --git a/NEWS b/NEWS
index ec36c0ae3314a9749be24d7116a4875d53c96e41..35ee0b6672ca6c4b7a1a9367da2e25cc53842380 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,10 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2007-04-06  gettext         The macro HAVE_LONG_DOUBLE is no longer set.
+                            You can replace all its uses with 1, i.e. assume
+                            'long double' as a type exists.
+
 2007-04-01  arcfour         Renamed to crypto/arcfour.
             arctwo          Renamed to crypto/arctwo.
             des             Renamed to crypto/des.
index 863ff9ca2ba58e4bf42c7088c8acc8ec65532d2b..61d63c9898a920e60f72349f545b3eeaf8edd48b 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.147 2007-04-02 22:38:14 karl Exp $
+# $Id: srclist.txt,v 1.148 2007-04-06 14:36:56 haible Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -79,7 +79,6 @@ $GETTEXT/gettext-runtime/m4/intldir.m4                        m4
 $GETTEXT/gettext-runtime/m4/intmax.m4                  m4
 $GETTEXT/gettext-runtime/m4/inttypes-pri.m4            m4
 $GETTEXT/gettext-runtime/m4/lcmessage.m4               m4
-$GETTEXT/gettext-runtime/m4/longdouble.m4              m4
 $GETTEXT/gettext-runtime/m4/nls.m4                     m4
 $GETTEXT/gettext-runtime/m4/po.m4                      m4
 $GETTEXT/gettext-runtime/m4/printf-posix.m4            m4
index 3337110eb69eac1486290aa63b58d0d009faacfa..6592b359c0d1e54fa67796034edc89c59b3b95ef 100644 (file)
@@ -109,16 +109,12 @@ enum
 #if HAVE_LONG_LONG_INT
   sa_alignment_longlong = sa_alignof (long long),
 #endif
-#if HAVE_LONG_DOUBLE
   sa_alignment_longdouble = sa_alignof (long double),
-#endif
   sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1)
 #if HAVE_LONG_LONG_INT
                      | (sa_alignment_longlong - 1)
 #endif
-#if HAVE_LONG_DOUBLE
                      | (sa_alignment_longdouble - 1)
-#endif
                     ) + 1,
 /* The increment that guarantees room for a magic word must be >= sizeof (int)
    and a multiple of sa_alignment_max.  */
index 21ab2d0395a2a5091f50b90fa5e4275c1c0599ed..4de25a941eaced67fc0f5c340c4929fc46592aa8 100644 (file)
 /* Verify that SIZEOF_FLT <= sizeof (float) etc.  */
 typedef int verify_sizeof_flt[2 * (SIZEOF_FLT <= sizeof (float)) - 1];
 typedef int verify_sizeof_dbl[2 * (SIZEOF_DBL <= sizeof (double)) - 1];
-#if HAVE_LONG_DOUBLE
 typedef int verify_sizeof_ldbl[2 * (SIZEOF_LDBL <= sizeof (long double)) - 1];
-#endif
 
 #endif /* _FLOATPLUS_H */
index 701f00eefb1d3a9adc1a0eeba9bfd2bf6af89a92..251a93280c53ad18cf19e9de4001073d2ab05148 100644 (file)
 
 #include <config.h>
 
-#if !(defined USE_LONG_DOUBLE && !HAVE_LONG_DOUBLE)
-
 /* Specification.  */
-# include <math.h>
+#include <math.h>
 
-# include <float.h>
-# ifdef USE_LONG_DOUBLE
-#  include "isnanl-nolibm.h"
-#  include "fpucw.h"
-# else
-#  include "isnan.h"
-# endif
+#include <float.h>
+#ifdef USE_LONG_DOUBLE
+# include "isnanl-nolibm.h"
+# include "fpucw.h"
+#else
+# include "isnan.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 isnan
-#  define DECL_ROUNDING
-#  define BEGIN_ROUNDING()
-#  define END_ROUNDING()
-#  define L_(literal) literal
-# endif
+#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 isnan
+# define DECL_ROUNDING
+# define BEGIN_ROUNDING()
+# define END_ROUNDING()
+# define L_(literal) literal
+#endif
 
 DOUBLE
 FUNC (DOUBLE x, int *exp)
@@ -167,11 +165,3 @@ FUNC (DOUBLE x, int *exp)
   *exp = exponent;
   return x;
 }
-
-#else
-
-/* This declaration is solely to ensure that after preprocessing
-   this file is never empty.  */
-typedef int dummy;
-
-#endif
index 2259d53e5ed1b6cd1c857a8fb58b563cdbd7f307..f039b2d3088f687257bf9654608a3ba81957a9fd 100644 (file)
@@ -67,11 +67,9 @@ printf_fetchargs (va_list args, arguments *a)
       case TYPE_DOUBLE:
        ap->a.a_double = va_arg (args, double);
        break;
-#if HAVE_LONG_DOUBLE
       case TYPE_LONGDOUBLE:
        ap->a.a_longdouble = va_arg (args, long double);
        break;
-#endif
       case TYPE_CHAR:
        ap->a.a_char = va_arg (args, int);
        break;
index 74a18d9bf342426fac0d39e7d45ce94d1516d6a6..bcf4470e934a1bc4ecda3139f5852d5f6b655954 100644 (file)
@@ -52,9 +52,7 @@ typedef enum
   TYPE_ULONGLONGINT,
 #endif
   TYPE_DOUBLE,
-#if HAVE_LONG_DOUBLE
   TYPE_LONGDOUBLE,
-#endif
   TYPE_CHAR,
 #if HAVE_WINT_T
   TYPE_WIDE_CHAR,
@@ -93,9 +91,7 @@ typedef struct
 #endif
     float                      a_float;
     double                     a_double;
-#if HAVE_LONG_DOUBLE
     long double                        a_longdouble;
-#endif
     int                                a_char;
 #if HAVE_WINT_T
     wint_t                     a_wide_char;
index e4a5945f57d4640803e0036ccfaf0f6dd20f37a1..0c95a61af43a15720738e4f94393748eefbebd27 100644 (file)
 
 #include <config.h>
 
-#if !(defined USE_LONG_DOUBLE && !HAVE_LONG_DOUBLE)
-
 /* Specification.  */
-# ifdef USE_LONG_DOUBLE
-#  include "printf-frexpl.h"
-# else
-#  include "printf-frexp.h"
-# endif
+#ifdef USE_LONG_DOUBLE
+# include "printf-frexpl.h"
+#else
+# include "printf-frexp.h"
+#endif
 
-# include <float.h>
-# include <math.h>
-# ifdef USE_LONG_DOUBLE
-#  include "fpucw.h"
-# endif
+#include <float.h>
+#include <math.h>
+#ifdef USE_LONG_DOUBLE
+# include "fpucw.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 <= 2.0, not < 2.0.  */
 
-# ifdef USE_LONG_DOUBLE
-#  define FUNC printf_frexpl
-#  define DOUBLE long double
-#  define MIN_EXP LDBL_MIN_EXP
-#  if HAVE_FREXPL_IN_LIBC && HAVE_LDEXPL_IN_LIBC
-#   define USE_FREXP_LDEXP
-#   define FREXP frexpl
-#   define LDEXP ldexpl
-#  endif
-#  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 printf_frexp
-#  define DOUBLE double
-#  define MIN_EXP DBL_MIN_EXP
-#  if HAVE_FREXP_IN_LIBC && HAVE_LDEXP_IN_LIBC
-#   define USE_FREXP_LDEXP
-#   define FREXP frexp
-#   define LDEXP ldexp
-#  endif
-#  define DECL_ROUNDING
-#  define BEGIN_ROUNDING()
-#  define END_ROUNDING()
-#  define L_(literal) literal
+#ifdef USE_LONG_DOUBLE
+# define FUNC printf_frexpl
+# define DOUBLE long double
+# define MIN_EXP LDBL_MIN_EXP
+# if HAVE_FREXPL_IN_LIBC && HAVE_LDEXPL_IN_LIBC
+#  define USE_FREXP_LDEXP
+#  define FREXP frexpl
+#  define LDEXP ldexpl
+# endif
+# 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 printf_frexp
+# define DOUBLE double
+# define MIN_EXP DBL_MIN_EXP
+# if HAVE_FREXP_IN_LIBC && HAVE_LDEXP_IN_LIBC
+#  define USE_FREXP_LDEXP
+#  define FREXP frexp
+#  define LDEXP ldexp
 # endif
+# define DECL_ROUNDING
+# define BEGIN_ROUNDING()
+# define END_ROUNDING()
+# define L_(literal) literal
+#endif
 
 DOUBLE
 FUNC (DOUBLE x, int *exp)
@@ -72,7 +70,7 @@ FUNC (DOUBLE x, int *exp)
 
   BEGIN_ROUNDING ();
 
-# ifdef USE_FREXP_LDEXP
+#ifdef USE_FREXP_LDEXP
   /* frexp and ldexp are usually faster than the loop below.  */
   x = FREXP (x, &exponent);
 
@@ -84,7 +82,7 @@ FUNC (DOUBLE x, int *exp)
       x = LDEXP (x, exponent - (MIN_EXP - 1));
       exponent = MIN_EXP - 1;
     }
-# else
+#else
   {
     /* Since the exponent is an 'int', it fits in 64 bits.  Therefore the
        loops are executed no more than 64 times.  */
@@ -182,18 +180,10 @@ FUNC (DOUBLE x, int *exp)
     /* Here either x < 1.0 and exponent = MIN_EXP - 1,
        or 1.0 <= x < 2.0 and exponent >= MIN_EXP - 1.  */
   }
-# endif
+#endif
 
   END_ROUNDING ();
 
   *exp = exponent;
   return x;
 }
-
-#else
-
-/* This declaration is solely to ensure that after preprocessing
-   this file is never empty.  */
-typedef int dummy;
-
-#endif
index ff494044f54a7c3d2c294dd15a431440614efd0b..7de0b9f2f07092c3aa865844ff2a8126012a1550 100644 (file)
@@ -421,12 +421,10 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
                  break;
                case 'f': case 'F': case 'e': case 'E': case 'g': case 'G':
                case 'a': case 'A':
-#if HAVE_LONG_DOUBLE
                  if (flags >= 16 || (flags & 4))
                    type = TYPE_LONGDOUBLE;
                  else
-#endif
-                 type = TYPE_DOUBLE;
+                   type = TYPE_DOUBLE;
                  break;
                case 'c':
                  if (flags >= 8)
index adce60817ca92753f19d9f4b801ccf3b1c5cd8ce..06bf03421095f60a65c738c9d16242341f04fb55 100644 (file)
 # include "float+.h"
 # include "isnan.h"
 # include "printf-frexp.h"
-# if HAVE_LONG_DOUBLE
-#  include "isnanl-nolibm.h"
-#  include "printf-frexpl.h"
-#  include "fpucw.h"
-# endif
+# include "isnanl-nolibm.h"
+# include "printf-frexpl.h"
+# include "fpucw.h"
 #endif
 
 /* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW.  */
@@ -386,7 +384,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                  }
 
                /* Allocate a temporary buffer of sufficient size.  */
-# if HAVE_LONG_DOUBLE
                if (type == TYPE_LONGDOUBLE)
                  tmp_length =
                    (unsigned int) ((LDBL_DIG + 1)
@@ -394,7 +391,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                                   )
                    + 1; /* turn floor into ceil */
                else
-# endif
                  tmp_length =
                    (unsigned int) ((DBL_DIG + 1)
                                    * 0.831 /* decimal -> hexadecimal */
@@ -427,7 +423,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
 
                pad_ptr = NULL;
                p = tmp;
-# if HAVE_LONG_DOUBLE
                if (type == TYPE_LONGDOUBLE)
                  {
                    long double arg = a.arg[dp->arg_index].a.a_longdouble;
@@ -560,15 +555,15 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                                }
                              }
                              *p++ = dp->conversion - 'A' + 'P';
-#  if WIDE_CHAR_VERSION
+# if WIDE_CHAR_VERSION
                              {
                                static const wchar_t decimal_format[] =
                                  { '%', '+', 'd', '\0' };
                                SNPRINTF (p, 6 + 1, decimal_format, exponent);
                              }
-#  else
+# else
                              sprintf (p, "%+d", exponent);
-#  endif
+# endif
                              while (*p != '\0')
                                p++;
                          }
@@ -577,7 +572,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                      }
                  }
                else
-# endif
                  {
                    double arg = a.arg[dp->arg_index].a.a_double;
 
@@ -932,7 +926,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                      break;
 
                    case 'f': case 'F':
-# if HAVE_LONG_DOUBLE
                      if (type == TYPE_LONGDOUBLE)
                        tmp_length =
                          (unsigned int) (LDBL_MAX_EXP
@@ -942,7 +935,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                          + 1 /* turn floor into ceil */
                          + 10; /* sign, decimal point etc. */
                      else
-# endif
                        tmp_length =
                          (unsigned int) (DBL_MAX_EXP
                                          * 0.30103 /* binary -> decimal */
@@ -960,7 +952,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                      break;
 
                    case 'a': case 'A':
-# if HAVE_LONG_DOUBLE
                      if (type == TYPE_LONGDOUBLE)
                        tmp_length =
                          (unsigned int) (LDBL_DIG
@@ -968,7 +959,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                                         )
                          + 1; /* turn floor into ceil */
                      else
-# endif
                        tmp_length =
                          (unsigned int) (DBL_DIG
                                          * 0.831 /* decimal -> hexadecimal */
@@ -1087,11 +1077,9 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
 #endif
                    *p++ = 'l';
                    break;
-#if HAVE_LONG_DOUBLE
                  case TYPE_LONGDOUBLE:
                    *p++ = 'L';
                    break;
-#endif
                  default:
                    break;
                  }
@@ -1248,14 +1236,12 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                          SNPRINTF_BUF (arg);
                        }
                        break;
-#if HAVE_LONG_DOUBLE
                      case TYPE_LONGDOUBLE:
                        {
                          long double arg = a.arg[dp->arg_index].a.a_longdouble;
                          SNPRINTF_BUF (arg);
                        }
                        break;
-#endif
                      case TYPE_CHAR:
                        {
                          int arg = a.arg[dp->arg_index].a.a_char;
index 5a616dc9a482bbccd4ae26a04f51196bee312588..5f51c989a02d9ea0e0436557f616f7fefa40771c 100644 (file)
@@ -1,5 +1,5 @@
-# allocsa.m4 serial 6
-dnl Copyright (C) 2003-2004, 2006 Free Software Foundation, Inc.
+# allocsa.m4 serial 7
+dnl Copyright (C) 2003-2004, 2006-2007 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.
@@ -11,5 +11,4 @@ AC_DEFUN([gl_ALLOCSA],
   dnl gl_FUNC_ALLOCA   dnl Already brought in by the module dependencies.
   AC_REQUIRE([gl_EEMALLOC])
   AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
 ])
index dcefb118c703176d135dba3e294cf1eb086e75f7..e44fe21960f51be583f4599237fb6435fe6d4e38 100644 (file)
@@ -1,5 +1,5 @@
-# intl.m4 serial 3 (gettext-0.16)
-dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
+# intl.m4 serial 4 (gettext-0.16.2)
+dnl Copyright (C) 1995-2007 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.
@@ -33,7 +33,6 @@ AC_DEFUN([AM_INTL_SUBDIR],
   AC_REQUIRE([gl_VISIBILITY])dnl
   AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
   AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
   AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
   AC_REQUIRE([gt_TYPE_WINT_T])dnl
   AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
index d035c07cbdc88388599083cb4650e79387277685..be5d12f8b50587dbb6b01eec36f838a054dafc59 100644 (file)
@@ -1,4 +1,4 @@
-# isnanl.m4 serial 2
+# isnanl.m4 serial 3
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,60 +6,54 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_ISNANL],
 [
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   ISNANL_LIBM=
-  if test $gt_cv_c_long_double = yes; then
-    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
-    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
-      AC_DEFINE([HAVE_ISNANL], 1,
-        [Define if the isnan(long double) function is available.])
-    else
-      AC_LIBOBJ([isnanl])
-      gl_LONG_DOUBLE_EXPONENT_LOCATION
+  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
+  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
+    AC_DEFINE([HAVE_ISNANL], 1,
+      [Define if the isnan(long double) function is available.])
+  else
+    AC_LIBOBJ([isnanl])
+    gl_LONG_DOUBLE_EXPONENT_LOCATION
+  fi
   AC_SUBST([ISNANL_LIBM])
 ])
 
 AC_DEFUN([gl_FUNC_ISNANL_NO_LIBM],
 [
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
-  if test $gt_cv_c_long_double = yes; then
-    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.])
-    else
-      AC_LIBOBJ([isnanl])
-      gl_LONG_DOUBLE_EXPONENT_LOCATION
-    fi
+  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.])
+  else
+    AC_LIBOBJ([isnanl])
+    gl_LONG_DOUBLE_EXPONENT_LOCATION
   fi
 ])
 
@@ -107,7 +101,6 @@ dnl infinite. This test fails e.g. on NetBSD/i386.
 AC_DEFUN([gl_FUNC_ISNANL_WORKS],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether isnanl works], [gl_cv_func_isnanl_works],
     [
diff --git a/m4/longdouble.m4 b/m4/longdouble.m4
deleted file mode 100644 (file)
index 25590f4..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# longdouble.m4 serial 2 (gettext-0.15)
-dnl Copyright (C) 2002-2003, 2006 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 From Bruno Haible.
-dnl Test whether the compiler supports the 'long double' type.
-dnl Prerequisite: AC_PROG_CC
-
-dnl This file is only needed in autoconf <= 2.59.  Newer versions of autoconf
-dnl have a macro AC_TYPE_LONG_DOUBLE with identical semantics.
-
-AC_DEFUN([gt_TYPE_LONGDOUBLE],
-[
-  AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
-    [if test "$GCC" = yes; then
-       gt_cv_c_long_double=yes
-     else
-       AC_TRY_COMPILE([
-         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
-         long double foo = 0.0;
-         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
-         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
-         ], ,
-         gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
-     fi])
-  if test $gt_cv_c_long_double = yes; then
-    AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
-  fi
-])
index 14acc354690414b0f25408bb9cb723cf086f13e9..6c74e9ba9282459dc6bab158a9e4b97e12a1f9c2 100644 (file)
@@ -1,4 +1,4 @@
-# printf-frexpl.m4 serial 3
+# printf-frexpl.m4 serial 4
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,48 +8,45 @@ dnl Check how to define printf_frexpl() without linking with libm.
 
 AC_DEFUN([gl_FUNC_PRINTF_FREXPL],
 [
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
-  if test $gt_cv_c_long_double = yes; then
-    AC_CACHE_CHECK([whether frexpl can be used without linking with libm],
-      [gl_cv_func_frexpl_no_libm],
-      [
-        AC_TRY_LINK([#include <math.h>
-                     long double x;
-                     int y;],
-                    [return frexpl (x, &y) < 1;],
-          [gl_cv_func_frexpl_no_libm=yes],
-          [gl_cv_func_frexpl_no_libm=no])
-      ])
-    if test $gl_cv_func_frexpl_no_libm = yes; then
-      AC_DEFINE([HAVE_FREXPL_IN_LIBC], 1,
-        [Define if the frexpl function is available in libc.])
-      dnl Also check whether it's declared.
-      dnl MacOS 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>])
-    fi
+  AC_CACHE_CHECK([whether frexpl can be used without linking with libm],
+    [gl_cv_func_frexpl_no_libm],
+    [
+      AC_TRY_LINK([#include <math.h>
+                   long double x;
+                   int y;],
+                  [return frexpl (x, &y) < 1;],
+        [gl_cv_func_frexpl_no_libm=yes],
+        [gl_cv_func_frexpl_no_libm=no])
+    ])
+  if test $gl_cv_func_frexpl_no_libm = yes; then
+    AC_DEFINE([HAVE_FREXPL_IN_LIBC], 1,
+      [Define if the frexpl function is available in libc.])
+    dnl Also check whether it's declared.
+    dnl MacOS 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>])
+  fi
 
-    AC_CACHE_CHECK([whether ldexpl can be used without linking with libm],
-      [gl_cv_func_ldexpl_no_libm],
-      [
-        AC_TRY_LINK([#include <math.h>
-                     long double x;
-                     int y;],
-                    [return ldexpl (x, y) < 1;],
-          [gl_cv_func_ldexpl_no_libm=yes],
-          [gl_cv_func_ldexpl_no_libm=no])
-      ])
-    if test $gl_cv_func_ldexpl_no_libm = yes; then
-      gl_FUNC_LDEXPL_WORKS
-      case "$gl_cv_func_ldexpl_works" in
-        *yes)
-          AC_DEFINE([HAVE_LDEXPL_IN_LIBC], 1,
-            [Define if the ldexpl function is available in libc.])
-          dnl Also check whether it's declared.
-          dnl MacOS X 10.3 has ldexpl() in libc but doesn't declare it in <math.h>.
-          AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [#include <math.h>])
-          ;;
-      esac
-    fi
+  AC_CACHE_CHECK([whether ldexpl can be used without linking with libm],
+    [gl_cv_func_ldexpl_no_libm],
+    [
+      AC_TRY_LINK([#include <math.h>
+                   long double x;
+                   int y;],
+                  [return ldexpl (x, y) < 1;],
+        [gl_cv_func_ldexpl_no_libm=yes],
+        [gl_cv_func_ldexpl_no_libm=no])
+    ])
+  if test $gl_cv_func_ldexpl_no_libm = yes; then
+    gl_FUNC_LDEXPL_WORKS
+    case "$gl_cv_func_ldexpl_works" in
+      *yes)
+        AC_DEFINE([HAVE_LDEXPL_IN_LIBC], 1,
+          [Define if the ldexpl function is available in libc.])
+        dnl Also check whether it's declared.
+        dnl MacOS X 10.3 has ldexpl() in libc but doesn't declare it in <math.h>.
+        AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [#include <math.h>])
+        ;;
+    esac
   fi
 ])
index 3659353291693252746d3635e4d16448f8bf37e7..3ce777c2628a15953a21608b27ca2a2146bc0716 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 3
+# printf.m4 serial 4
 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -13,7 +13,6 @@ AC_DEFUN([gl_PRINTF_SIZES_C99],
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([gl_AC_HEADER_STDINT_H])
   AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether printf supports size specifiers as in C99],
     [gl_cv_func_printf_sizes_c99], 
@@ -46,12 +45,10 @@ int main ()
   if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
       || strcmp (buf, "12345673 33") != 0)
     return 1;
-#if HAVE_LONG_DOUBLE
   buf[0] = '\0';
   if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
       || strcmp (buf, "1.5 33") != 0)
     return 1;
-#endif
   return 0;
 }], [gl_cv_func_printf_sizes_c99=yes], [gl_cv_func_printf_sizes_c99=no],
       [
@@ -92,7 +89,6 @@ dnl Result is gl_cv_func_printf_directive_a.
 AC_DEFUN([gl_PRINTF_DIRECTIVE_A],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether printf supports the 'a' and 'A' directives],
     [gl_cv_func_printf_directive_a], 
@@ -129,7 +125,6 @@ int main ()
           && strcmp (buf, "0x4.0p-1") != 0
           && strcmp (buf, "0x8.0p-2") != 0))
     return 1;
-#if HAVE_LONG_DOUBLE
   /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a
      glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
   if (sprintf (buf, "%.1La", 1.999L) < 0
@@ -138,7 +133,6 @@ int main ()
           && strcmp (buf, "0x4.0p-1") != 0
           && strcmp (buf, "0x8.0p-2") != 0))
     return 1;
-#endif
   return 0;
 }], [gl_cv_func_printf_directive_a=yes], [gl_cv_func_printf_directive_a=no],
       [
index 8cc4f32e33d7a9b87e68f30a90eefd6af8cf7235..b17761cf15a4f4dc5752477a79043d0cc7b84b55 100644 (file)
@@ -1,4 +1,4 @@
-# vasnprintf.m4 serial 11
+# vasnprintf.m4 serial 12
 dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -34,7 +34,6 @@ AC_DEFUN([gl_REPLACE_VASNPRINTF],
 AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
 [
   AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   AC_REQUIRE([gt_TYPE_WCHAR_T])
   AC_REQUIRE([gt_TYPE_WINT_T])
 ])
@@ -43,7 +42,6 @@ AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
 AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
 [
   AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   AC_REQUIRE([gt_TYPE_WCHAR_T])
   AC_REQUIRE([gt_TYPE_WINT_T])
   AC_REQUIRE([AC_TYPE_SIZE_T])
@@ -56,7 +54,6 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF],
 [
   AC_REQUIRE([AC_FUNC_ALLOCA])
   AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
-  AC_REQUIRE([gt_TYPE_LONGDOUBLE])
   AC_REQUIRE([gt_TYPE_WCHAR_T])
   AC_REQUIRE([gt_TYPE_WINT_T])
   AC_CHECK_FUNCS(snprintf wcslen)
index cb767d1acd4a2dbfa4f128d4c9f100bb09480dcb..defff8646f4c92a68354a4bea87e84e003d3e1e3 100644 (file)
@@ -8,7 +8,6 @@ lib/allocsa.valgrind
 m4/allocsa.m4
 m4/eealloc.m4
 m4/longlong.m4
-m4/longdouble.m4
 
 Depends-on:
 alloca-opt
index ac4f8a546bdd6731fc74e6284a5d7dc0916aa202..5cebb050ce1af56f802a6e3b717a9786772723e2 100644 (file)
@@ -15,7 +15,6 @@ m4/inttypes_h.m4
 m4/inttypes-pri.m4
 m4/lcmessage.m4
 m4/lock.m4
-m4/longdouble.m4
 m4/longlong.m4
 m4/nls.m4
 m4/po.m4
index bf6a5ae803baea0ee66509c261b4f73cbdb8a49d..86907afd83e14f2c92e40936b8812c5a5d208cc1 100644 (file)
@@ -7,7 +7,6 @@ lib/isnanl.c
 lib/isnan.c
 lib/float+.h
 m4/isnanl.m4
-m4/longdouble.m4
 
 Depends-on:
 fpieee
@@ -18,9 +17,7 @@ gl_FUNC_ISNANL
 Makefile.am:
 
 Include:
-#if HAVE_LONG_DOUBLE
-# include "isnanl.h"
-#endif
+"isnanl.h"
 
 Link:
 $(ISNANL_LIBM)
index 9da825c467866b616413a56829a3df8579ce71d7..1b753a567d72f3cacaed65d2ac9767a0b8fde7d6 100644 (file)
@@ -7,7 +7,6 @@ lib/isnanl.c
 lib/isnan.c
 lib/float+.h
 m4/isnanl.m4
-m4/longdouble.m4
 
 Depends-on:
 fpieee
@@ -18,9 +17,7 @@ gl_FUNC_ISNANL_NO_LIBM
 Makefile.am:
 
 Include:
-#if HAVE_LONG_DOUBLE
-# include "isnanl-nolibm.h"
-#endif
+"isnanl-nolibm.h"
 
 License:
 LGPL
index 12bc043184c75c4408d0a8159163e9b2f7dfc534..6221c4a56b52ccbd30a2dfbeef55a447987f5dd5 100644 (file)
@@ -8,7 +8,6 @@ lib/printf-frexpl.c
 lib/printf-frexp.c
 m4/printf-frexpl.m4
 m4/ldexpl.m4
-m4/longdouble.m4
 
 Depends-on:
 math
@@ -21,9 +20,7 @@ Makefile.am:
 lib_SOURCES += printf-frexpl.c
 
 Include:
-#if HAVE_LONG_DOUBLE
-# include "printf-frexpl.h"
-#endif
+"printf-frexpl.h"
 
 License:
 LGPL
index 07075254e6115020c7cc817d8e3d9b60a5d0755b..704973fc09b6735f071332028a49a5a6dd798bc3 100644 (file)
@@ -26,7 +26,6 @@ m4/allocsa.m4
 m4/canonicalize-lgpl.m4
 m4/eealloc.m4
 m4/longlong.m4
-m4/longdouble.m4
 m4/readlink.m4
 m4/relocatable-lib.m4
 m4/setenv.m4
index 0353e6136b5463c505f98d9a0f715f29d8d3cb2c..11bca695dbf70143e98f7734411d79aa9d9cfdba 100644 (file)
@@ -1,13 +1,11 @@
 Files:
 tests/test-snprintf-posix.c
 tests/test-snprintf-posix.h
-m4/longdouble.m4
 
 Depends-on:
 stdint
 
 configure.ac:
-AC_REQUIRE([gt_TYPE_LONGDOUBLE])
 
 Makefile.am:
 TESTS += test-snprintf-posix
index c2ee75160b8fad7f21458fcd43616b3686c83161..68572557ed3173a76dbd38f81212f585889c80cc 100644 (file)
@@ -1,13 +1,11 @@
 Files:
 tests/test-sprintf-posix.c
 tests/test-sprintf-posix.h
-m4/longdouble.m4
 
 Depends-on:
 stdint
 
 configure.ac:
-AC_REQUIRE([gt_TYPE_LONGDOUBLE])
 
 Makefile.am:
 TESTS += test-sprintf-posix
index 21e20480c8587f45f095fa6c7e5398c0b66221e7..d47b62e5eb1662caca41aa773989496ae88825a3 100644 (file)
@@ -10,7 +10,6 @@ lib/float+.h
 lib/vasnprintf.h
 lib/vasnprintf.c
 lib/asnprintf.c
-m4/longdouble.m4
 m4/wchar_t.m4
 m4/wint_t.m4
 m4/longlong.m4
index 4ca9e228aba9db2e42db7c7eb04a09ae18a0f43b..47acf81ea58ea080fe0edf3af0a653b7458bc45c 100644 (file)
@@ -2,14 +2,12 @@ Files:
 tests/test-vasnprintf-posix.c
 tests/test-vasnprintf-posix2.sh
 tests/test-vasnprintf-posix2.c
-m4/longdouble.m4
 m4/locale-fr.m4
 
 Depends-on:
 stdint
 
 configure.ac:
-AC_REQUIRE([gt_TYPE_LONGDOUBLE])
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 
index 169ac18df1837943607bb7525b72c48a4e77113e..485e513b75f24f666271b09298ad21ccea8d21e6 100644 (file)
@@ -1,12 +1,10 @@
 Files:
 tests/test-vasprintf-posix.c
-m4/longdouble.m4
 
 Depends-on:
 stdint
 
 configure.ac:
-AC_REQUIRE([gt_TYPE_LONGDOUBLE])
 
 Makefile.am:
 TESTS += test-vasprintf-posix
index 219392a5e206c46fc1a3b397dfa5533f1bb7c1cb..9f7fdff2f9af6c29d0e1dead74d416cf36487b94 100644 (file)
@@ -1,13 +1,11 @@
 Files:
 tests/test-vsnprintf-posix.c
 tests/test-snprintf-posix.h
-m4/longdouble.m4
 
 Depends-on:
 stdint
 
 configure.ac:
-AC_REQUIRE([gt_TYPE_LONGDOUBLE])
 
 Makefile.am:
 TESTS += test-vsnprintf-posix
index 4a3bbda37c7d9b278616c450088c931f1331b823..05d7d02b812604e615f5118189237340a0a68a8d 100644 (file)
@@ -1,13 +1,11 @@
 Files:
 tests/test-vsprintf-posix.c
 tests/test-sprintf-posix.h
-m4/longdouble.m4
 
 Depends-on:
 stdint
 
 configure.ac:
-AC_REQUIRE([gt_TYPE_LONGDOUBLE])
 
 Makefile.am:
 TESTS += test-vsprintf-posix
index 8402a549f8f0ed3cee9c83582f5a7f2f140f50ab..c1018f0a2b816eeefbd33eb8b695871aa4cf8425 100644 (file)
 
 #include <config.h>
 
-#if HAVE_LONG_DOUBLE
-
 #include "isnanl-nolibm.h"
 
 #include "test-isnanl.h"
-
-#else
-
-int
-main ()
-{
-  return 0;
-}
-
-#endif
index 818c05426d324974adaf9e5eea6e9d353cdd33b7..8eb70ac201761418f1900719a30eb492015f8891 100644 (file)
 
 #include <config.h>
 
-#if HAVE_LONG_DOUBLE
-
 #include "isnanl.h"
 
 #include "test-isnanl.h"
-
-#else
-
-int
-main ()
-{
-  return 0;
-}
-
-#endif
index 098d0db86df3bc07363d6aa41281900ef3d303e4..48ef45387b117f33c345d64a835bf78dff525a49 100644 (file)
@@ -85,7 +85,6 @@ test_function (int (*my_snprintf) (char *, size_t, const char *, ...))
     ASSERT (retval == strlen (result));
   }
 
-#if HAVE_LONG_DOUBLE
   {
     char result[100];
     int retval =
@@ -93,7 +92,6 @@ test_function (int (*my_snprintf) (char *, size_t, const char *, ...))
     ASSERT (strcmp (result, "1.5 33") == 0);
     ASSERT (retval == strlen (result));
   }
-#endif
 
   /* Test the support of the 'a' and 'A' conversion specifier for hexadecimal
      output of floating-point numbers.  */
@@ -355,8 +353,6 @@ test_function (int (*my_snprintf) (char *, size_t, const char *, ...))
     ASSERT (retval == strlen (result));
   }
 
-#if HAVE_LONG_DOUBLE
-
   { /* A positive number.  */
     char result[100];
     int retval =
@@ -615,8 +611,6 @@ test_function (int (*my_snprintf) (char *, size_t, const char *, ...))
     ASSERT (retval == strlen (result));
   }
 
-#endif
-
   /* Test the support of the %n format directive.  */
 
   {
index 802783f1c9277578e664ee9294eb17fc2e33dd7b..e0645bafac03f0e2eb36b6ff273f23c7caaa0f55 100644 (file)
@@ -71,7 +71,6 @@ test_function (int (*my_sprintf) (char *, const char *, ...))
     ASSERT (retval == strlen (result));
   }
 
-#if HAVE_LONG_DOUBLE
   {
     char result[1000];
     int retval =
@@ -79,7 +78,6 @@ test_function (int (*my_sprintf) (char *, const char *, ...))
     ASSERT (strcmp (result, "1.5 33") == 0);
     ASSERT (retval == strlen (result));
   }
-#endif
 
   /* Test the support of the 'a' and 'A' conversion specifier for hexadecimal
      output of floating-point numbers.  */
@@ -341,8 +339,6 @@ test_function (int (*my_sprintf) (char *, const char *, ...))
     ASSERT (retval == strlen (result));
   }
 
-#if HAVE_LONG_DOUBLE
-
   { /* A positive number.  */
     char result[1000];
     int retval =
@@ -601,8 +597,6 @@ test_function (int (*my_sprintf) (char *, const char *, ...))
     ASSERT (retval == strlen (result));
   }
 
-#endif
-
   /* Test the support of the %n format directive.  */
 
   {
index deda70a3ca409ffa9f5c7f7b957dfce6574c4989..fdfa3d5642e15dde76d6396d043adb04d0d0f3d7 100644 (file)
@@ -111,7 +111,6 @@ test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...))
     free (result);
   }
 
-#if HAVE_LONG_DOUBLE
   {
     size_t length;
     char *result =
@@ -121,7 +120,6 @@ test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...))
     ASSERT (length == strlen (result));
     free (result);
   }
-#endif
 
   /* Test the support of the 'a' and 'A' conversion specifier for hexadecimal
      output of floating-point numbers.  */
@@ -433,8 +431,6 @@ test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...))
     free (result);
   }
 
-#if HAVE_LONG_DOUBLE
-
   { /* A positive number.  */
     size_t length;
     char *result =
@@ -743,8 +739,6 @@ test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...))
     free (result);
   }
 
-#endif
-
   /* Test the support of the %n format directive.  */
 
   {
index da664928332489291ced9c280a817dba1f1e17d8..eaa95b21141dad798e72b76dfc42d090c81affda 100644 (file)
@@ -49,8 +49,6 @@ main (int argc, char *argv[])
     free (result);
   }
 
-#if HAVE_LONG_DOUBLE
-
   /* Test that a locale dependent decimal point is used.  */
   {
     size_t length;
@@ -64,7 +62,5 @@ main (int argc, char *argv[])
     free (result);
   }
 
-#endif
-
   return 0;
 }
index b4ffda2aea28bccfd6fd2f3805e9a4f3e7412753..2f3c318a3b4af65c5baff1282906209b4d8cb58a 100644 (file)
@@ -92,7 +92,6 @@ test_function (int (*my_asprintf) (char **, const char *, ...))
     free (result);
   }
 
-#if HAVE_LONG_DOUBLE
   {
     char *result;
     int retval =
@@ -102,7 +101,6 @@ test_function (int (*my_asprintf) (char **, const char *, ...))
     ASSERT (retval == strlen (result));
     free (result);
   }
-#endif
 
   /* Test the support of the 'a' and 'A' conversion specifier for hexadecimal
      output of floating-point numbers.  */
@@ -414,8 +412,6 @@ test_function (int (*my_asprintf) (char **, const char *, ...))
     free (result);
   }
 
-#if HAVE_LONG_DOUBLE
-
   { /* A positive number.  */
     char *result;
     int retval =
@@ -724,8 +720,6 @@ test_function (int (*my_asprintf) (char **, const char *, ...))
     free (result);
   }
 
-#endif
-
   /* Test the support of the %n format directive.  */
 
   {