From: "H. Peter Anvin" <hpa@zytor.com>
To: Linux-Sparse <linux-sparse@vger.kernel.org>
Subject: cgcc: please support -iwithprefix
Date: Fri, 17 Jan 2014 16:22:22 -0800 [thread overview]
Message-ID: <52D9C93E.80504@zytor.com> (raw)
When doing embedded work, like kernels or other nonstandard
environments, we want to exclude the standard library with -nostdinc,
but that also excludes header files intrinsic to the *compiler* such as
<stdarg.h>.
gcc uses the option -iwithprefix for that, in particular "-iwithprefix
include" adds those compiler-specific header files back into the include
path. cgcc doesn't seem to understand that and instead interprets the
option argument as an additional file.
It is unsual in gcc for an option argument to be separate, but it isn't
unique:
-idirafter DIR
-include FILE -imacros FILE
-iprefix FILE -iwithprefix DIR
-iwithprefixbefore DIR -isystem DIR
-imultilib DIR -isysroot DIR
-Xpreprocessor OPTION
-Xassembler OPTION
-T SCRIPT
-Xlinker OPTION
reply other threads:[~2014-01-18 0:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52D9C93E.80504@zytor.com \
--to=hpa@zytor.com \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).