[PATCH, newlib/ARM] Fix cpp invocation for C++ in nano spec
Thomas Preudhomme
thomas.preudhomme@foss.arm.com
Tue Feb 7 16:58:00 GMT 2017
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?
Best regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_nano_spec_cpp_invocation.patch
Type: text/x-patch
Size: 1169 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170207/dde768ce/attachment.bin>
More information about the Newlib
mailing list