https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109818
--- Comment #32 from Janez Zemva <janezz55 at gmail dot com> --- I resolved this issue by porting openlibm over to djgpp (some hacks and typedef float float_t;, ... were necessary). The fix on the side of gcc might have been a more thorough analysis of what is available in math.h and then making a suitable <cmath> based on that analysis. For me, this issue is resolved, but the problem of how gcc handles non-compliant standard c library implementations will probably pop up again.