From: Thomas Schwinge Date: Tue, 17 Feb 2015 18:13:32 +0000 (+0100) Subject: nvptx mkoffload: Fix logic error in skipping of "strange" tokens. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f3c1d38bf9cd954a1e9747bcd2c711736b82fb6;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dcd3d26157f..e52e7cf2054 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-17 Thomas Schwinge + + * config/nvptx/mkoffload.c (parse_file): Fix logic error in + skipping of "strange" tokens. + 2015-02-17 Jeff Law * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove diff --git a/gcc/config/nvptx/mkoffload.c b/gcc/config/nvptx/mkoffload.c index 739aee8af85..96341b8bc4d 100644 --- a/gcc/config/nvptx/mkoffload.c +++ b/gcc/config/nvptx/mkoffload.c @@ -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; }