Follow-up Comment #10, bug #57071 (project avr-libc):
Here is an updated version of the patch with the following changes:
* It also defines alias symbols for long double provided long double = float.
* It provides long double prototypes in math.h.
* Adds a new file common/alias.h which defines layout-dependent alias macros
(C + Asm).
* Turns double into float in the C-part of the lib (dtostr[ef], vfprintf,
atof, ...).
* vfprintf depends on sizeof ([long] double) and distinguishes between %lf and
%f if their layouts differ. However, we are running out of flags (which are
currently 8 at most).
* It fixes abs / labs implementation so they do no more conflict with
stdlib.h.
* Fixes a bunch of unrelated build warnings so it can be built with
CFLAGS=-Werror
(file #47938)
_______________________________________________________
Additional Item Attachment:
File name: math64-2.diff Size:71 KB
<https://savannah.nongnu.org/file/math64-2.diff?file_id=47938>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?57071>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/