avoid unnecessary register saves for setjmp

Zack Weinberg zack@codesourcery.com
Thu Nov 27 18:23:00 GMT 2003


Andrew Pinski <pinskia@physics.uc.edu> writes:

> On Nov 27, 2003, at 00:01, Zack Weinberg wrote:
>> I'm going to take this opportunity to throw in a suggestion I've made
>> before, which is that setjmp/longjmp should - always, not just when
>> special variants are used - be converted by the front end into
>> invocations of the exception-unwinding facility, which gives us tons
>> more control.  (Obviously this only works with DWARF2 exception
>> handling.)
>
> But what about backwards compatibility aka use of setjmp/longjmp
> through libraries,

This is a major stumbling block, yes.

zw



More information about the Gcc-patches mailing list