[LLVMbugs] [Bug 10910] New: clang defines __EXCEPTIONS to 1 even if c++ exceptions are turned off

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 11 12:50:03 PDT 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: mayer.julian at googlemail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list