public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tejohnson at google dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/54487] [4.8 Regression] profiledbootstrap broken by r190952 Date: Thu, 06 Sep 2012 20:24:00 -0000 [thread overview] Message-ID: <bug-54487-4-tuoxhILGeb@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-54487-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54487 --- Comment #12 from Teresa Johnson <tejohnson at google dot com> 2012-09-06 20:23:50 UTC --- On Thu, Sep 6, 2012 at 1:06 PM, hjl.tools at gmail dot com <gcc-bugzilla@gcc.gnu.org> wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54487 > > --- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> 2012-09-06 20:06:55 UTC --- > (In reply to comment #8) >> I think I have a solution for the issue that H.J. is encountering. Details >> below. Markus and H.J., would you be able to try the following patch to see if >> it addresses the failure you were seeing? Markus, were you only seeing failures >> when using a parallel make? >> >> Index: libgcc/libgcov.c >> =================================================================== >> --- libgcc/libgcov.c (revision 191035) >> +++ libgcc/libgcov.c (working copy) >> @@ -707,7 +707,9 @@ gcov_exit (void) >> memcpy (cs_all, cs_prg, sizeof (*cs_all)); >> else if (!all_prg.checksum >> && (!GCOV_LOCKED || cs_all->runs == cs_prg->runs) >> - && memcmp (cs_all, cs_prg, sizeof (*cs_all))) >> + && memcmp (cs_all, cs_prg, >> + sizeof (*cs_all) - (sizeof (gcov_bucket_type) >> + * GCOV_HISTOGRAM_SIZE))) >> { >> fprintf (stderr, "profiling:%s:Invocation mismatch - some data files >> may have been removed%s\n", >> gi_filename, GCOV_LOCKED >> >> > > I applied it by hand: > diff --git a/libgcc/libgcov.c b/libgcc/libgcov.c > index fce8587..daf95af 100644 > --- a/libgcc/libgcov.c > +++ b/libgcc/libgcov.c > @@ -707,7 +707,10 @@ gcov_exit (void) > memcpy (cs_all, cs_prg, sizeof (*cs_all)); > else if (!all_prg.checksum > && (!GCOV_LOCKED || cs_all->runs == cs_prg->runs) > - && memcmp (cs_all, cs_prg, sizeof (*cs_all))) > + && memcmp (cs_all, cs_prg, sizeof (*cs_all)) > + && memcmp (cs_all, cs_prg, > + sizeof (*cs_all) - (sizeof (gcov_bucket_type) > + * GCOV_HISTOGRAM_SIZE))) > { > fprintf (stderr, "profiling:%s:Invocation mismatch - some data files > may have been removed%s\n", > gi_filename, GCOV_LOCKED > > and it still failed for me on Fedora/18 24 core x86-64 > with -j 12: > > /export/gnu/import/git/gcc/gcc/tree-cfg.c: In function ‘bool > gimple_can_merge_blocks_p(basic_block, basic_block)’: > /export/gnu/import/git/gcc/gcc/tree-cfg.c:7904:1: error: corrupted profile > info: edge from 52 to 53 exceeds maximal count > } > ^ > /export/gnu/import/git/gcc/gcc/tree-cfg.c:7904:1: error: corrupted profile > info: edge from 54 to 55 exceeds maximal count > /export/gnu/import/git/gcc/gcc/tree-cfg.c:7904:1: error: corrupted profile > info: edge from 55 to 56 exceeds maximal count > /export/gnu/import/git/gcc/gcc/tree-cfg.c:7904:1: error: corrupted profile > info: edge from 56 to 57 exceeds maximal count > /export/gnu/import/git/gcc/gcc/tree-cfg.c:7904:1: internal compiler error: in > cgraph_create_edge_1, at cgraph.c:669 Unfortunately I haven't been able to reproduce this one yet. Can you send me the corrupt gcda file? Thanks, Teresa > Please submit a full bug report, > with preprocessed source if appropriate. > See <http://gcc.gnu.org/bugs.html> for instructions. > make[4]: *** [tree-cfg.o] Error 1 > make[4]: *** Waiting for unfinished jobs.... > rm gcov.pod gcc.pod cpp.pod fsf-funding.pod gfdl.pod > make[4]: Leaving directory `/export/build/gnu/gcc-fdo/build-x86_64-linux/gcc' > make[3]: *** [all-stagefeedback-gcc] Error 2 > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug.
next prev parent reply other threads:[~2012-09-06 20:24 UTC|newest] Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-09-05 7:11 [Bug gcov-profile/54487] New: " markus at trippelsdorf dot de 2012-09-05 7:27 ` [Bug gcov-profile/54487] " pinskia at gcc dot gnu.org 2012-09-05 9:18 ` rguenth at gcc dot gnu.org 2012-09-05 12:41 ` hjl.tools at gmail dot com 2012-09-05 15:41 ` hjl.tools at gmail dot com 2012-09-05 15:46 ` markus at trippelsdorf dot de 2012-09-05 16:17 ` hjl.tools at gmail dot com 2012-09-05 19:03 ` tejohnson at google dot com 2012-09-05 19:20 ` markus at trippelsdorf dot de 2012-09-06 18:59 ` tejohnson at google dot com 2012-09-06 19:35 ` markus at trippelsdorf dot de 2012-09-06 20:03 ` tejohnson at google dot com 2012-09-06 20:07 ` hjl.tools at gmail dot com 2012-09-06 20:24 ` tejohnson at google dot com [this message] 2012-09-06 20:49 ` hjl.tools at gmail dot com 2012-09-07 5:19 ` tejohnson at google dot com 2012-09-07 13:50 ` tejohnson at gcc dot gnu.org 2012-09-11 17:25 ` tejohnson at google dot com 2012-09-11 17:29 ` hjl.tools at gmail dot com 2012-09-11 17:39 ` tejohnson at google dot com 2012-09-11 17:45 ` davidxl at google dot com 2012-09-11 18:05 ` tejohnson at google dot com 2012-09-11 18:08 ` davidxl at google dot com 2012-09-11 18:11 ` hjl.tools at gmail dot com 2012-09-11 18:15 ` markus at trippelsdorf dot de 2012-09-11 18:57 ` tejohnson at google dot com 2012-09-11 18:59 ` jakub at gcc dot gnu.org 2012-09-11 19:05 ` jakub at gcc dot gnu.org 2012-09-11 19:08 ` tejohnson at google dot com 2012-09-13 4:59 ` tejohnson at gcc dot gnu.org 2012-09-13 6:39 ` markus at trippelsdorf dot de 2012-09-13 13:33 ` tejohnson at gcc dot gnu.org 2012-09-13 16:17 ` hubicka at gcc dot gnu.org 2012-09-14 21:07 ` tejohnson 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-54487-4-tuoxhILGeb@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: linkBe 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).