From: Jakub Jelinek Date: Thu, 15 Nov 2012 13:12:36 +0000 (+0100) Subject: asan.c (report_error_func): Set DECL_IGNORED_P, don't touch DECL_ASSEMBLER_NAME. X-Git-Tag: upstream/12.2.0~72799 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=671e554d87635473d6bc7afd72c9108d49fed404;p=platform%2Fupstream%2Fgcc.git asan.c (report_error_func): Set DECL_IGNORED_P, don't touch DECL_ASSEMBLER_NAME. * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch DECL_ASSEMBLER_NAME. (asan_init_func): Likewise. (asan_finish_file): Use void * instead of __asan_global * as type of __asan_{,un}register_globals. Set DECL_IGNORED_P on the decls. From-SVN: r193532 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4481b6f..01bf6d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2012-11-15 Jakub Jelinek + + * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch + DECL_ASSEMBLER_NAME. + (asan_init_func): Likewise. + (asan_finish_file): Use void * instead of __asan_global * as + type of __asan_{,un}register_globals. Set DECL_IGNORED_P on + the decls. + 2012-11-15 Matthias Klose * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature. diff --git a/gcc/asan.c b/gcc/asan.c index 5fce407..03519d1 100644 --- a/gcc/asan.c +++ b/gcc/asan.c @@ -494,10 +494,10 @@ report_error_func (bool is_store, int size_in_bytes) fn_type = build_function_type_list (void_type_node, ptr_type_node, NULL_TREE); def = build_fn_decl (name, fn_type); TREE_NOTHROW (def) = 1; + DECL_IGNORED_P (def) = 1; TREE_THIS_VOLATILE (def) = 1; /* Attribute noreturn. Surprise! */ DECL_ATTRIBUTES (def) = tree_cons (get_identifier ("leaf"), NULL, DECL_ATTRIBUTES (def)); - DECL_ASSEMBLER_NAME (def); return def; } @@ -512,7 +512,7 @@ asan_init_func (void) fn_type = build_function_type_list (void_type_node, NULL_TREE); def = build_fn_decl ("__asan_init", fn_type); TREE_NOTHROW (def) = 1; - DECL_ASSEMBLER_NAME (def); + DECL_IGNORED_P (def) = 1; return def; } @@ -1536,11 +1536,11 @@ asan_finish_file (void) DECL_INITIAL (var) = ctor; varpool_assemble_decl (varpool_node_for_decl (var)); - type = build_function_type_list (void_type_node, - build_pointer_type (TREE_TYPE (type)), + type = build_function_type_list (void_type_node, ptr_type_node, uptr, NULL_TREE); decl = build_fn_decl ("__asan_register_globals", type); TREE_NOTHROW (decl) = 1; + DECL_IGNORED_P (decl) = 1; append_to_statement_list (build_call_expr (decl, 2, build_fold_addr_expr (var), build_int_cst (uptr, gcount)), @@ -1548,6 +1548,7 @@ asan_finish_file (void) decl = build_fn_decl ("__asan_unregister_globals", type); TREE_NOTHROW (decl) = 1; + DECL_IGNORED_P (decl) = 1; append_to_statement_list (build_call_expr (decl, 2, build_fold_addr_expr (var), build_int_cst (uptr, gcount)),