[Bug debug/105389] New: variable displayed as available at -O1 and -O3 but as optimized out at -Og and with an incorrect value at -O2

2022-04-26 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105389 Bug ID: 105389 Summary: variable displayed as available at -O1 and -O3 but as optimized out at -Og and with an incorrect value at -O2 Product: gcc Version: 12.0

[Bug debug/105261] schedule-insns2 and ipa-sra make alive constant variables not available

2022-04-13 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105261 --- Comment #1 from Cristian Assaiante --- The gdb bug report can be found at: https://sourceware.org/bugzilla/show_bug.cgi?id=29060

[Bug debug/105261] New: schedule-insns2 and ipa-sra make alive constant variables not available

2022-04-13 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105261 Bug ID: 105261 Summary: schedule-insns2 and ipa-sra make alive constant variables not available Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug debug/105249] schedule-insns2 makes a variable not available and associates the code that assigns it to a different function frame

2022-04-12 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105249 --- Comment #1 from Cristian Assaiante --- This issue is similar to bug 105036 but it appears on different optimization levels and, differently from the previously reported issue, it has a much simpler code structure since we have only a call to

[Bug debug/105249] New: schedule-insns2 makes a variable not available and associates the code that assigns it to a different function frame

2022-04-12 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105249 Bug ID: 105249 Summary: schedule-insns2 makes a variable not available and associates the code that assigns it to a different function frame Product: gcc Version

[Bug debug/105248] New: Missing value or location attribute for constant live variable likely caused by tree-dse at -O1/-O2/-O3

2022-04-12 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105248 Bug ID: 105248 Summary: Missing value or location attribute for constant live variable likely caused by tree-dse at -O1/-O2/-O3 Product: gcc Version: 12.0 Status: UNCONF

[Bug debug/105176] New: -fdce causes a non-dead variable to show as optimized out when debugging only at -Os/Oz

2022-04-06 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105176 Bug ID: 105176 Summary: -fdce causes a non-dead variable to show as optimized out when debugging only at -Os/Oz Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug debug/105161] New: variable constant-folded in its uses appears as optimized out depending on where it is assigned

2022-04-05 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105161 Bug ID: 105161 Summary: variable constant-folded in its uses appears as optimized out depending on where it is assigned Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug debug/105145] New: dropped DWARF location information at -O1/-O2/-O3 upon ftree-dse

2022-04-04 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105145 Bug ID: 105145 Summary: dropped DWARF location information at -O1/-O2/-O3 upon ftree-dse Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug debug/105124] -Og loses DWARF value for a reassigned variable that is kept instead by other optimization levels

2022-04-01 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105124 --- Comment #1 from Cristian Assaiante --- We suspect this may be related to bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105108 but this time the behaviors at -O1 and -Og are different

[Bug debug/105124] New: -Og loses DWARF value for a reassigned variable that is kept instead by other optimization levels

2022-04-01 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105124 Bug ID: 105124 Summary: -Og loses DWARF value for a reassigned variable that is kept instead by other optimization levels Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug debug/105108] incomplete/incorrect DWARF information at -O1 and -Og after inlining a function returning a constant

2022-03-31 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105108 --- Comment #9 from Cristian Assaiante --- Created attachment 52728 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52728&action=edit Executable file at -Og with l_144 = 8

[Bug debug/105108] incomplete/incorrect DWARF information at -O1 and -Og after inlining a function returning a constant

2022-03-31 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105108 --- Comment #8 from Cristian Assaiante --- (In reply to Jakub Jelinek from comment #3) > And I certainly can't reproduce the wrong-debug issue you're talking about. > If I change it to char l_144 = 8; > then optimized dump has: >[local count

[Bug debug/105108] New: incomplete/incorrect DWARF information at -O1 and -Og after inlining a function returning a constant

2022-03-30 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105108 Bug ID: 105108 Summary: incomplete/incorrect DWARF information at -O1 and -Og after inlining a function returning a constant Product: gcc Version: 12.0 Status: UNCONFIRM

[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) i

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

2022-03-23 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105036 Bug ID: 105036 Summary: Missing variables when debugging due to overlapping ranges after unrolling, instruction scheduling, and inlining at -O3 Product: gcc Vers

[Bug debug/105007] Missing variables at -O2/O3 likely caused by incorrect debug info after inlining

2022-03-21 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105007 --- Comment #1 from Cristian Assaiante --- The gdb bug report can be found at: https://sourceware.org/bugzilla/show_bug.cgi?id=28987

[Bug debug/105007] New: Missing variables at -O2/O3 likely caused by incorrect debug info after inlining

2022-03-21 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105007 Bug ID: 105007 Summary: Missing variables at -O2/O3 likely caused by incorrect debug info after inlining Product: gcc Version: 12.0 Status: UNCONFIRMED Severit

[Bug debug/104938] New: Possibly wrong location definition in DWARF with -ftree-cpp at -Og only

2022-03-15 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104938 Bug ID: 104938 Summary: Possibly wrong location definition in DWARF with -ftree-cpp at -Og only Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug debug/104891] New: Possibly wrong location definition in DWARF with -fschedule-insns2 at -O2/-O3

2022-03-12 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104891 Bug ID: 104891 Summary: Possibly wrong location definition in DWARF with -fschedule-insns2 at -O2/-O3 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug debug/104549] Missing variable at O2/O3 likely caused by -fearly-inlining

2022-02-17 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549 --- Comment #4 from Cristian Assaiante --- We have tested also multiple versions of gdb. With versions 9.2 and 11.2 we have the same behavior: variable i is visible for gcc4 and gcc7 and not visible for more recent gcc versions. With version 10

[Bug debug/104549] Missing variable at O2/O3 likely caused by -fearly-inlining

2022-02-17 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549 --- Comment #3 from Cristian Assaiante --- I have tested multiple older gcc versions (4.3, 7.5, 9.4, 11.2) and apparently the variable is visible in 4.3 and 7.5. The asm for the main function of the binary from gcc7.5: main: .LFB1: # a.

[Bug debug/104549] New: Missing variable at O2/O3 likely caused by -fearly-inlining

2022-02-15 Thread assaiante at diag dot uniroma1.it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549 Bug ID: 104549 Summary: Missing variable at O2/O3 likely caused by -fearly-inlining Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal P