Re: implementing exception handlers in a front end

2008-09-08 Thread Gaius Mulley
"Richard Guenther" <[EMAIL PROTECTED]> writes: > > to its language tree.def and gimplify this. Before I embark on > > this I'd like to ask whether using > > __builtin_longjmp/__builtin_setjmp is definitely the wrong way to > > go? > > Definitely. You will be not able to handle/throw exceptions

Re: implementing exception handlers in a front end

2008-07-09 Thread Gaius Mulley
"Richard Guenther" <[EMAIL PROTECTED]> writes: > > to its language tree.def and gimplify this. Before I embark on this > > I'd like to ask whether using __builtin_longjmp/__builtin_setjmp is > > definitely the wrong way to go? > > Definitely. You will be not able to handle/throw exceptions from

Re: implementing exception handlers in a front end

2008-07-09 Thread Richard Guenther
On Wed, Jul 9, 2008 at 3:32 PM, Gaius Mulley <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm currently trying to implement the exception handling in GNU > Modula-2 and was wondering which of the following two routes to use. > I was initially enthusiastic about using __builtin_setjmp/ > __builtin_longjmp

implementing exception handlers in a front end

2008-07-09 Thread Gaius Mulley
Hi, I'm currently trying to implement the exception handling in GNU Modula-2 and was wondering which of the following two routes to use. I was initially enthusiastic about using __builtin_setjmp/ __builtin_longjmp as Modula-2 exceptions can be implemented with these mechanisms - and it would also