aboutsummaryrefslogtreecommitdiff
path: root/gcc/genmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genmatch.c')
-rw-r--r--gcc/genmatch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/genmatch.c b/gcc/genmatch.c
index aa291ec..c3f128c 100644
--- a/gcc/genmatch.c
+++ b/gcc/genmatch.c
@@ -4124,6 +4124,8 @@ parser::parse_c_expr (cpp_ttype start)
else if (token->type == end
&& --opencnt == 0)
break;
+ else if (token->type == CPP_EOF)
+ fatal_at (token, "unexpected end of file");
/* This is a lame way of counting the number of statements. */
if (token->type == CPP_SEMICOLON)