This is the mail archive of the
mailing list for the GCC project.
Re: avoid unnecessary register saves for setjmp
- From: Andrew Haley <aph at redhat dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Chris Lattner <sabre at nondot dot org>, Richard dot Earnshaw at arm dot com, Jim Wilson <wilson at specifixinc dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 27 Nov 2003 09:11:38 +0000
- Subject: Re: avoid unnecessary register saves for setjmp
- References: <Pine.LNX.email@example.com>
Chris Lattner writes:
> Zack Weinberg said:
> > 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.
True. But the obvious problem with this is that it places a burden on
small applications (boot ROMs, say) that might only have a single
setjmp/longjmp. These would be forced to include the unwinder and all
its baggage just for that.