[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-sparse
Subject:    cgcc: please support -iwithprefix
From:       "H. Peter Anvin" <hpa () zytor ! com>
Date:       2014-01-18 0:22:22
Message-ID: 52D9C93E.80504 () zytor ! com
[Download RAW message or body]

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
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic