[llvm-commits] [llvm-gcc-4.0] r43098 - /llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Fri Oct 19 03:21:13 PDT 2007


Hi Bill,

> > I think the objc front-end is emitting the setjmp/longjmp calls
> > itself directly, not relying on the rest of the GCC EH mechanisms...
> >
> Yes. That's my understanding. If you look at
> obj-act.c:next_sjlj_build_try_catch_finally(), it has a big comment
> showing what it converts try-catch-finalize to.

I see.  I wanted to examine how llvm-gcc-4.2 and mainline handle the testcase
2007-10-17-SJLJExceptions.m, but it doesn't compile with either:

$ gcc-4.2 -x objective-c 2007-10-17-SJLJExceptions.m -O2 -fexceptions -S -o -
        .file   "2007-10-17-SJLJExceptions.m"
2007-10-17-SJLJExceptions.m:3:34: error: Foundation/Foundation.h: No such file or directory
2007-10-17-SJLJExceptions.m:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
2007-10-17-SJLJExceptions.m:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bork’

Ciao,

Duncan.

PS: the run line has "-arch i386".  Is that right?  My compiler doesn't recognize it.




More information about the llvm-commits mailing list