Port-alpha archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: static link csh/tcsh dumps core

I think we hit a corner case of section "3.2.3 Link-Time Optimization"
from the referenced paper.

In this case (static linking) caller knows that the callee shares the
same GP value, so relies on that being present on return from the setjmp.

We do not need to save/restore the GP value of the setjmp, but must make
sure that longjmp() fills the ucontext GP value with its own GP before
calling setcontext().

Does this make sense?


Home | Main Index | Thread Index | Old Index