https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114101
--- Comment #2 from dave.anglin at bell dot net --- On 2024-02-25 2:17 p.m., redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114101 > > Jonathan Wakely <redi at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > See Also| |https://gcc.gnu.org/bugzill > | |a/show_bug.cgi?id=79700 The patch I posted allows HP-UX targets to make use of the above change. I defined _GLIBCXX_USE_C99_MATH_FUNCS and _GLIBCXX_USE_BUILTIN_FMAF in config/os/hpux/os_defines.h: +// Import C99 functions in <math.h> in <cmath> in namespace std in C++11. +// Missing functions are handled by stubs. The fma, nexttoward, scalbln +// and tgamma are missing in HP-UX 11. Many float variants are supported. +#define _GLIBCXX_USE_C99_MATH_FUNCS 1 +#define _GLIBCXX_USE_C99_MATH_TR1 1 Had to add double stubs for fma, nexttoward, scalbln and tgamma to complete the set of required functions. Currently, _GLIBCXX_USE_C99_MATH_FUNCS and _GLIBCXX_USE_C99_MATH_TR1 are only enabled when configure detects the full set of C99 functions.
