nvptx mkoffload: Fix logic error in skipping of "strange" tokens.

gcc/
	* config/nvptx/mkoffload.c (parse_file): Fix logic error in
	skipping of "strange" tokens.

From-SVN: r220769
This commit is contained in:
Thomas Schwinge 2015-02-17 19:13:32 +01:00 committed by Thomas Schwinge
parent 26f9331258
commit 6f3c1d38bf
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
* config/nvptx/mkoffload.c (parse_file): Fix logic error in
skipping of "strange" tokens.
2015-02-17 Jeff Law <law@redhat.com>
* tree-vrp.c (identify_jump_threads): Use last_stmt. Remove

View File

@ -755,8 +755,9 @@ parse_file (Token *tok)
if (comment)
append_stmt (&fns, comment);
while (tok->kind && !tok->end)
do
tok++;
while (tok->kind && !tok->end);
}
return tok;
}