scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
2006-02-25 Juergen Weigert <jw@suse.de> Richard Guenther <rguenther@suse.de> * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r111440
This commit is contained in:
parent
eaf618e3a9
commit
332cf1b33a
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-02-25 Juergen Weigert <jw@suse.de>
|
||||
Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
|
||||
|
||||
2006-02-24 Adam Nemet <anemet@caviumnetworks.com>
|
||||
|
||||
* combine.c (gen_lowpart_or_truncate): Call
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue