[Bug debug/67192] [6 Regression] Backward-goto in loop can get wrong line number
krebbel at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 9 15:35:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67192
--- Comment #24 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Mon Nov 9 15:35:10 2015
New Revision: 230024
URL: https://gcc.gnu.org/viewcvs?rev=230024&root=gcc&view=rev
Log:
[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.
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/guality/pr67192.c
More information about the Gcc-bugs
mailing list