]> granicus.if.org Git - clang/commit
Add a -ftrapv-handler= option which allows a handler to invoke instead of simply...
authorDavid Chisnall <csdavec@swan.ac.uk>
Fri, 17 Sep 2010 18:29:54 +0000 (18:29 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Fri, 17 Sep 2010 18:29:54 +0000 (18:29 +0000)
commit7f18e67e1b577a50402e8b43508ab2311a5c45b5
tree89096de55711e54f99f7bd2c8c4685f2eaa3f683
parentdc24572a44575e07a5d8bb6de52641a69f1bab27
Add a -ftrapv-handler= option which allows a handler to invoke instead of simply aborting when a signed operation overflows.  This mirrors the (GCC-incompatible) behaviour from clang 1.0 and 1.1 when -ftrapv was specified, but allows the handler to be defined for each compilation unit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114192 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.h
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/CodeGen/CGExprScalar.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/integer-overflow.c