Jeremy Lorelli created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/937

Project:Branches: jjl77/rtems:pr-m68k-ldbl-eq-dbl-fix to rtems/rtos/rtems:main
Author:   Jeremy Lorelli




## Summary

bsps/m68k: Add -D_LDBL_EQ_DBL=1 workaround to ABI_FLAGS

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.


Related newlib mailing list discussion: 
https://inbox.sourceware.org/newlib/[email protected]/

<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/937
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to