Commit f7b4a383 by Eric Botcazou Committed by Eric Botcazou

stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the newly built CALL_EXPR.

	* stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
	newly built CALL_EXPR.
	* tree-profile.c (tree_profiling): Return 0 for built-in stuff.

From-SVN: r160344
parent 3333e146
2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
* stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
newly built CALL_EXPR.
* tree-profile.c (tree_profiling): Return 0 for built-in stuff.
2010-06-06 Segher Boessenkool <segher@kernel.crashing.org> 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
PR bootstrap/44427 PR bootstrap/44427
......
...@@ -342,7 +342,7 @@ self_referential_size (tree size) ...@@ -342,7 +342,7 @@ self_referential_size (tree size)
VEC_safe_push (tree, gc, size_functions, fndecl); VEC_safe_push (tree, gc, size_functions, fndecl);
/* Replace the original expression with a call to the size function. */ /* Replace the original expression with a call to the size function. */
return build_function_call_expr (input_location, fndecl, arg_list); return build_function_call_expr (UNKNOWN_LOCATION, fndecl, arg_list);
} }
/* Take, queue and compile all the size functions. It is essential that /* Take, queue and compile all the size functions. It is essential that
......
...@@ -467,6 +467,10 @@ tree_profiling (void) ...@@ -467,6 +467,10 @@ tree_profiling (void)
|| cfun->after_tree_profile) || cfun->after_tree_profile)
return 0; return 0;
/* Don't profile functions produced for builtin stuff. */
if (DECL_SOURCE_LOCATION (current_function_decl) == BUILTINS_LOCATION)
return 0;
/* Re-set global shared temporary variable for edge-counters. */ /* Re-set global shared temporary variable for edge-counters. */
gcov_type_tmp_var = NULL_TREE; gcov_type_tmp_var = NULL_TREE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment