aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 932f222..891b312 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -3309,7 +3309,7 @@ do_undef (pfile, keyword)
name[limit - buf] = '\0';
token = get_directive_token (pfile);
- if (token != CPP_VSPACE)
+ if (token != CPP_VSPACE && token != CPP_POP)
{
cpp_pedwarn (pfile, "junk on line after #undef");
skip_rest_of_line (pfile);