[cfe-dev] One more EH patch...
Fariborz Jahanian
fjahanian at apple.com
Mon May 11 13:48:49 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.
We are probably on two different systems. On may MacOS system, -fobjc2
is not a valid option and -fexceptions
is always on by default. I think, flagging @try as error should be
done based on the system and the supporting
libraries, option settings, etc.
- Fariborz
>
>
> David
More information about the cfe-dev
mailing list