https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92417
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aoliva at gcc dot gnu.org, | |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I doubt there is anything that can be done here, the variable is a large array which isn't really optimized out, so there aren't and can't easily be any debug stmts/insns covering it, the debug location for the array is the stack object that holds the array in memory. All that happens is that the optimizers figure out some elements of the multi-dimensional array will certainly not be used and doesn't initialize them.