r192375 - in /branches/asan/gcc: ChangeLog.asan...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Thu Oct 11 18:17:00 GMT 2012
Author: jakub
Date: Thu Oct 11 18:17:07 2012
New Revision: 192375
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192375
Log:
* Makefile.in (GTFILES): Add $(srcdir)/asan.c.
* asan.c (shadow_ptr_types): New variable.
(report_error_func): Change is_store argument to bool, don't append
newline to function name.
(PROB_VERY_UNLIKELY, PROB_ALWAYS): Define.
(build_check_stmt): Change is_store argument to bool. Emit GIMPLE
directly instead of creating trees and gimplifying them. Mark
the error reporting function as very unlikely.
(instrument_derefs): Change is_store argument to bool. Use
int_size_in_bytes to compute size_in_bytes, simplify size check.
Use build_fold_addr_expr instead of build_addr.
(transform_statements): Adjust instrument_derefs caller.
Use gimple_assign_single_p as stmt test. Don't look at MEM refs
in rhs2.
(asan_init_shadow_ptr_types): New function.
(asan_instrument): Don't push/pop gimplify context.
Call asan_init_shadow_ptr_types if not yet initialized.
* asan.h (ASAN_SHADOW_SHIFT): Adjust comment.
Modified:
branches/asan/gcc/ChangeLog.asan
branches/asan/gcc/Makefile.in
branches/asan/gcc/asan.c
branches/asan/gcc/asan.h
More information about the Gcc-cvs
mailing list