https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114101
--- Comment #7 from dave.anglin at bell dot net --- On 2024-02-25 4:04 p.m., dave.anglin at bell dot net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114101 > > --- Comment #6 from dave.anglin at bell dot net --- > The <math.h.> for HP-UX doesn't do this sort of thing: >> extern double acos(double __x) __ATTR_CONST__; >> #define acosf acos /**< The alias for acos(). */ >> >> Technically, avr doesn't have a proper acosf. If float and double differ, >> acos >> won't handle exceptional >> values correctly for acosf. So, I think the AC_DEFINEs for the float >> variants >> should be removed or >> conditioned on some libc version. > With my proposed patch, the avr defines for the float variants in > crossconfig.m4 can be removed > and the code will fallback to using the float stubs. But I need to move the undefs for the C99 math funcs forward before the declarations.