This is the mail archive of the gcc@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: EH newbies howto


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


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