]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove __long_double_t.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 7 Aug 2017 19:53:17 +0000 (19:53 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 7 Aug 2017 19:53:17 +0000 (19:53 +0000)
sys/cdefs.h has a macro __long_double_t used in two places in glibc.
long double is a standard part of C since C89; there is no need for
such an alias for it.  This patch removes that macro and uses long
double directly everywhere.  As an implementation-namespace,
undocumented symbol, it should not be considered part of the API for
users, and codesearch.debian.net shows no sign of it being used
outside glibc in a way that would break with this patch.

Tested for x86_64.

* misc/sys/cdefs.h (__long_double_t): Remove.
* stdio-common/printf_fp.c (__printf_fp_l): Use long double
instead of __long_double_t,
* stdlib/strfmon_l.c (__vstrfmon_l): Likewise.

ChangeLog
misc/sys/cdefs.h
stdio-common/printf_fp.c
stdlib/strfmon_l.c

index b64ed0571d26f999878c30b3b98ea60eb291d579..05a8d8eab0e233cb64ab61f14becddae62466120 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-08-07  Joseph Myers  <joseph@codesourcery.com>
+
+       * misc/sys/cdefs.h (__long_double_t): Remove.
+       * stdio-common/printf_fp.c (__printf_fp_l): Use long double
+       instead of __long_double_t,
+       * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
+
 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        * benchtests/scripts/compare_strings.py: Avoid display error when
index 06523bfe9c65dbd3a583128d69457efdc8a8f139..b3e7f3be96f0cc569e42bcc64db92839dd6781e6 100644 (file)
 
 /* This is not a typedef so `const __ptr_t' does the right thing.  */
 #define __ptr_t void *
-#define __long_double_t  long double
 
 
 /* C++ needs to know that types and declarations are C, not C++.  */
index 514b698d2760c1b82e2018f5cab309fb93023340..3ed4037ba57a545c94d2e963a18eb0c14e615b18 100644 (file)
@@ -217,7 +217,7 @@ __printf_fp_l (FILE *fp, locale_t loc,
   union
     {
       double dbl;
-      __long_double_t ldbl;
+      long double ldbl;
 #if __HAVE_DISTINCT_FLOAT128
       _Float128 f128;
 #endif
index 69ca9d5d3b8c6553b3fcc28d23be116409a18cc3..98554dfe80aea19ed20e2d2a700abaf9342ad192 100644 (file)
@@ -100,7 +100,7 @@ __vstrfmon_l (char *s, size_t maxsize, locale_t loc, const char *format,
       union
       {
        double dbl;
-       __long_double_t ldbl;
+       long double ldbl;
       }
       fpnum;
       int int_format;