[Bug debug/105036] Missing variables when debugging due to overlapping ranges after unrolling, instruction scheduling, and inlining at -O3

2022-03-24 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105036 --- Comment #2 from Cristian Assaiante --- Indeed, we understand some information may be lost for the sake of keeping debug info correct. We reported this in the first place because, besides the missing variables, a wrong function (i.e., foo)

[Bug debug/105036] Missing variables when debugging due to overlapping ranges after unrolling, instruction scheduling, and inlining at -O3

2022-03-24 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105036 --- Comment #1 from Richard Biener --- I think it's expected that you lose some debugging info when optimizing. GCC tries hard to avoid _wrong_ debug info which often results in us dropping things more eagerly. GCC also has the intent to