public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
@ 2012-10-09 18:11 d.g.gorbachev at gmail dot com
  2012-10-09 18:15 ` [Bug tree-optimization/54877] " d.g.gorbachev at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-10-09 18:11 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54877
           Summary: [4.7/4.8 Regression] ICE: tree check: expected
                    ssa_name, have real_cst in copy_ssa_name_fn, at
                    tree-ssanames.c:335
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.g.gorbachev@gmail.com


Created attachment 28401
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28401
Backtrace

Compile with `-O3 -funsafe-math-optimizations' (or -Ofast):

=========== >8 ===========
int main(void)
{
  double d = 0;
  int i;

  for (i = 0; i < 8; i++)
    d--;

  return (int) d;
}
=========== 8< ===========


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

* [Bug tree-optimization/54877] [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
  2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
@ 2012-10-09 18:15 ` d.g.gorbachev at gmail dot com
  2012-10-09 18:21 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-10-09 18:15 UTC (permalink / raw)
  To: gcc-bugs


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

Dmitry Gorbachev <d.g.gorbachev at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
      Known to work|                            |4.6.4
      Known to fail|                            |4.7.3, 4.8.0

--- Comment #1 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2012-10-09 18:15:13 UTC ---
GCC 4.7.3 20121006 (prerelease):

internal compiler error: tree check: expected ssa_name, have real_cst in
vect_is_simple_reduction_1, at tree-vect-loop.c:2260


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

* [Bug tree-optimization/54877] [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
  2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
  2012-10-09 18:15 ` [Bug tree-optimization/54877] " d.g.gorbachev at gmail dot com
@ 2012-10-09 18:21 ` jakub at gcc dot gnu.org
  2012-10-09 18:56 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-10-09 18:21 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-10-09
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.7.3
     Ever Confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-09 18:20:37 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178728


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

* [Bug tree-optimization/54877] [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
  2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
  2012-10-09 18:15 ` [Bug tree-optimization/54877] " d.g.gorbachev at gmail dot com
  2012-10-09 18:21 ` jakub at gcc dot gnu.org
@ 2012-10-09 18:56 ` jakub at gcc dot gnu.org
  2012-10-10 17:47 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-10-09 18:56 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-09 18:56:22 UTC ---
Created attachment 28403
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28403
gcc48-pr54877.patch

Untested fix.


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

* [Bug tree-optimization/54877] [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
  2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
                   ` (2 preceding siblings ...)
  2012-10-09 18:56 ` jakub at gcc dot gnu.org
@ 2012-10-10 17:47 ` jakub at gcc dot gnu.org
  2012-10-23  7:58 ` [Bug tree-optimization/54877] [4.7 " jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-10-10 17:47 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-10 17:47:19 UTC ---
Author: jakub
Date: Wed Oct 10 17:47:05 2012
New Revision: 192322

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192322
Log:
    PR tree-optimization/54877
    * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
    use make_ssa_name instead of copy_ssa_name.

    * gcc.dg/torture/pr54877.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr54877.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-loop.c


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

* [Bug tree-optimization/54877] [4.7 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
  2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
                   ` (3 preceding siblings ...)
  2012-10-10 17:47 ` jakub at gcc dot gnu.org
@ 2012-10-23  7:58 ` jakub at gcc dot gnu.org
  2012-11-05 15:06 ` jakub at gcc dot gnu.org
  2012-12-03 15:01 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-10-23  7:58 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.7/4.8 Regression] ICE:   |[4.7 Regression] ICE: tree
                   |tree check: expected        |check: expected ssa_name,
                   |ssa_name, have real_cst in  |have real_cst in
                   |copy_ssa_name_fn, at        |copy_ssa_name_fn, at
                   |tree-ssanames.c:335         |tree-ssanames.c:335

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-23 07:57:49 UTC ---
Fixed on the trunk so far.


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

* [Bug tree-optimization/54877] [4.7 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
  2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
                   ` (4 preceding siblings ...)
  2012-10-23  7:58 ` [Bug tree-optimization/54877] [4.7 " jakub at gcc dot gnu.org
@ 2012-11-05 15:06 ` jakub at gcc dot gnu.org
  2012-12-03 15:01 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-11-05 15:06 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-05 15:05:48 UTC ---
Author: jakub
Date: Mon Nov  5 15:05:42 2012
New Revision: 193164

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193164
Log:
    Backported from mainline
    2012-10-10  Jakub Jelinek  <jakub@redhat.com>

    PR tree-optimization/54877
    * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
    use make_ssa_name instead of copy_ssa_name.

    * gcc.dg/torture/pr54877.c: New test.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr54877.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/tree-vect-loop.c


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

* [Bug tree-optimization/54877] [4.7 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335
  2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
                   ` (5 preceding siblings ...)
  2012-11-05 15:06 ` jakub at gcc dot gnu.org
@ 2012-12-03 15:01 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-03 15:01 UTC (permalink / raw)
  To: gcc-bugs


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

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

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-03 15:01:04 UTC ---
Fixed.


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

end of thread, other threads:[~2012-12-03 15:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-09 18:11 [Bug tree-optimization/54877] New: [4.7/4.8 Regression] ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335 d.g.gorbachev at gmail dot com
2012-10-09 18:15 ` [Bug tree-optimization/54877] " d.g.gorbachev at gmail dot com
2012-10-09 18:21 ` jakub at gcc dot gnu.org
2012-10-09 18:56 ` jakub at gcc dot gnu.org
2012-10-10 17:47 ` jakub at gcc dot gnu.org
2012-10-23  7:58 ` [Bug tree-optimization/54877] [4.7 " jakub at gcc dot gnu.org
2012-11-05 15:06 ` jakub at gcc dot gnu.org
2012-12-03 15:01 ` 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).