[PATCH, newlib/ARM] Fix cpp invocation for C++ in nano spec

Corinna Vinschen vinschen@redhat.com
Mon Feb 13 08:20:00 GMT 2017


On Feb  7 16:58, Thomas Preudhomme wrote:
> Hi,
> 
> The changes in c028685518a261f6d0dab0d7ed15f9570ab9b3d0 to use
> newlib-nano's include directory work for cc1 but not cc1plus. cc1plus
> comes with its own cpp spec which does not have a name attached to it.
> 
> This patch uses the renaming trick on cpp_options instead of cpp, as
> cpp_options is used both by cc1 and cc1plus.
> 
> 
> Tested with a small C program including string.h. Preprocess annotations
> show that both when using -x c and -x c++ newlib'nano's newlib.h gets
> chosen.
> 
> Is this ok for master?

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/20170213/6ed1e0c5/attachment.sig>


More information about the Newlib mailing list