aboutsummaryrefslogtreecommitdiff
path: root/gcc/scan-decls.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/scan-decls.c')
-rw-r--r--gcc/scan-decls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/scan-decls.c b/gcc/scan-decls.c
index 86fd404..d7b592bd 100644
--- a/gcc/scan-decls.c
+++ b/gcc/scan-decls.c
@@ -202,6 +202,8 @@ scan_decls (cpp_reader *pfile, int argc ATTRIBUTE_UNUSED,
parameter list */
while (token->type != CPP_SEMICOLON && token->type != CPP_EOF)
token = get_a_token (pfile);
+ if (token->type == CPP_EOF)
+ return 0;
goto new_statement;
}
break;