public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-05-13 14:16 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:16 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=abe29ae906c36714e7083239c274456147033932

commit abe29ae906c36714e7083239c274456147033932
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index cb85e949c0..f2c067af63 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-06-09 21:17 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:17 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e6ebfd2ae75065211a9504e478368d8088628a07

commit e6ebfd2ae75065211a9504e478368d8088628a07
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index b1e9144de0..ed75d09764 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-06-09 13:13 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:13 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e6ebfd2ae75065211a9504e478368d8088628a07

commit e6ebfd2ae75065211a9504e478368d8088628a07
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index b1e9144de0..ed75d09764 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-06-03 14:03 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:03 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8782866113431233a8501d14e71f1b4db9c83840

commit 8782866113431233a8501d14e71f1b4db9c83840
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index b1e9144de0..ed75d09764 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-05-12 19:30 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:30 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ace101fcb4d70b93151e33ff1777f286a9968316

commit ace101fcb4d70b93151e33ff1777f286a9968316
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index cb85e949c0..f2c067af63 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-05-10 18:21 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:21 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4c9597ddd0039368f435aae77619f5fadd0d2680

commit 4c9597ddd0039368f435aae77619f5fadd0d2680
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index e663cd5927..73bdeffc05 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-04-29 14:01 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:01 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4e2d74711071138ca6a6fe95ade32c46861eedde

commit 4e2d74711071138ca6a6fe95ade32c46861eedde
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index e663cd5927..73bdeffc05 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-04-04 12:51 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:51 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0d311987d0ebadbc460e06ed82d1f3b68ed5bfef

commit 0d311987d0ebadbc460e06ed82d1f3b68ed5bfef
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 435cd8904f..402bd4e158 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-03-31 19:03 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:03 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=46af2f437b733481bb812125af88659b40bc4d4e

commit 46af2f437b733481bb812125af88659b40bc4d4e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 435cd8904f..402bd4e158 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-03-29 20:26 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:26 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5725eec17e6f28e70e165aed07f6b7c45209e7c6

commit 5725eec17e6f28e70e165aed07f6b7c45209e7c6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 435cd8904f..402bd4e158 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines := \
   _itoa \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-03-16 17:58 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 17:58 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d618018b609ee46ed401587c9d7193bf3f81cd19

commit d618018b609ee46ed401587c9d7193bf3f81cd19
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index d8498bbd62..acb9822cd7 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines	:=							      \
 	ctermid cuserid							      \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-03-15 18:36 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:36 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d618018b609ee46ed401587c9d7193bf3f81cd19

commit d618018b609ee46ed401587c9d7193bf3f81cd19
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index d8498bbd62..acb9822cd7 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines	:=							      \
 	ctermid cuserid							      \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-03-11 17:20 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:20 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=490b74a9dca41673d8f611da51a23cceface5ba7

commit 490b74a9dca41673d8f611da51a23cceface5ba7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index d8498bbd62..acb9822cd7 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines	:=							      \
 	ctermid cuserid							      \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [glibc/azanella/clang] Remove printf-ldbl.h
@ 2022-03-08 18:56 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-08 18:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2ffa5926c224986c5bc8ebf4b14e55ba7476ef89

commit 2ffa5926c224986c5bc8ebf4b14e55ba7476ef89
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 1 16:35:57 2022 -0300

    Remove printf-ldbl.h
    
    The functions which require different alias to long double depending
    of the ABI now uses a set os macros that defines the expected alias
    on the function prototype, instead of redefine them using the
    __LDBL_REDIR_DEC macros.
    
    Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Diff:
---
 include/bits/printf-ldbl.h      |  1 -
 stdio-common/Makefile           |  2 +-
 stdio-common/bits/printf-ldbl.h | 23 -----------------------
 stdio-common/printf.h           | 13 +++++--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
deleted file mode 100644
index 10d534b9b3..0000000000
--- a/include/bits/printf-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <stdio-common/bits/printf-ldbl.h>
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index d8498bbd62..acb9822cd7 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -22,7 +22,7 @@ subdir	:= stdio-common
 
 include ../Makeconfig
 
-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+headers	:= stdio_ext.h printf.h bits/stdio_lim.h
 
 routines	:=							      \
 	ctermid cuserid							      \
diff --git a/stdio-common/bits/printf-ldbl.h b/stdio-common/bits/printf-ldbl.h
deleted file mode 100644
index d3300ff597..0000000000
--- a/stdio-common/bits/printf-ldbl.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -mlong-double-64 compatibility mode for <printf.h> functions.
-   Copyright (C) 2006-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#ifndef _PRINTF_H
-# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (printf_size)
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index 46993e031e..57e50fe7c4 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -29,6 +29,7 @@ __BEGIN_DECLS
 #include <stddef.h>
 
 #include <stdarg.h>
+#include <bits/floatn.h>
 
 
 struct printf_info
@@ -173,20 +174,16 @@ enum
    of magnitude used for numbers ('k' for kilo, 'm' for mega etc).  If
    the format specifier is a uppercase character powers of 1000 are
    used.  Otherwise powers of 1024.  */
-extern int printf_size (FILE *__restrict __fp,
-			const struct printf_info *__info,
-			const void *const *__restrict __args) __THROW;
+extern int __REDIRECT_LDBL_NTH (printf_size, (FILE *__restrict __fp,
+					      const struct printf_info *__info,
+					      const void *const *__restrict __args),
+				__printf_sizeieee128, __nldbl_printf_size);
 
 /* This is the appropriate argument information function for `printf_size'.  */
 extern int printf_size_info (const struct printf_info *__restrict
 			     __info, size_t __n, int *__restrict __argtypes)
      __THROW;
 
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/printf-ldbl.h>
-#endif
-
 __END_DECLS
 
 #endif /* printf.h  */


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-06-09 21:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 14:16 [glibc/azanella/clang] Remove printf-ldbl.h Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:17 Adhemerval Zanella
2022-06-09 13:13 Adhemerval Zanella
2022-06-03 14:03 Adhemerval Zanella
2022-05-12 19:30 Adhemerval Zanella
2022-05-10 18:21 Adhemerval Zanella
2022-04-29 14:01 Adhemerval Zanella
2022-04-04 12:51 Adhemerval Zanella
2022-03-31 19:03 Adhemerval Zanella
2022-03-29 20:26 Adhemerval Zanella
2022-03-16 17:58 Adhemerval Zanella
2022-03-15 18:36 Adhemerval Zanella
2022-03-11 17:20 Adhemerval Zanella
2022-03-08 18:56 Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).