This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]