diff options
author | Mike Stump <mrs@apple.com> | 2009-04-01 20:28:16 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-04-01 20:28:16 +0000 |
commit | 2add47387d39ee6c40dcb0e9f3d51c27ad1e113c (patch) | |
tree | 4f0d5830625dfe9036e5c6b051c21b549d3772d3 /include/clang | |
parent | 91a0b51438e5259a79d68d7450c453827beed9e2 (diff) |
Add -ftrapv support, patch from David Chisnall; well all except the
clang option code that is and two bug fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 5 | ||||
-rw-r--r-- | include/clang/Driver/Options.def | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index b49d500470..818ccda48b 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -59,6 +59,9 @@ public: unsigned MathErrno : 1; // Math functions must respect errno // (modulo the platform support). + unsigned OverflowChecking : 1; // Extension to call a handler function when + // integer arithmetic overflows. + unsigned HeinousExtensions : 1; // Extensions that we really don't like and // may be ripped out at any time. private: @@ -87,6 +90,8 @@ public: EmitAllDecls = 0; MathErrno = 1; + OverflowChecking = 0; + InstantiationDepth = 99; } diff --git a/include/clang/Driver/Options.def b/include/clang/Driver/Options.def index 019a0da098..33b24f63dd 100644 --- a/include/clang/Driver/Options.def +++ b/include/clang/Driver/Options.def @@ -448,6 +448,7 @@ OPTION("-ftemplate-depth-", ftemplate_depth_, Joined, f_Group, INVALID, "", 0, 0 OPTION("-fterminated-vtables", fterminated_vtables, Flag, f_Group, INVALID, "", 0, 0, 0) OPTION("-ftime-report", ftime_report, Flag, clang_f_Group, INVALID, "", 0, 0, 0) OPTION("-ftraditional", ftraditional, Flag, f_Group, INVALID, "", 0, 0, 0) +OPTION("-ftrapv", ftrapv, Flag, clang_f_Group, INVALID, "", 0, 0, 0) OPTION("-funwind-tables", funwind_tables, Flag, f_Group, INVALID, "", 0, 0, 0) OPTION("-fverbose-asm", fverbose_asm, Flag, f_Group, INVALID, "", 0, 0, 0) OPTION("-fwritable-strings", fwritable_strings, Flag, clang_f_Group, INVALID, "", 0, 0, 0) |