Commit 6f3c1d38 by Thomas Schwinge Committed by Thomas Schwinge

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
parent 26f93312
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> 2015-02-17 Jeff Law <law@redhat.com>
* tree-vrp.c (identify_jump_threads): Use last_stmt. Remove * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
......
...@@ -755,8 +755,9 @@ parse_file (Token *tok) ...@@ -755,8 +755,9 @@ parse_file (Token *tok)
if (comment) if (comment)
append_stmt (&fns, comment); append_stmt (&fns, comment);
while (tok->kind && !tok->end) do
tok++; tok++;
while (tok->kind && !tok->end);
} }
return tok; return tok;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment