https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122020
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |MOVED
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The bug is in libdfp and not libgcc.
as I mentioned __builtin_isnan works
Without libdfp I get:
example.cpp:(.text+0x106): undefined reference to `__isnand32'
/cefs/62/62a428063ff5c0631e4c7f9a_gcc-trunk-20250921/bin/../lib/gcc/x86_64-linux-gnu/16.0.0/../../../../x86_64-linux-gnu/bin/ld:
example.cpp:(.text+0x1b1): undefined reference to `__isnand64'
/cefs/62/62a428063ff5c0631e4c7f9a_gcc-trunk-20250921/bin/../lib/gcc/x86_64-linux-gnu/16.0.0/../../../../x86_64-linux-gnu/bin/ld:
example.cpp:(.text+0x270): undefined reference to `__isnand128'
So those are the ones which implement isnan inside libdfp.