[cfe-dev] Exception Handling Rewrite Branch

Douglas Gregor dgregor at apple.com
Tue Jul 26 13:12:56 PDT 2011


On Jul 26, 2011, at 12:01 PM, Jon Shier wrote:

> I have nothing to contribute other than to ask if this rewrite will bring clang's -fno-exceptions behavior inline with GCC's. According to this comment: http://llvm.org/bugs/show_bug.cgi?id=9171#c5 clang disables both C++ and Objective-C exceptions with that option whereas GCC only disables them for C++. Of course, this may have already been fixed in clang in the 5 months since I reported that bug, and WebKit fixed the issue where it was cropping up for them, but I just wanted to bring it to your attention if you're going to specifically change how exceptions are implemented in clang. 
> 
> Of course this could be completely irrelevant, so carry on.

It is :)

The exceptions rewrite concerns how exceptions are expressed in LLVM IR. It will have no effect on Clang's behavior, except hopefully to eliminate some miscompiles that have resisted our previous attempts to fix them.

	- Doug



More information about the cfe-dev mailing list