This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
vfprintf.c patch
- To: joel dot sherrill at OARcorp dot com
- Subject: vfprintf.c patch
- From: Doug Evans <dje at transmeta dot com>
- Date: Fri, 1 Dec 2000 09:14:58 -0800 (PST)
- Cc: newlib at sources dot redhat dot com
- References: <3A27ADE9.8AC663D9@OARcorp.com>
Joel Sherrill writes:
>
> Minor modification to trick gcc into avoiding referencing
> a floating point register unless someone really tries
> to print a floating point number. On the PowerPC gcc
> will save a FP register all the time without this patch.
>
> The ideal solution would be to break out the FP printing
> into a separate function but that was more risky to implement.
Already done, but the other way around.
IIRC, see iprintf vs printf.