[cfe-commits] r90378 - in /cfe/trunk: lib/Lex/PPMacroExpansion.cpp test/Lexer/has_feature_exceptions.cpp

Mike Stump mrs at apple.com
Wed Dec 2 19:12:15 PST 2009


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.



More information about the cfe-commits mailing list