From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12123 invoked by alias); 3 Oct 2014 20:18:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12089 invoked by uid 55); 3 Oct 2014 20:18:34 -0000 From: "tejohnson at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/63432] [5 Regression] profiledbootstrap failure with bootstrap-lto Date: Fri, 03 Oct 2014 20:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tejohnson at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg00253.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63432 --- Comment #10 from Teresa Johnson --- On Fri, Oct 3, 2014 at 12:47 PM, hjl.tools at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63432 > > H.J. Lu changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|UNCONFIRMED |NEW > Last reconfirmed| |2014-10-03 > Ever confirmed|0 |1 > > --- Comment #8 from H.J. Lu --- > Bug is in > > static void > recompute_probabilities (basic_block bb) > { > edge esucc; > edge_iterator ei; > FOR_EACH_EDGE (esucc, ei, bb->succs) > { > if (bb->count) > esucc->probability = GCOV_COMPUTE_SCALE (esucc->count, > bb->count); > if (esucc->probability > REG_BR_PROB_BASE) > { > > We got > > (gdb) whatis esucc->probability > type = int > (gdb) p esucc->count > $7 = 2822215 > (gdb) p bb->count > $8 = 1 > (gdb) p esucc->probability > $9 = -1842621072 This points to a bigger problem, since esucc->count should be <= bb->count. Can you attach the input files and command line and I will take a closer look? Thanks, Teresa > (gdb) > > When count is set from frequency scaled up by REG_BR_PROB_BASE, > probability may overflow. > > -- > You are receiving this mail because: > You are on the CC list for the bug.