public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "renlin.li at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61529] [5 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in check_probability, at basic-block.h:953
Date: Fri, 17 Oct 2014 16:10:00 -0000	[thread overview]
Message-ID: <bug-61529-4-AphzEuld8h@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61529-4@http.gcc.gnu.org/bugzilla/>

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

Renlin Li <renlin.li at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |renlin.li at arm dot com

--- Comment #5 from Renlin Li <renlin.li at arm dot com> ---
Confirm same problem while compiling glibc using arm toolchain with
-march=armv7-a -O2 configuration.


(In reply to David Binderman from comment #4)
> (In reply to Jakub Jelinek from comment #3)
> > Started with r210538.
> 
> I am seeing something similar when compiling glibc
> with trunk 20141001 with only -O2.
> 
> ../iconv/skeleton.c: In function ‘gconv’:
> ../iconv/skeleton.c:792:1: internal compiler error: in check_probability, at
> basic-block.h:959
>  }
>  ^
> 0x10685aa check_probability
>     ../../src/trunk/gcc/basic-block.h:959
> 0x10685aa apply_probability
>     ../../src/trunk/gcc/basic-block.h:988
> 0x10685aa compute_outgoing_frequencies
>     ../../src/trunk/gcc/cfgbuild.c:545
> 0x10685aa find_many_sub_basic_blocks(simple_bitmap_def*)
>     ../../src/trunk/gcc/cfgbuild.c:636
> 
> Code ok with 20140927.
>From gcc-bugs-return-464369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 17 16:22:23 2014
Return-Path: <gcc-bugs-return-464369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5030 invoked by alias); 17 Oct 2014 16:22:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 4988 invoked by uid 48); 17 Oct 2014 16:22:17 -0000
From: "renlin.li at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61529] [5 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in check_probability, at basic-block.h:953
Date: Fri, 17 Oct 2014 16:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: renlin.li at arm dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61529-4-dsTww41XJg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61529-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61529-4@http.gcc.gnu.org/bugzilla/>
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/msg01390.txt.bz2
Content-length: 377

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida529

--- Comment #6 from Renlin Li <renlin.li at arm dot com> ---
emit_case_nodes calls conditional_probability with a very large first argument.

After GCOV_COMPUTE_SCALE calculation, the result overflows into a negative
number.

It's recorded into the cmp_and_jump rtx as a note which is later read and
trigger the assertion.


  parent reply	other threads:[~2014-10-17 16:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-17  2:00 [Bug tree-optimization/61529] New: " su at cs dot ucdavis.edu
2014-06-17  8:39 ` [Bug middle-end/61529] [4.10 Regression] " rguenth at gcc dot gnu.org
2014-08-05  5:20 ` su at cs dot ucdavis.edu
2014-08-05  9:06 ` jakub at gcc dot gnu.org
2014-10-01 11:49 ` [Bug middle-end/61529] [5 " dcb314 at hotmail dot com
2014-10-17 16:10 ` renlin.li at arm dot com [this message]
2014-10-17 16:26 ` ktkachov at gcc dot gnu.org
2014-10-24  9:12 ` renlin.li at arm dot com
2014-10-28 15:46 ` renlin.li at arm dot com
2014-10-28 16:09 ` jiwang at gcc dot gnu.org
2014-11-10 17:53 ` jiwang at gcc dot gnu.org
2014-11-18 16:38 ` ramana 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-61529-4-AphzEuld8h@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).