[PATCH] add support for -imacros
commit6aaf20931568b7ffd7aae6fb433b8161d2e6c3c8
authorSam Ravnborg <sam@ravnborg.org>
Wed, 14 Sep 2005 20:15:28 +0000 (14 22:15 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 14 Sep 2005 20:57:36 +0000 (14 13:57 -0700)
treed2ab2af8aea63295b0d1b09f8f72d27541926b7e
parent46668905e465b54a6ece6135c147d14553fb3579
[PATCH] add support for -imacros

Gcc has two ways to specify on the commandline files
to be read before processign normal files:

 "-include file" will include file in ordinary way.

 "-imacros file" will include file but do not generate any output

gcc will include files specified with -imacros before files specified
with -include.

This adds some very basic support for -imacros, just duplicating the
code used for -include.

To obtain the real functionality we would have to build a list of
filenames specified, and process all files specifed with -imacros before
files specified with -include.

In -mm a patch is now included that uses -imacros, so applying following
patch will let us stay compatible with kernel source.  The last bit
deletes two references from lib.h that are there for no good reason.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib.c
lib.h