M68k exceptions code.

Geoff Keating geoffk@envy.cygnus.com
Fri Dec 31 20:54:00 GMT 1999


"Alexander V. Komarov" <sasha@mera.ru> writes:

> Did anyone succeed with compiling exceptions on m68k?

Exceptions worked fine for me in m68k-elf in the CVS archive not two
weeks ago.

> if not, could You tell me which exception handling way is less machine
> specific - PC relative (__throw)
> or setjump-longjump ? Both does not work in my case, but __throw is
> killed when it takes the pointer of a label (btw, how it works?), and i
> did not dig sj-lj...
> (The result of this work will be working gcc-2.95.x compiler in uClinux
> enviroment)

You should find that if you are using ELF, and if you are calling the
.init section in your crt0, that exception handling works in the
current CVS, using DWARF-based exceptions.  If you're _not_ using ELF,
I would strongly suggest you switch.

It may well be broken in the released 2.95.x versions, I would suggest
using the CVS or a recent snapshot.

-- 
- Geoffrey Keating <geoffk@cygnus.com>



More information about the Gcc-bugs mailing list