From 80dde427a00b3121ec7b1b3664208149feaa23a8 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 31 Jul 2018 12:34:02 +0200 Subject: [PATCH] Fix target clones (PR gcov-profile/85370). 2018-07-31 Martin Liska PR gcov-profile/85370 * coverage.c (coverage_begin_function): Do not mark target clones as artificial functions. From-SVN: r263112 --- gcc/ChangeLog | 6 ++++++ gcc/coverage.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97bc2fd6e51..b55f7a3f19b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-07-31 Martin Liska + + PR gcov-profile/85370 + * coverage.c (coverage_begin_function): Do not mark target + clones as artificial functions. + 2018-07-31 Martin Liska PR gcov-profile/83813 diff --git a/gcc/coverage.c b/gcc/coverage.c index da171c84d3c..bae6f5cafac 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -656,7 +656,8 @@ coverage_begin_function (unsigned lineno_checksum, unsigned cfg_checksum) gcov_write_unsigned (cfg_checksum); gcov_write_string (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl))); - gcov_write_unsigned (DECL_ARTIFICIAL (current_function_decl)); + gcov_write_unsigned (DECL_ARTIFICIAL (current_function_decl) + && !DECL_FUNCTION_VERSIONED (current_function_decl)); gcov_write_filename (xloc.file); gcov_write_unsigned (xloc.line); gcov_write_unsigned (xloc.column); -- 2.30.2