aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-08-23 18:29:53 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-08-23 18:29:53 +0000
commitbbdac7d00069c7bff149329b6cae418b1153f05d (patch)
tree3fe31f794ed65258db6a4470f10e576076b9829d /gcc/cpplex.c
parentd8eceea40c08e7f6edfdfa626261196f3ed984bf (diff)
downloadgcc-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.c5
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. */