This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: EH newbies howto
- From: Nix <nix at esperi dot demon dot co dot uk>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 09 Jul 2002 00:41:59 +0100
- Subject: Re: EH newbies howto
- References: <20020708170022.GA10225@redhat.com>
On Mon, 8 Jul 2002, Aldy Hernandez yowled:
> this is a document by will cohen, who agreed to share it. it is based on
> an original doc by andrew macleod.
Lovely document it is too. I almost feel I understand this wondrous
black magic now.
> set (mem:SI
> (plus:SI (reg:SI SP) (const_int 8))
> (reg:SI 8 ))
One space too many :) (there's a few more of these further down.)
> __Unwind_RaiseException() is processed in a special way. First, it is
> compiled such that every possible preserved register is saved in the
> prologue and restored in the epilogue.
I've looked for fifteen minutes or so and I can't find anything
special in targets or in the compiler proper which causes this to
happen. How's this magic done?
--
`There's something satisfying about killing JWZ over and over again.'
-- 1i, personal communication