public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58131] New: ICE in execute, tree-vrp.c:9616 (in both 32-bit and 64-bit modes)
@ 2013-08-11 21:45 su at cs dot ucdavis.edu
  2013-08-12  5:41 ` [Bug tree-optimization/58131] " mpolacek at gcc dot gnu.org
  2013-11-27 23:42 ` jakub at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: su at cs dot ucdavis.edu @ 2013-08-11 21:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58131

            Bug ID: 58131
           Summary: ICE in execute, tree-vrp.c:9616 (in both 32-bit and
                    64-bit modes)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

The following code causes an ICE when compiled with the current gcc trunk at
-O3 on x86_64-linux (both 32-bit and 64-bit modes). This is a regression from
4.8.x.

$ gcc-trunk -v
gcc version 4.9.0 20130811 (experimental) [trunk revision 201651] (GCC) 
$ gcc-trunk -O2 -c small.c  
$ gcc-4.8 -O3 -c small.c
$ gcc-trunk -O3 -c small.c
small.c: In function ‘foo’:
small.c:5:6: internal compiler error: Segmentation fault
 void foo ()
      ^
0x7e02bf crash_signal
    ../../gcc-trunk/gcc/toplev.c:335
0x808dfb ssa_default_def(function*, tree_node*)
    ../../gcc-trunk/gcc/tree-dfa.c:314
0x8090c0 get_or_create_ssa_default_def(function*, tree_node*)
    ../../gcc-trunk/gcc/tree-dfa.c:362
0x822a1a get_reaching_def
    ../../gcc-trunk/gcc/tree-into-ssa.c:1184
0x8289ca maybe_replace_use
    ../../gcc-trunk/gcc/tree-into-ssa.c:1784
0x8289ca rewrite_update_stmt
    ../../gcc-trunk/gcc/tree-into-ssa.c:1967
0x8289ca rewrite_update_enter_block
    ../../gcc-trunk/gcc/tree-into-ssa.c:2136
0xb43e9a walk_dominator_tree(dom_walk_data*, basic_block_def*)
    ../../gcc-trunk/gcc/domwalk.c:210
0x8216e3 rewrite_blocks
    ../../gcc-trunk/gcc/tree-into-ssa.c:2216
0x827c7e update_ssa(unsigned int)
    ../../gcc-trunk/gcc/tree-into-ssa.c:3319
0x940aa8 insert_range_assertions
    ../../gcc-trunk/gcc/tree-vrp.c:6102
0x940aa8 execute_vrp
    ../../gcc-trunk/gcc/tree-vrp.c:9515
0x940aa8 execute
    ../../gcc-trunk/gcc/tree-vrp.c:9616
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.
$ 



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


short a;
int b, c;
int d[1][4][2];

void foo ()
{
  int *e;
  for (b = 1;; b--)
    {
      if (*e)
    break;
      for (c = 2; c >= 0; c--)
        {
      *e |= d[0][3][b] != a;
      int *f = &d[0][3][b];
      *f = 0;
        }
    }
}
>From gcc-bugs-return-427687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 11 21:50:31 2013
Return-Path: <gcc-bugs-return-427687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14669 invoked by alias); 11 Aug 2013 21:50:31 -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 14642 invoked by uid 48); 11 Aug 2013 21:50:30 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53349] Internal compiler error with constexpr and recursive data type
Date: Sun, 11 Aug 2013 21:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-53349-4-WGYf7BAs3T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53349-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: 2013-08/txt/msg00611.txt.bz2
Content-length: 450

http://gcc.gnu.org/bugzilla/show_bug.cgi?idS349

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Original testcase compiles fine in mainline. I'm adding it and closing the bug.


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

* [Bug tree-optimization/58131] ICE in execute, tree-vrp.c:9616 (in both 32-bit and 64-bit modes)
  2013-08-11 21:45 [Bug tree-optimization/58131] New: ICE in execute, tree-vrp.c:9616 (in both 32-bit and 64-bit modes) su at cs dot ucdavis.edu
@ 2013-08-12  5:41 ` mpolacek at gcc dot gnu.org
  2013-11-27 23:42 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-08-12  5:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58131

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Dup (no ICE with -fno-tree-reassoc).

*** This bug has been marked as a duplicate of bug 57393 ***


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

* [Bug tree-optimization/58131] ICE in execute, tree-vrp.c:9616 (in both 32-bit and 64-bit modes)
  2013-08-11 21:45 [Bug tree-optimization/58131] New: ICE in execute, tree-vrp.c:9616 (in both 32-bit and 64-bit modes) su at cs dot ucdavis.edu
  2013-08-12  5:41 ` [Bug tree-optimization/58131] " mpolacek at gcc dot gnu.org
@ 2013-11-27 23:42 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-11-27 23:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58131

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 27 23:41:56 2013
New Revision: 205466

URL: http://gcc.gnu.org/viewcvs?rev=205466&root=gcc&view=rev
Log:
    PR middle-end/57393
    PR tree-optimization/58018
    PR tree-optimization/58131
    * gcc.dg/torture/pr57393-1.c: New test.
    * gcc.dg/torture/pr57393-2.c: New test.
    * gcc.dg/torture/pr57393-3.c: New test.
    * gcc.dg/torture/pr58018.c: New test.
    * gcc.dg/torture/pr58131.c: New test.
    * gfortran.dg/pr57393-1.f90: New test.
    * gfortran.dg/pr57393-2.f90: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr57393-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr57393-2.c
    trunk/gcc/testsuite/gcc.dg/torture/pr57393-3.c
    trunk/gcc/testsuite/gcc.dg/torture/pr58018.c
    trunk/gcc/testsuite/gcc.dg/torture/pr58131.c
    trunk/gcc/testsuite/gfortran.dg/pr57393-1.f90
    trunk/gcc/testsuite/gfortran.dg/pr57393-2.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2013-11-27 23:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-11 21:45 [Bug tree-optimization/58131] New: ICE in execute, tree-vrp.c:9616 (in both 32-bit and 64-bit modes) su at cs dot ucdavis.edu
2013-08-12  5:41 ` [Bug tree-optimization/58131] " mpolacek at gcc dot gnu.org
2013-11-27 23:42 ` jakub 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).