This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.dg/debug/debug-[12].c failures on cmov targets
> Yes. At absolute minimum, the variable should still exist,
> but have no associated AT_location, meaning that it has been
> completely optimized away.
That's sort of what happens I think. The variable is still there, but since
the function has no body anymore, the debug info emitting code doesn't try
to emit debug info for what lies in the body.
> The lexical scope should *not* vanish.
Even when the body of the function itself vanishes?
--
Eric Botcazou