diff options
author | Martin Liska <mliska@suse.cz> | 2017-10-06 16:14:14 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-10-06 14:14:14 +0000 |
commit | 513d5564225f8baa2ddeafde9edb9e10b62e30ce (patch) | |
tree | 520b8fb34932f46c3db23ec5f105b3abe2443dff /gcc/ChangeLog | |
parent | 549d24e9f70e33aac90ddaebf95a63409b058327 (diff) | |
download | gcc-513d5564225f8baa2ddeafde9edb9e10b62e30ce.zip gcc-513d5564225f8baa2ddeafde9edb9e10b62e30ce.tar.gz gcc-513d5564225f8baa2ddeafde9edb9e10b62e30ce.tar.bz2 |
Add sanopt support for UBSAN_PTR.
2017-10-06 Martin Liska <mliska@suse.cz>
* sanopt.c (struct sanopt_tree_triplet_hash): Remove inline
keyword for member functions.
(struct sanopt_tree_couple): New struct.
(struct sanopt_tree_couple_hash): New function.
(struct sanopt_ctx): Add new hash_map.
(has_dominating_ubsan_ptr_check): New function.
(record_ubsan_ptr_check_stmt): Likewise.
(maybe_optimize_ubsan_ptr_ifn): Likewise.
(sanopt_optimize_walker): Handle IFN_UBSAN_PTR.
(pass_sanopt::execute): Handle also SANITIZE_POINTER_OVERFLOW.
2017-10-06 Martin Liska <mliska@suse.cz>
* c-c++-common/ubsan/ptr-overflow-sanitization-1.c: New test.
From-SVN: r253492
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r-- | gcc/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ecc6e5b..b56f7e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2017-10-06 Martin Liska <mliska@suse.cz> + + * sanopt.c (struct sanopt_tree_triplet_hash): Remove inline + keyword for member functions. + (struct sanopt_tree_couple): New struct. + (struct sanopt_tree_couple_hash): New function. + (struct sanopt_ctx): Add new hash_map. + (has_dominating_ubsan_ptr_check): New function. + (record_ubsan_ptr_check_stmt): Likewise. + (maybe_optimize_ubsan_ptr_ifn): Likewise. + (sanopt_optimize_walker): Handle IFN_UBSAN_PTR. + (pass_sanopt::execute): Handle also SANITIZE_POINTER_OVERFLOW. + 2017-10-06 Sudakshina Das <sudi.das@arm.com> PR target/82440 |