https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103348
--- Comment #3 from jacob navia <jacob at jacob dot remcomp.fr> --- 1) The complete program is as follows: #include <math.h> int main(void) { long double ld = -2.3L; ld = fabs(ld); } Compiler flags gcc -S -c -std=c99 tafbs1.c As per standard c99 fabs is a generic function. After your remark, gcc generates correct code when I explicitly include <tgmath.h> This is surprising > Le 21 nov. 2021 à 14:25, pinskia at gcc dot gnu.org > <gcc-bugzi...@gcc.gnu.org> a écrit : > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103348 > > Andrew Pinski <pinskia at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|UNCONFIRMED |WAITING > Ever confirmed|0 |1 > Last reconfirmed| |2021-11-21 > > --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > Full testcase? > Is this c or c++? > Also if this is c, you should be using fabsl for long double. > > -- > You are receiving this mail because: > You reported the bug.