[PR debug/67192] Fix C loops' back-jump location
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Mon, 9 Nov 2015 15:31:32 +0000 (15:31 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 9 Nov 2015 15:31:32 +0000 (15:31 +0000)
commitf6b0b3db86a579ae246409aafb1e49005cfebc2c
tree212fe5f1a13669d66d4d51f3f41b7971c1026e86
parent0e657ecb98b8413b41975ddfce8e240186720977
[PR debug/67192] Fix C loops' back-jump location

gcc/c/ChangeLog:

PR debug/67192
* c-parser.c (c_parser_while_statement): Finish the loop before
parsing ahead for misleading indentation.
(c_parser_for_statement): Likewise.

gcc/testsuite/ChangeLog:

PR debug/67192
* gcc.dg/guality/pr67192.c: New test.

From-SVN: r230023
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr67192.c [new file with mode: 0644]