All of lore.kernel.org
 help / color / mirror / Atom feed
* cgcc: please support -iwithprefix
@ 2014-01-18  0:22 H. Peter Anvin
  0 siblings, 0 replies; only message in thread
From: H. Peter Anvin @ 2014-01-18  0:22 UTC (permalink / raw)
  To: Linux-Sparse

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-18  0:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-18  0:22 cgcc: please support -iwithprefix H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.