]> granicus.if.org Git - clang/commit
Implement support for -fwrapv, rdar://7221421
authorChris Lattner <sabre@nondot.org>
Sat, 26 Jun 2010 21:25:03 +0000 (21:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 26 Jun 2010 21:25:03 +0000 (21:25 +0000)
commita4d71455f0d418e16cc0c5c5aa55a3bad3494aee
treeefaf0e10486ac58302fe7c2934c325225e1c7c3f
parente70ffd631179c15d358838464425e3464cf05a98
Implement support for -fwrapv, rdar://7221421

As part of this, pull together trapv handling into the same enum.

This also add support for NSW multiplies.

This also makes PCH disagreement on overflow behavior silent, since it
really doesn't matter except for warnings and codegen (no macros get
defined etc).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106956 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Basic/DiagnosticFrontendKinds.td
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
lib/Frontend/PCHReader.cpp
lib/Frontend/PCHWriter.cpp
test/CodeGen/builtins-ppc-altivec.c
test/CodeGen/exprs.c
test/CodeGen/extern-inline.c
test/CodeGen/integer-overflow.c [new file with mode: 0644]