https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103348
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- #include <math.h> long double f(long double ld) { ld = fabsl(ld); return ld; }; Works correctly.