From: Martin Liska Date: Tue, 31 Jul 2018 10:34:02 +0000 (+0200) Subject: Fix target clones (PR gcov-profile/85370). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80dde427a00b3121ec7b1b3664208149feaa23a8;p=gcc.git 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 --- 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);