diff options
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index bcba61c..ebe27a3 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -324,7 +324,7 @@ get_coverage_counts (unsigned counter, unsigned cfg_checksum, } return NULL; } - if (PARAM_VALUE (PARAM_PROFILE_FUNC_INTERNAL_ID)) + if (param_profile_func_internal_id) elt.ident = current_function_funcdef_no + 1; else { @@ -560,7 +560,7 @@ coverage_compute_profile_id (struct cgraph_node *n) { expanded_location xloc = expand_location (DECL_SOURCE_LOCATION (n->decl)); - bool use_name_only = (PARAM_VALUE (PARAM_PROFILE_FUNC_INTERNAL_ID) == 0); + bool use_name_only = (param_profile_func_internal_id == 0); chksum = (use_name_only ? 0 : xloc.line); if (xloc.file) @@ -628,7 +628,7 @@ coverage_begin_function (unsigned lineno_checksum, unsigned cfg_checksum) /* Announce function */ offset = gcov_write_tag (GCOV_TAG_FUNCTION); - if (PARAM_VALUE (PARAM_PROFILE_FUNC_INTERNAL_ID)) + if (param_profile_func_internal_id) gcov_write_unsigned (current_function_funcdef_no + 1); else { @@ -682,7 +682,7 @@ coverage_end_function (unsigned lineno_checksum, unsigned cfg_checksum) item = ggc_alloc<coverage_data> (); - if (PARAM_VALUE (PARAM_PROFILE_FUNC_INTERNAL_ID)) + if (param_profile_func_internal_id) item->ident = current_function_funcdef_no + 1; else { |