public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Remove argp-ldbl.h
@ 2022-04-04 12:50 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:50 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e4a95008aa1872c53701fefad3176b5ace1e3cca
commit e4a95008aa1872c53701fefad3176b5ace1e3cca
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-ldbl.h
@ 2022-06-09 21:16 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:16 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7fff131de7e7f7bb87b43e384688581114d54004
commit 7fff131de7e7f7bb87b43e384688581114d54004
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-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=7fff131de7e7f7bb87b43e384688581114d54004
commit 7fff131de7e7f7bb87b43e384688581114d54004
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-ldbl.h
@ 2022-06-03 14:02 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:02 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f6c1628f58c14fc2a5e5bc2704ed5495bae0a5b4
commit f6c1628f58c14fc2a5e5bc2704ed5495bae0a5b4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-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=1e12b6069b85d28fd527f5b872834193d58baa47
commit 1e12b6069b85d28fd527f5b872834193d58baa47
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-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=402caeee539f617f8de0d3a24a8f456da7e81bdd
commit 402caeee539f617f8de0d3a24a8f456da7e81bdd
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-ldbl.h
@ 2022-05-10 18:20 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:20 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=68df6b6ac8f8b994220ffad8dfa8b7a0e8976285
commit 68df6b6ac8f8b994220ffad8dfa8b7a0e8976285
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-ldbl.h
@ 2022-04-29 14:00 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4944883ec7ff234e3fcd760302109a9fe9eee637
commit 4944883ec7ff234e3fcd760302109a9fe9eee637
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-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=79530540766297b55d9ac761c5ed522dcc64a764
commit 79530540766297b55d9ac761c5ed522dcc64a764
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-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=ef8610e7fb0219a22392dab512a6df089e5f648f
commit ef8610e7fb0219a22392dab512a6df089e5f648f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-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=bc2d5715f687098b8cd66cf5c90e3f472ad0788f
commit bc2d5715f687098b8cd66cf5c90e3f472ad0788f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-ldbl.h
@ 2022-03-15 18:35 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:35 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bc2d5715f687098b8cd66cf5c90e3f472ad0788f
commit bc2d5715f687098b8cd66cf5c90e3f472ad0788f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-ldbl.h
@ 2022-03-11 17:19 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:19 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=219ccb8b8521104b2319a1a49003766a7710b07d
commit 219ccb8b8521104b2319a1a49003766a7710b07d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] Remove argp-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=e1fe722d4c67e18f70ac4add18d2f79cca7cb41a
commit e1fe722d4c67e18f70ac4add18d2f79cca7cb41a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Feb 28 11:01:38 2022 -0300
Remove argp-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:
---
argp/Makefile | 2 +-
argp/argp.h | 24 +++++++++++-------------
argp/bits/argp-ldbl.h | 24 ------------------------
include/bits/argp-ldbl.h | 1 -
4 files changed, 12 insertions(+), 39 deletions(-)
diff --git a/argp/Makefile b/argp/Makefile
index 586136f2fe..8d98faba88 100644
--- a/argp/Makefile
+++ b/argp/Makefile
@@ -22,7 +22,7 @@ subdir := argp
include ../Makeconfig
-headers = argp.h bits/argp-ldbl.h
+headers = argp.h
routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
pvh xinl eexst)
diff --git a/argp/argp.h b/argp/argp.h
index d6a04069d5..9af80d7719 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <limits.h>
#include <errno.h>
+#include <bits/floatn.h>
\f
__BEGIN_DECLS
@@ -464,11 +465,10 @@ extern void __argp_state_help (const struct argp_state *__restrict __state,
extern void argp_usage (const struct argp_state *__state);
extern void __argp_usage (const struct argp_state *__state);
-/* If appropriate, print the printf string FMT and following args, preceded
- by the program name and `:', to stderr, and followed by a `Try ... --help'
- message, then exit (1). */
-extern void argp_error (const struct argp_state *__restrict __state,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_error,
+ (const struct argp_state *__restrict __state,
+ const char *__restrict __fmt, ...),
+ __argp_errorieee128, __nldbl_argp_error)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (const struct argp_state *__restrict __state,
const char *__restrict __fmt, ...)
@@ -482,10 +482,13 @@ extern void __argp_error (const struct argp_state *__restrict __state,
difference between this function and argp_error is that the latter is for
*parsing errors*, and the former is for other problems that occur during
parsing but don't reflect a (syntactic) problem with the input. */
-extern void argp_failure (const struct argp_state *__restrict __state,
- int __status, int __errnum,
- const char *__restrict __fmt, ...)
+extern void __REDIRECT_LDBL (argp_failure,
+ (const struct argp_state *__restrict __state,
+ int __status, int __errnum,
+ const char *__restrict __fmt, ...),
+ __argp_failureieee128,__nldbl_argp_failure)
__attribute__ ((__format__ (__printf__, 4, 5)));
+
extern void __argp_failure (const struct argp_state *__restrict __state,
int __status, int __errnum,
const char *__restrict __fmt, ...)
@@ -554,11 +557,6 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif
#endif /* Use extern inlines. */
-#include <bits/floatn.h>
-#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# include <bits/argp-ldbl.h>
-#endif
-
__END_DECLS
#endif /* argp.h */
diff --git a/argp/bits/argp-ldbl.h b/argp/bits/argp-ldbl.h
deleted file mode 100644
index 9dbe66bb89..0000000000
--- a/argp/bits/argp-ldbl.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Redirections for argp functions for -mlong-double-64.
- Copyright (C) 2019-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 _ARGP_H
-# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
-#endif
-
-__LDBL_REDIR_DECL (argp_error)
-__LDBL_REDIR_DECL (argp_failure)
diff --git a/include/bits/argp-ldbl.h b/include/bits/argp-ldbl.h
deleted file mode 100644
index 7c1a343d1b..0000000000
--- a/include/bits/argp-ldbl.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <argp/bits/argp-ldbl.h>
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-06-09 21:16 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:50 [glibc/azanella/clang] Remove argp-ldbl.h Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:16 Adhemerval Zanella
2022-06-09 13:13 Adhemerval Zanella
2022-06-03 14:02 Adhemerval Zanella
2022-05-13 14:16 Adhemerval Zanella
2022-05-12 19:30 Adhemerval Zanella
2022-05-10 18:20 Adhemerval Zanella
2022-04-29 14:00 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:35 Adhemerval Zanella
2022-03-11 17:19 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).