[PR debug/67192] Further fix C loops' back-jump location
commit7758d60897a73c70ff41838698b6fcfdb1346873
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Nov 2015 15:35:10 +0000 (9 15:35 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Nov 2015 15:35:10 +0000 (9 15:35 +0000)
treea60825da555a0c5971ceed078d9824a9407d97e9
parentc2bf2fb2fae39775d2056999be12dedb7ab128ee
[PR debug/67192] Further fix C loops' back-jump location

gcc/c/ChangeLog:

PR debug/67192
* c-typeck.c (c_finish_loop): For unconditional loops, set the
location of the backward-goto to the start of the loop body.

gcc/testsuite/ChangeLog:

PR debug/67192
* gcc.dg/guality/pr67192.c (f3, f4): New functions.
(main): Invoke them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230024 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr67192.c