aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/clang/Basic/LangOptions.h5
-rw-r--r--include/clang/Driver/Options.def1
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)