YASH BHIWANIA commented on a discussion: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5434#note_142162


Thanks, @rurban! I appreciate the go-ahead. That makes sense—I definitely want 
to avoid the "headache" of platform inconsistencies you mentioned.

To address @joel's concern about GCC potentially falling back to missing 
external symbols, I plan to implement a tiered fallback strategy in `safeclib`:

**Configure Check:** First, check if the system provides `isinf` / `isinfl`.

**Compiler Check:** If not, try using `__builtin_isinf` (if the compiler 
confirms it can be inlined).

**Hard Fallback:** As a failsafe, I'll implement a local helper that checks the 
IEEE 754 exponent bits directly.

This should guarantee it works on RTEMS (and other bare-metal targets) without 
forcing a dependency on Newlib updates. I will include this detailed plan in my 
GSoC proposal soon as well !

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5434#note_142162
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