diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-08-23 18:29:53 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-08-23 18:29:53 +0000 |
commit | bbdac7d00069c7bff149329b6cae418b1153f05d (patch) | |
tree | 3fe31f794ed65258db6a4470f10e576076b9829d /gcc/cpplex.c | |
parent | d8eceea40c08e7f6edfdfa626261196f3ed984bf (diff) | |
download | gcc-bbdac7d00069c7bff149329b6cae418b1153f05d.zip gcc-bbdac7d00069c7bff149329b6cae418b1153f05d.tar.gz gcc-bbdac7d00069c7bff149329b6cae418b1153f05d.tar.bz2 |
cpphash.h (IN_I): New flag for directive table.
* cpphash.h (IN_I): New flag for directive table.
* cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
#pragma with IN_I.
(_cpp_check_directive): If -fpreprocessed, execute directives
marked with IN_I. Issue no warnings in this case.
* cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
From-SVN: r35918
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 7b07944..779bcf0 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -3157,6 +3157,11 @@ _cpp_get_token (pfile) be taken as a control macro. */ pfile->potential_control_macro = 0; + /* If we are rescanning preprocessed input, no macro expansion or + token pasting may occur. */ + if (CPP_OPTION (pfile, preprocessed)) + return token; + old_token = token; /* See if there's a token to paste with this one. */ |