diff options
author | Jason Merrill <jason@redhat.com> | 2015-01-08 16:27:22 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-01-08 16:27:22 -0500 |
commit | f5481fc443060065cde9ed7bc6f3fd83bc1ecc4c (patch) | |
tree | cbafc576a2a3a432c0727f066088eb9aa5369156 /gcc/ubsan.h | |
parent | 46621807e9bf7bc94302cda27852e33a3c766112 (diff) | |
download | gcc-f5481fc443060065cde9ed7bc6f3fd83bc1ecc4c.zip gcc-f5481fc443060065cde9ed7bc6f3fd83bc1ecc4c.tar.gz gcc-f5481fc443060065cde9ed7bc6f3fd83bc1ecc4c.tar.bz2 |
ubsan.c (do_ubsan_in_current_function): New.
gcc/
* ubsan.c (do_ubsan_in_current_function): New.
(pass_ubsan::gate): Use it.
* ubsan.h: Declare it.
* convert.c (convert_to_integer): Use it.
gcc/c-family/
* c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
do_ubsan_in_current_function.
(ubsan_maybe_instrument_reference_or_call): Likewise.
* c-ubsan.h: Declare it.
gcc/cp/
* cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
* decl.c (compute_array_index_type): Likewise.
* init.c (build_vec_init): Likewise.
* typeck.c (cp_build_binary_op): Likewise.
From-SVN: r219360
Diffstat (limited to 'gcc/ubsan.h')
-rw-r--r-- | gcc/ubsan.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ubsan.h b/gcc/ubsan.h index 5d9d909..9b8a59b 100644 --- a/gcc/ubsan.h +++ b/gcc/ubsan.h @@ -38,6 +38,7 @@ enum ubsan_print_style { UBSAN_PRINT_ARRAY }; +extern bool do_ubsan_in_current_function (void); extern bool ubsan_expand_bounds_ifn (gimple_stmt_iterator *); extern bool ubsan_expand_null_ifn (gimple_stmt_iterator *); extern bool ubsan_expand_objsize_ifn (gimple_stmt_iterator *); |