public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/66357] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662
@ 2015-05-31 23:44 su at cs dot ucdavis.edu
  2015-06-01  6:51 ` [Bug tree-optimization/66357] [6 Regression] " miyuki at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-05-31 23:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66357
           Summary: ICE on valid code at -O1, -O2 and -O3 on
                    x86_64-linux-gnu in verify_loop_structure, at
                    cfgloop.c:1662
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

The following code causes an ICE when compiled with the current gcc trunk at
-O1, -O2 and -O3 on x86_64-linux-gnu in both 32-bit and 64-bit modes. 

It is a regression from 5.1.x. 


$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20150531 (experimental) [trunk revision 223897] (GCC) 
$ 
$ gcc-trunk -O0 -c small.c
$ gcc-trunk -Os -c small.c
$ gcc-5.1 -O1 -c small.c
$ 
$ gcc-trunk -O1 -c small.c
small.c: In function ‘fn1’:
small.c:5:1: error: size of loop 1 should be 3, not 2
 fn1 ()
 ^
small.c:5:1: error: bb 16 does not belong to loop 1
small.c:5:1: error: bb 17 does not belong to loop 1
small.c:5:1: error: bb 11 does not belong to loop 1
small.c:5:1: error: loop 1’s header does not belong directly to it
small.c:5:1: internal compiler error: in verify_loop_structure, at
cfgloop.c:1662
0x6f4b85 verify_loop_structure()
        ../../gcc-trunk/gcc/cfgloop.c:1662
0x9929e0 fix_loop_structure(bitmap_head*)
        ../../gcc-trunk/gcc/loop-init.c:344
0xb3a5ac repair_loop_structures
        ../../gcc-trunk/gcc/tree-cfgcleanup.c:784
0xb3a5ac cleanup_tree_cfg()
        ../../gcc-trunk/gcc/tree-cfgcleanup.c:814
0xa314d4 execute_function_todo
        ../../gcc-trunk/gcc/passes.c:1899
0xa31d73 execute_todo
        ../../gcc-trunk/gcc/passes.c:2003
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.
$ 


---------------------------------


int a, c, e, f;
volatile int d;

void
fn1 ()
{
  if (!e)
    for (; a; a++)
      {
        if (e)
          for (d++; d;)
            ;
        else
          for (c = 0; c; --c)
            ;
        if (f)
          for (;;)
            {
              if (e)
                break;
              a = 0;
            }
      }
}
>From gcc-bugs-return-487668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jun 01 03:24:55 2015
Return-Path: <gcc-bugs-return-487668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50558 invoked by alias); 1 Jun 2015 03:24:54 -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 50513 invoked by uid 48); 1 Jun 2015 03:24:50 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66331] gfortran.dg/continuation_13.f90 execution failure
Date: Mon, 01 Jun 2015 03:24: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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: bug_status resolution
Message-ID: <bug-66331-4-pgErOCsGin@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66331-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66331-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-06/txt/msg00000.txt.bz2
Content-length: 435

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Not a bug


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

* [Bug tree-optimization/66357] [6 Regression] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662
  2015-05-31 23:44 [Bug tree-optimization/66357] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662 su at cs dot ucdavis.edu
@ 2015-06-01  6:51 ` miyuki at gcc dot gnu.org
  2015-06-01  8:16 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: miyuki at gcc dot gnu.org @ 2015-06-01  6:51 UTC (permalink / raw)
  To: gcc-bugs

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

Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-06-01
                 CC|                            |miyuki at gcc dot gnu.org
            Summary|ICE on valid code at -O1,   |[6 Regression] ICE on valid
                   |-O2 and -O3 on              |code at -O1, -O2 and -O3 on
                   |x86_64-linux-gnu in         |x86_64-linux-gnu in
                   |verify_loop_structure, at   |verify_loop_structure, at
                   |cfgloop.c:1662              |cfgloop.c:1662
     Ever confirmed|0                           |1

--- Comment #1 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
Started with r223861.


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

* [Bug tree-optimization/66357] [6 Regression] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662
  2015-05-31 23:44 [Bug tree-optimization/66357] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662 su at cs dot ucdavis.edu
  2015-06-01  6:51 ` [Bug tree-optimization/66357] [6 Regression] " miyuki at gcc dot gnu.org
@ 2015-06-01  8:16 ` rguenth at gcc dot gnu.org
  2015-06-01 13:59 ` rguenth at gcc dot gnu.org
  2015-06-01 13:59 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-01  8:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Target Milestone|---                         |6.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.


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

* [Bug tree-optimization/66357] [6 Regression] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662
  2015-05-31 23:44 [Bug tree-optimization/66357] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662 su at cs dot ucdavis.edu
                   ` (2 preceding siblings ...)
  2015-06-01 13:59 ` rguenth at gcc dot gnu.org
@ 2015-06-01 13:59 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-01 13:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Jun  1 13:58:50 2015
New Revision: 223980

URL: https://gcc.gnu.org/viewcvs?rev=223980&root=gcc&view=rev
Log:
2015-06-01  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/66349
        PR tree-optimization/66352
        PR tree-optimization/66357
        * gcc.dg/torture/pr66357.c: New testcase.
        * gcc.dg/torture/pr66349.c: Likewise.
        * gfortran.fortran-torture/compile/pr66352.f90: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr66349.c
    trunk/gcc/testsuite/gcc.dg/torture/pr66357.c
    trunk/gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/66357] [6 Regression] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662
  2015-05-31 23:44 [Bug tree-optimization/66357] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662 su at cs dot ucdavis.edu
  2015-06-01  6:51 ` [Bug tree-optimization/66357] [6 Regression] " miyuki at gcc dot gnu.org
  2015-06-01  8:16 ` rguenth at gcc dot gnu.org
@ 2015-06-01 13:59 ` rguenth at gcc dot gnu.org
  2015-06-01 13:59 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-01 13:59 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Patch reverted.


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

end of thread, other threads:[~2015-06-01 13:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-31 23:44 [Bug tree-optimization/66357] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in verify_loop_structure, at cfgloop.c:1662 su at cs dot ucdavis.edu
2015-06-01  6:51 ` [Bug tree-optimization/66357] [6 Regression] " miyuki at gcc dot gnu.org
2015-06-01  8:16 ` rguenth at gcc dot gnu.org
2015-06-01 13:59 ` rguenth at gcc dot gnu.org
2015-06-01 13:59 ` rguenth at gcc dot gnu.org

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