On Dec 2, 2009, at 6:55 PM, Anders Carlsson wrote:
> What are C exceptions?

gcc -fexceptions t.c

The cleanup actions registered with the cleanup attribute are run.  Also, there 
is full unwinding information, so that you can throw through the code.  The gcc 
manual has more on this as I recall.

> setjmp/longjmp or is there something more advanced? :)

Way more advanced.  :-)

> Also, is there a way to turn of objc exceptions at all?

As I recall, there was a time before exceptions, and if you target such a box 
with -mmacosx-version-min=, they will be off, additionally, one of

-fno-objc-zerocost-exceptions
-fobjc-exceptions
-fno-objc-sjlj-exceptions
-fno-exceptions

or some other flags might do it.  I'd have to play around to see what actually 
works.  A real life objc person would have a better answer.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to