]> granicus.if.org Git - clang/commit
Driver: Objective-C should respect -fno-exceptions
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 5 Dec 2014 08:56:55 +0000 (08:56 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 5 Dec 2014 08:56:55 +0000 (08:56 +0000)
commit64a12add36a2bd44cb5b571a5c7255797b703568
tree45f5412080139e27d8e6d66919d2b7bb3640b649
parentee0543ee7ab80941cc4bef6da5cebd8bb56f2843
Driver: Objective-C should respect -fno-exceptions

Clang attempted to replicate a GCC bug: -fobjc-exceptions forces
-fexceptions to be enabled.  However, this has unintended effects and
other awkard side effects that Clang doesn't "correctly" ape (e.g. it's
impossible to turn off C++ exceptions in ObjC++ mode).

Instead, -f[no]objc-exceptions and -f[no]cxx-exceptions now have an
identical relationship with -f[no]exceptions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223455 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/exceptions.m [deleted file]
test/Driver/exceptions.mm [new file with mode: 0644]
test/Driver/rewrite-legacy-objc.m