This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r217581 - in /trunk/gcc: ChangeLog gimple.c san...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 14 Nov 2014 17:28:12 -0000
- Subject: r217581 - in /trunk/gcc: ChangeLog gimple.c san...
Author: jakub
Date: Fri Nov 14 17:28:11 2014
New Revision: 217581
URL: https://gcc.gnu.org/viewcvs?rev=217581&root=gcc&view=rev
Log:
* 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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple.c
trunk/gcc/sanopt.c