mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-04 12:41:34 +00:00
This is to workaround a difficult bug in newlib related to configure-time generation of this flag in newlib.h. Since there is no multi-lib mechanism for headers, _LDBL_EQ_DBL ends up in newlib.h, which is installed architecture wide. The default -mcpu= setting for the 68k toolchain does support long double, so this flag is not defined in newlib.h. However, Coldfire targets lack support for long double, leading to some undesirable behavior in the C/C++ standard headers. ieeefp.h has numerous sanity checks that will #error and <cmath> from C++ will fail to compile. It doesn't look like this issue will ever be fixed in newlib, so we'll just define this manually as a workaround.