From 6bc301672bfbde618d4ec02e51e6e2cbadd4ac1e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 5 Dec 2024 08:05:04 +0800 Subject: math: Remove __XXX math functions from installed math.h [BZ #32418] Since libm doesn't export __XXX math functions, don't declare them in the installed math.h by adding to declare __XXX math functions internally for glibc build. This fixes BZ #32418. Signed-off-by: H.J. Lu Reviewed-by: Sam James --- include/bits/mathcalls-macros.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/bits/mathcalls-macros.h (limited to 'include/bits') diff --git a/include/bits/mathcalls-macros.h b/include/bits/mathcalls-macros.h new file mode 100644 index 0000000..bd997bd --- /dev/null +++ b/include/bits/mathcalls-macros.h @@ -0,0 +1,12 @@ +#include + +/* The file contains the prototypes for all the + actual math functions. These macros are used for those prototypes, + so we can easily declare each function as both `name' and `__name', + and can declare the float versions `namef' and `__namef' for internal + use. */ + +#undef __MATHDECLX +#define __MATHDECLX(type, function,suffix, args, attrib) \ + __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \ + __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) -- cgit v1.1