diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-04 22:47:11 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-04 22:47:11 +0000 |
commit | 137559b2325c900743803d115c4d8495f9da5d67 (patch) | |
tree | 20fca81276f1e6d6224300c11a4e10fa89519d41 /gcc/asan.c | |
parent | 85f5275438752595289934e2bbf725d1481f77cc (diff) | |
download | gcc-137559b2325c900743803d115c4d8495f9da5d67.tar.gz |
Implement -fsanitize=signed-integer-overflow.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205684 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/asan.c')
-rw-r--r-- | gcc/asan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/asan.c b/gcc/asan.c index 2245d6dd807..74140d65289 100644 --- a/gcc/asan.c +++ b/gcc/asan.c @@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see #include "cfgloop.h" #include "gimple-builder.h" #include "ubsan.h" +#include "predict.h" /* AddressSanitizer finds out-of-bounds and use-after-free bugs with <2x slowdown on average. @@ -1311,9 +1312,6 @@ report_error_func (bool is_store, int size_in_bytes) return builtin_decl_implicit (report[is_store][exact_log2 (size_in_bytes)]); } -#define PROB_VERY_UNLIKELY (REG_BR_PROB_BASE / 2000 - 1) -#define PROB_ALWAYS (REG_BR_PROB_BASE) - /* Split the current basic block and create a condition statement insertion point right before or after the statement pointed to by ITER. Return an iterator to the point at which the caller might |