[PATCH, newlib/ARM] Fix elf-nano.specs to work without -save-temps

Corinna Vinschen vinschen@redhat.com
Wed Feb 15 15:32:00 GMT 2017


On Feb 15 11:32, Thomas Preudhomme wrote:
> Hi,
> 
> it turns out that the changes in
> af272aca591fe1dc0f1be64ae5bda147ea98a047 only works when using gcc/g++
> with -E or -save-temps, otherwise newlib's newlib.h gets used even if
> -specs=nano.specs is specified [1]. This is because the driver only
> use cpp_options spec for the external cpp tool, not for the integrated
> one.
> 
> [1] Guess the options I used to test the change...
> 
> This patch uses instead cpp_unique_options which is used in all cases:
> it is used directly when the integrated preprocessor is used, and
> indirectly by expansion of cpp_options otherwise.
> 
> Tested by running the following C program when building it with gcc or g++
> with and without -specs=nano.specs and/or -save-temps:

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170215/85a116b5/attachment.sig>


More information about the Newlib mailing list