[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] Missing variable at O2/O3 likely caused by -fearly-inlining

2022-02-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549 Jakub Jelinek changed: What|Removed |Added CC||aoliva at gcc dot gnu.org --- Comment #

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

2022-02-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1