This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: forcing gcc to save all caller saved registers
- From: Richard Henderson <rth at redhat dot com>
- To: Dietmar Maurer <dietmar at ximian dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 25 Nov 2002 17:43:08 -0800
- Subject: Re: forcing gcc to save all caller saved registers
- References: <1038056962.7237.16.camel@tequila>
On Sat, Nov 23, 2002 at 02:09:22PM +0100, Dietmar Maurer wrote:
> That way gcc save/restores all caller saved regs and generates exception
> tables able to restore all those registers (when compiled with
> -fextections)
>
> Is there any other way to accomplish the same result?
__builtin_unwind_init (). Does more work than you may have wanted
on targets with register windows, but should be close enough.
r~