This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/67192] [6 Regression] Backward-goto in loop can get wrong line number


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]