Warn about undefined preprocessor symbols at expansion time, not parse time
commitf73ca60933f0145696081b7727f172a8f21e148e
authorLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 18:13:56 +0000 (9 11:13 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 18:13:56 +0000 (9 11:13 -0700)
tree9397a6a3a850816017abe726ab1cace40b7399af
parent7a312ea52f7bac609b385b047095d08fd0f5d803
Warn about undefined preprocessor symbols at expansion time, not parse time

This means that we can do

#if defined(TOKEN) && TOKEN > 1

and we will _not_ warn even with -Wundef, since the "TOKEN > 1" test
will never even be expanded if TOKEN isn't defined.

Al Viro gets credit for the algorithm changes, I just did the actual coding.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
expand.c
expression.c
pre-process.c
symbol.c
symbol.h
token.h