From 6d18adbc2c00b2919cbf6b59219a2287e6feecd7 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 29 Jul 2001 17:27:57 +0000 Subject: cppexp.c (parse_defined): Always record the macro name. * cppexp.c (parse_defined): Always record the macro name. (lex): Don't worry about identifiers, or special-case CPP_NOT here. (_cpp_parse_expr): Figure out at the end of the routine whether we saw a valid !defined() expression. * cppfiles.c (stack_include_file): Update for mi_valid. (_cpp_pop_file_buffer): Similarly. * cpplex.c (_cpp_lex_token): Similarly. * cpphash.h (enum mi_state, enum mi_ind, mi_state, mi_if_not_defined, mi_lexed): Remove. (mi_valid): New. * cpplib.c (do_if): Simplify. (do_endif, push_conditional, _cpp_handle_directive): Update for renaming of mi_state to mi_valid. * cpp.texi: Add index entries for digraphs, and add comment that C++ refers to them as alternative tokens. From-SVN: r44459 --- gcc/cppmacro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cppmacro.c') diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index e630850106a..a4569a3e073 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -953,7 +953,7 @@ cpp_get_token (pfile, token) cpp_hashnode *node = token->val.node; /* Macros invalidate controlling macros. */ - pfile->mi_state = MI_FAILED; + pfile->mi_valid = false; if (node->flags & NODE_BUILTIN) { -- cgit v1.2.1