PATCH: -fomit-frame-pointer and exceptions or setjmp/longjmp

Richard Henderson rth@redhat.com
Tue Jul 2 19:45:00 GMT 2002


On Tue, Jul 02, 2002 at 05:08:49AM +0600, Denis Zaitsev wrote:
> The place, where the call frame info goes astray, is loading of the
> PIC register.  It consists of a call for a "just after the call" point
> and then pop pc's value there.  The call must be considered just as it
> would be push(pc), but instead it asumed to be a usual call, which
> leaves the stack pointer the same after return.  And it is an error.

While this patch may or may not be correct, it is definitely
the only problem.  See PR 6678 for an example that does not
require -fpic at all.

In any case, I won't apply this.  I'd rather see the POP insn
merged into the prologue_get_pc pattern.


r~



More information about the Gcc mailing list