Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?

Daniel Jacobowitz
2008-01-10T14:06:00Z

On Thu, Jan 10, 2008 at 11:58:07AM +0100, Mark Kettenis wrote:
> If generating the right location information for -O0 is too difficult,
> perhaps the compiler should make life easier for itself and disable
> scheduling instructions into the prologue?

It already doesn't do that at -O0.

This part of the thread was about not skipping prologues at all; we
can't do that even with GCC, because the debug info says arguments
live in their stack slots. But they're in different incoming
locations until the end of the prologue (registers or other stack
slots). I think we'd want debug info which only specified the
incoming locations and the local stack slots, not every load into a
register - which is probably what GCC tries to produce.

--
Daniel Jacobowitz
CodeSourcery