This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: RFD: selective linking of floating point support for *printf / *scanf
- From: Joern Rennecke <joern dot rennecke at embecosm dot com>
- To: Joey Ye <joey dot ye dot cc at gmail dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>, Joerg Wunsch <joerg_wunsch at uriah dot heep dot sax dot de>, avr-libc-dev at nongnu dot org, Andrew Burgess <andrew dot burgess at embecosm dot com>, "Thomas Preud'homme" <Thomas dot Preudhomme at arm dot com>, "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 7 Oct 2014 08:33:17 +0100
- Subject: Re: RFD: selective linking of floating point support for *printf / *scanf
- Authentication-results: sourceware.org; auth=none
- References: <CAMqJFCpWKXVmmc-YLKf9XO6H8C_YnTEcgzkJAidE21MirJbi-w at mail dot gmail dot com> <CAL0py243BA2K7BqHqqyQBPkf+8FiKTqtJgZ-cN9BpgEaRafH_g at mail dot gmail dot com>
On 18 August 2014 11:35, Joey Ye <joey.ye.cc@gmail.com> wrote:
> Joern, there is https://sourceware.org/ml/newlib/2014/msg00166.html,
> which is already in newlib mainline. I think it solves the same issue
> in a slight different approach.
>
> Does it work for you?
No, this is completely besides the point. avr-libc has had manual
printf variant selection
(requiring -u and -l options to the linker) for quite some time.
But this requirement for manual selection means that lots of dejagnu
tests fail; it also
means that a lot of software fails to work properly out of the box.
The point of my patch is to do an automatic selection inasmuch as this
is possible
with gcc noting where floating point is being used from looking at
*printf* / *scanf* calls in
isolation and passing the information gained to the linker to figure
out which implementation
to use.