public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/100520] [11/12 Regression] ‘-fcompare-debug’ failure with -fprofile-generate
Date: Mon, 20 Sep 2021 07:12:57 +0000	[thread overview]
Message-ID: <bug-100520-4-bM26t0BRlH@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100520-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100520

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|aarch64, x86_64             |
           Severity|normal                      |major
          Component|debug                       |gcov-profile
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> -  __gcov_indirect_call_profiler_v4 (1387117561, f);
> +  __gcov_indirect_call_profiler_v4 (983609665, f);

  tree_uid = build_int_cst
              (gcov_type_node,
               cgraph_node::get (current_function_decl)->profile_id);


profile_id is computed in coverage_compute_profile_id.
Which has:

      chksum = coverage_checksum_string
        (chksum, aux_base_name);


The problem is with -fcompare-debug the aux_base_name is different.
Hmm, this code for coverage_compute_profile_id has not changed.  Maybe the use
of the profile id has changed though.

  parent reply	other threads:[~2021-09-20  7:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-11 13:52 [Bug debug/100520] New: [11/12 Regression] aarch64: " acoplan at gcc dot gnu.org
2021-05-12  6:36 ` [Bug debug/100520] " rguenth at gcc dot gnu.org
2021-07-28  7:06 ` rguenth at gcc dot gnu.org
2021-09-20  7:00 ` [Bug debug/100520] [11/12 Regression] " pinskia at gcc dot gnu.org
2021-09-20  7:05 ` pinskia at gcc dot gnu.org
2021-09-20  7:12 ` pinskia at gcc dot gnu.org [this message]
2021-09-27 11:54 ` [Bug gcov-profile/100520] " marxin at gcc dot gnu.org
2021-11-05 15:01 ` [Bug gcov-profile/100520] [11/12 Regression] ‘-fcompare-debug’ failure with -fprofile-generate since r11-627-g1dedc12d186a1108 marxin at gcc dot gnu.org
2021-11-05 15:15 ` marxin at gcc dot gnu.org
2021-11-08 11:52 ` cvs-commit at gcc dot gnu.org
2021-11-08 11:54 ` [Bug gcov-profile/100520] [11 " marxin at gcc dot gnu.org
2021-11-08 12:26 ` cvs-commit at gcc dot gnu.org
2021-11-08 12:27 ` marxin at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-100520-4-bM26t0BRlH@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).