]> gcc.gnu.org Git - gcc.git/commit
sanopt.c: Include tree-ssa-operands.h.
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Nov 2014 17:28:11 +0000 (18:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 14 Nov 2014 17:28:11 +0000 (18:28 +0100)
commitab9a4330370dccbb9559c4edf032f49e925e951c
tree1b257a63c484c45a3351c726bc7041b331cff4ad
parent18d11814af15e35f3cb103919585bceb5c470dc7
sanopt.c: Include tree-ssa-operands.h.

* sanopt.c: Include tree-ssa-operands.h.
(struct sanopt_info): Add has_freeing_call_p,
has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
being_visited_p fields.
(struct sanopt_ctx): Add asan_check_map field.
(imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
maybe_optimize_asan_check_ifn): New functions.
(sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
internal calls.
(pass_sanopt::execute): Call sanopt_optimize even for
-fsanitize=address.
* gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
internal calls.

Co-Authored-By: Marek Polacek <polacek@redhat.com>
From-SVN: r217581
gcc/ChangeLog
gcc/gimple.c
gcc/sanopt.c
This page took 0.061897 seconds and 5 git commands to generate.