http://llvm.org/bugs/show_bug.cgi?id=10910

           Summary: clang defines __EXCEPTIONS to 1 even if c++ exceptions
                    are turned off
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


clang defines __EXCEPTIONS to 1 even if c++ exceptions are turned off if
Objective-C exceptions are still active

__EXCEPTIONS should only be defined if C++ exceptions are actually turned on,
independently of Objective-C exceptions


MacPro:~ julian$ clang --version
Apple clang version 3.0 (tags/Apple/clang-211.9) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin10.8.0
Thread model: posix


MacPro:~ julian$ clang -dM -E -fno-exceptions  -x objective-c++ - <<<'' | grep
EXC
#define OBJC_ZEROCOST_EXCEPTIONS 1
#define __EXCEPTIONS 1


MacPro:~ julian$ clang -dM -E -fno-exceptions  -x objective-c - <<<'' | grep
EXC
#define OBJC_ZEROCOST_EXCEPTIONS 1
#define __EXCEPTIONS 1

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to