]> granicus.if.org Git - clang/commit
Correct -ftrapv to trap on errors, instead of calling the
authorChris Lattner <sabre@nondot.org>
Sat, 7 Aug 2010 00:20:46 +0000 (00:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Aug 2010 00:20:46 +0000 (00:20 +0000)
commit93a00357f2795404c6709d9e06b4f717c82e6efb
tree990c220acb334c83f65ada116890dca1677059b7
parent647c8b32c2a6e38ee44dde1782a629e9c03786e2
Correct -ftrapv to trap on errors, instead of calling the
__overflow_handler entrypoint that David Chisnall made up.
Calling __overflow_handler is not part of the contract of
-ftrapv provided by GCC, and should never have been checked
in in the first place.

According to:
http://permalink.gmane.org/gmane.comp.compilers.clang.devel/8699

David is using this for some of arbitrary precision integer stuff
or something, which is not an appropriate thing to implement on
this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110490 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/trapv.c