[cfe-dev] One more EH patch...

Chris Lattner clattner at apple.com
Mon May 11 13:43:37 PDT 2009


On May 11, 2009, at 1:00 PM, David Chisnall wrote:

>>
>> This may make sense for Gnu runtime. But for us, objc runtime library
>> always
>> supports the eh. Any error reporting should be done on the GNU side.
>
> Are you sure about this?  I just compiled a trivial test function  
> containing @throw, @catch and @finally with -emit-llvm -fnext- 
> runtime and -fobjc2, but without -fexceptions, and it emitted  
> bitcode containing references to the LLVM exception intrinsics in a  
> function marked as nounwind.  This is exactly what happens on the  
> GNU runtime without -fexceptions, and it results in LLVM not  
> emitting the unwinding info for the function and the unwind library  
> being unable to unwind into it.

ObjC EH on darwin/32 uses setjmp/longjmp, not dwarf exceptions.

-Chris



More information about the cfe-dev mailing list