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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end
            Summary|miscompilation of a program |large array in a dead-code
                   |with large array in a       |is not optimized away at
                   |dead-code                   |-O0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I don't think this is miscompiled but rather you just run out of stack space
because gcc at -O0 does not remove the the otherwise unused array.

This is by design.
Yes gcc could be improved to remove it but it is not a miscompile.

Reply via email to