public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/68146] [6 Regression] ice in gimple_stmt_nonnegative_warnv_p with -O2
Date: Thu, 29 Oct 2015 15:06:00 -0000	[thread overview]
Message-ID: <bug-68146-4-1MoEXjdWSv@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-68146-4@http.gcc.gnu.org/bugzilla/>

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-29
                 CC|                            |rguenth at gcc dot gnu.org,
                   |                            |rsandifo at gcc dot gnu.org
          Component|fortran                     |middle-end
   Target Milestone|---                         |6.0
            Summary|ice in                      |[6 Regression] ice in
                   |gimple_stmt_nonnegative_war |gimple_stmt_nonnegative_war
                   |nv_p with -O2               |nv_p with -O2
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.

We enter

12877         return (!name_registered_for_update_p (t)
12878                 && depth < PARAM_VALUE (PARAM_MAX_SSA_NAME_QUERY_DEPTH)
12879                 && gimple_stmt_nonnegative_warnv_p (SSA_NAME_DEF_STMT
(t),
12880                                                     strict_overflow_p,
depth));

with a released SSA name (TREE_TYPE == NULL)

#0  0x0000000000b38160 in gimple_code (g=0x0)
    at /space/rguenther/src/svn/trunk/gcc/gimple.h:1661
#1  0x0000000000b4d90d in gimple_stmt_nonnegative_warnv_p (stmt=<gimple 0x0>, 
    strict_overflow_p=0x7fffffffd5ae, depth=1)
    at /space/rguenther/src/svn/trunk/gcc/gimple-fold.c:6260
#2  0x0000000000af455b in tree_single_nonnegative_warnv_p (
    t=<ssa_name 0x7ffff52dbbd0>, strict_overflow_p=0x7fffffffd5ae, depth=1)
    at /space/rguenther/src/svn/trunk/gcc/fold-const.c:12880
#3  0x0000000000b4d8bf in gimple_phi_nonnegative_warnv_p (stmt=
    <gimple_phi 0x7ffff58a0600>, strict_overflow_p=0x7fffffffd5ae, depth=0)
    at /space/rguenther/src/svn/trunk/gcc/gimple-fold.c:6245
#4  0x0000000000b4d962 in gimple_stmt_nonnegative_warnv_p (
    stmt=<gimple_phi 0x7ffff58a0600>, strict_overflow_p=0x7fffffffd5ae, 
    depth=0) at /space/rguenther/src/svn/trunk/gcc/gimple-fold.c:6270
#5  0x0000000000af455b in tree_single_nonnegative_warnv_p (
    t=<ssa_name 0x7ffff52dbb40>, strict_overflow_p=0x7fffffffd5ae, depth=0)
    at /space/rguenther/src/svn/trunk/gcc/fold-const.c:12880
#6  0x0000000000af5176 in tree_expr_nonnegative_warnv_p (
    t=<ssa_name 0x7ffff52dbb40>, strict_overflow_p=0x7fffffffd5ae, depth=0)
    at /space/rguenther/src/svn/trunk/gcc/fold-const.c:13146
#7  0x0000000000af51bf in tree_expr_nonnegative_p (t=<ssa_name 0x7ffff52dbb40>)
    at /space/rguenther/src/svn/trunk/gcc/fold-const.c:13162
#8  0x000000000133c63a in generic_simplify_ABS_EXPR (loc=2147488880, 
    code=ABS_EXPR, type=<real_type 0x7ffff68e55e8 real(kind=8)>, 
    op0=<ssa_name 0x7ffff52dbb40>) at generic-match.c:7996
#9  0x0000000001346b58 in generic_simplify (loc=2147488880, code=ABS_EXPR, 
    type=<real_type 0x7ffff68e55e8 real(kind=8)>, 
    op0=<ssa_name 0x7ffff52dbb40>) at generic-match.c:10127
#10 0x0000000000adc246 in fold_unary_loc (loc=2147488880, code=ABS_EXPR, 
    type=<real_type 0x7ffff68e55e8 real(kind=8)>, 
    op0=<ssa_name 0x7ffff52dbb40>)
    at /space/rguenther/src/svn/trunk/gcc/fold-const.c:7596
#11 0x0000000000af2ad8 in fold_build1_stat_loc (loc=2147488880, code=ABS_EXPR, 
    type=<real_type 0x7ffff68e55e8 real(kind=8)>, 
    op0=<ssa_name 0x7ffff52dbb40>)
    at /space/rguenther/src/svn/trunk/gcc/fold-const.c:12267
#12 0x0000000000eb1ec6 in gimplify_build1 (gsi=0x7fffffffdad0, code=ABS_EXPR, 
    type=<real_type 0x7ffff68e55e8 real(kind=8)>, a=<ssa_name 0x7ffff52dbb40>)
    at /space/rguenther/src/svn/trunk/gcc/tree-cfg.c:8541
#13 0x0000000000ebd3b4 in expand_complex_div_wide (gsi=0x7fffffffdad0, 
    inner_type=<real_type 0x7ffff68e55e8 real(kind=8)>, 
    ar=<ssa_name 0x7ffff52ded80>, ai=<ssa_name 0x7ffff52deea0>, 
    br=<ssa_name 0x7ffff52dbb40>, bi=<ssa_name 0x7ffff52dbb88>, code=RDIV_EXPR)
    at /space/rguenther/src/svn/trunk/gcc/tree-complex.c:1126


  reply	other threads:[~2015-10-29 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29 14:51 [Bug fortran/68146] New: " dcb314 at hotmail dot com
2015-10-29 15:06 ` rguenth at gcc dot gnu.org [this message]
2015-10-29 16:00 ` [Bug middle-end/68146] [6 Regression] " dominiq at lps dot ens.fr

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-68146-4-1MoEXjdWSv@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).