Network Services | ntp: Avoid including broken (on Coldfire) ieeefp.h header (!24)

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Mar 19 17:24:16 UTC 2025



Kinsey Moore created a merge request: https://gitlab.rtems.org/rtems/pkg/rtems-net-services/-/merge_requests/24

Project:Branches: opticron/rtems-net-services:br6-backport-ieefp to rtems/pkg/rtems-net-services:6
Author:   Kinsey Moore
Assignee: Kinsey Moore



## Summary

ntp: Avoid including broken (on Coldfire) ieeefp.h header

The LDBL_EQ_DBL define in newlib.h is determined at GCC/newlib configure
time and is shared between all 68k targets. The default 68k target for GCC
supports long double (12 bytes), while the Coldfire ISA does not. This
results in LDBL_EQ_DBL being undefined for Coldfire targets, even though
double and long double are indeed equal. ieeefp.h has sanity checks that
fail if LDBL_EQ_DBL is not defined when sizeof(long double) ==
sizeof(double).

A workaround is to avoid including this header. In this case, it doesn't
seem to be a necessary include anyway.

Closes #15


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

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-net-services/-/merge_requests/24
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250319/282261df/attachment-0001.htm>


More information about the bugs mailing list