aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
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. */