[Bug debug/92468] gcc generates wrong debug information at -O2 and -O3

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 16 07:34:53 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92468

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-03-16
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  THe issue is there isn't any real instruction at line 20 since
the inner loop is unrolled completely and the if (g) stmt is elided as false.
The f loop is also unrolled completely and debug stmts and breakpoints
align with the case where k is one.


More information about the Gcc-bugs mailing list