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: avoid unnecessary register saves for setjmp


Richard Kenner wrote:
Well, you certainly need to save all the caller-saved registers if there
are any nonlocal gotos (which you have in the Ada exception case), but,
as I understand this change, it still does.

This is handled by a different piece of code that I did not touch. reload() has a check for current_function_nonlocal_label, and if true, it marks call-saved registers as live, so that they will be saved and restored.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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