This is the mail archive of the gcc-patches@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] Fix ppc64 unwinding problem


On Mon, Jul 14, 2003 at 05:57:26PM -0400, David Edelsohn wrote:
> 	I guess this is okay with me, but I have one question:
> 
> 	This is adding a slight cost (an extra store of r2) for every
> function that *might* use exception handling, even if an exception never
> is thrown, correct?

No. All the changes should be limited to unwind-dw2.o
(__builtin_unwind_init () is only called from unwind-dw2.c,
likewise __builtin_eh_return (), rs6000_emit_{prologue,epilogue}
is only different if current_function_calls_eh_return
and MD_FROB_UPDATE_CONTEXT is only used in unwind-dw2.c).
r2 restoring is simply done during unwinding, not in a second
phase during __builtin_eh_return.

	Jakub


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