public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/68021] New: ice in rewrite_use_nonlinear_expr with -O3
@ 2015-10-19 18:07 dcb314 at hotmail dot com
  2015-10-20  8:09 ` [Bug tree-optimization/68021] [6 Regression] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2015-10-19 18:07 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 68021
           Summary: ice in rewrite_use_nonlinear_expr with -O3
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 36540
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36540&action=edit
C++ source code

For today's trunk gcc on x64_64

$ ../results/bin/g++ -O3 -c bug237.cc
svga_cirrus.cc: In function ‘void bitblt_rop_bkwd_src_and_dst(Bit8u*, const
Bit8u*, int, int, int, int)’:
svga_cirrus.cc:3304:13: internal compiler error: in rewrite_use_nonlinear_expr,
at tree-ssa-loop-ivopts.c:6916
0xf044d4 rewrite_use_nonlinear_expr
        ../../src/trunk/gcc/tree-ssa-loop-ivopts.c:6916
0xf044d4 rewrite_use
        ../../src/trunk/gcc/tree-ssa-loop-ivopts.c:7177
0xf044d4 rewrite_uses
        ../../src/trunk/gcc/tree-ssa-loop-ivopts.c:7210
0xf0b190 tree_ssa_iv_optimize_loop
        ../../src/trunk/gcc/tree-ssa-loop-ivopts.c:7550
0xf0b190 tree_ssa_iv_optimize()
        ../../src/trunk/gcc/tree-ssa-loop-ivopts.c:7582
0xf24fc0 execute
        ../../src/trunk/gcc/tree-ssa-loop.c:412
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

tree-ssa-loop-ivopts.c:6916 is

  gcc_assert (comp != NULL_TREE);
>From gcc-bugs-return-499958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 19 18:16:13 2015
Return-Path: <gcc-bugs-return-499958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40460 invoked by alias); 19 Oct 2015 18:16:13 -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 40308 invoked by uid 55); 19 Oct 2015 18:16:09 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/67987] ICE on declaring and initializing character with negative len
Date: Mon, 19 Oct 2015 18:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: kargl at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67987-4-kU6TYJTCQM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67987-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67987-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: 2015-10/txt/msg01513.txt.bz2
Content-length: 1301

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

--- Comment #6 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Mon Oct 19 18:15:36 2015
New Revision: 228999

URL: https://gcc.gnu.org/viewcvs?rev"8999&root=gcc&view=rev
Log:
2015-10-19  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/67987
        * decl.c (char_len_param_value): Unwrap unlong line.  If LEN < 0,
        force it to zero per the Fortran 90, 95, 2003, and 2008 Standards.
        * resolve.c (gfc_resolve_substring_charlen): Unwrap unlong line.
        If 'start' is larger than 'end', length of substring is negative,
        so explicitly set it to zero.
        (resolve_charlen): Remove -Wsurprising warning.  Update comment to
        reflect that the text is from the F2008 standard.

2015-10-19  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/67987
        * gfortran.df/pr67987.f90: New test.
        * gfortran.dg/char_length_2.f90: Update testcase.

Added:
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr67987.f90
Modified:
    branches/gcc-5-branch/gcc/fortran/ChangeLog
    branches/gcc-5-branch/gcc/fortran/decl.c
    branches/gcc-5-branch/gcc/fortran/resolve.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/char_length_2.f90


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3
  2015-10-19 18:07 [Bug c++/68021] New: ice in rewrite_use_nonlinear_expr with -O3 dcb314 at hotmail dot com
@ 2015-10-20  8:09 ` rguenth at gcc dot gnu.org
  2015-10-20  9:09 ` mpolacek at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-20  8:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3
  2015-10-19 18:07 [Bug c++/68021] New: ice in rewrite_use_nonlinear_expr with -O3 dcb314 at hotmail dot com
  2015-10-20  8:09 ` [Bug tree-optimization/68021] [6 Regression] " rguenth at gcc dot gnu.org
@ 2015-10-20  9:09 ` mpolacek at gcc dot gnu.org
  2015-10-20 16:05 ` ysrumyan at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-10-20  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r228599.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3
  2015-10-19 18:07 [Bug c++/68021] New: ice in rewrite_use_nonlinear_expr with -O3 dcb314 at hotmail dot com
  2015-10-20  8:09 ` [Bug tree-optimization/68021] [6 Regression] " rguenth at gcc dot gnu.org
  2015-10-20  9:09 ` mpolacek at gcc dot gnu.org
@ 2015-10-20 16:05 ` ysrumyan at gmail dot com
  2015-10-21  9:48 ` ysrumyan at gmail dot com
  2015-10-21 12:46 ` ysrumyan at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ysrumyan at gmail dot com @ 2015-10-20 16:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
It looks like unswitching of outer loops pass simply triggers the issue and
this tree-ssa-loop-ivopts issue.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3
  2015-10-19 18:07 [Bug c++/68021] New: ice in rewrite_use_nonlinear_expr with -O3 dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2015-10-20 16:05 ` ysrumyan at gmail dot com
@ 2015-10-21  9:48 ` ysrumyan at gmail dot com
  2015-10-21 12:46 ` ysrumyan at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ysrumyan at gmail dot com @ 2015-10-21  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
Indeed, there is an issue with outer-loop unswitching - it should not be
performed for infinite loops. But if we slightly modify test if finite
outer-loop we will get the same error: 
char a;
void fn1(char *p1, int p2, int p3) {
  int i, x;
  for (i = 0; i < 10; i++) {
    for (x = 0; x < p3; x++) {
      *p1 = a;
      p1--;
    }
    p1 += p2;
  }
}

I assume that  sccp is responsible for it.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3
  2015-10-19 18:07 [Bug c++/68021] New: ice in rewrite_use_nonlinear_expr with -O3 dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2015-10-21  9:48 ` ysrumyan at gmail dot com
@ 2015-10-21 12:46 ` ysrumyan at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ysrumyan at gmail dot com @ 2015-10-21 12:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
Hi HJ

I added my evaluation to bug. It looks like my changes are not
responsible for ICE.

2015-10-20 13:20 GMT+03:00 hjl.tools at gmail dot com
<gcc-bugzilla@gcc.gnu.org>:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021
>
> H.J. Lu <hjl.tools at gmail dot com> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |ysrumyan at gmail dot com
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-21 12:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19 18:07 [Bug c++/68021] New: ice in rewrite_use_nonlinear_expr with -O3 dcb314 at hotmail dot com
2015-10-20  8:09 ` [Bug tree-optimization/68021] [6 Regression] " rguenth at gcc dot gnu.org
2015-10-20  9:09 ` mpolacek at gcc dot gnu.org
2015-10-20 16:05 ` ysrumyan at gmail dot com
2015-10-21  9:48 ` ysrumyan at gmail dot com
2015-10-21 12:46 ` ysrumyan at gmail dot com

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).