public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31041]  New: ice for legal code with -O2 -ftree-vectorize
@ 2007-03-05 10:50 dcb314 at hotmail dot com
  2007-03-05 10:51 ` [Bug c/31041] " dcb314 at hotmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2007-03-05 10:50 UTC (permalink / raw)
  To: gcc-bugs

I just tried to compile a Suse Linux package 
with the GNU C++ compiler version 4.3 snapshot 20070302.

The compiler said

utrie.c: In function 'utrie_open_3_4':
utrie.c:51: error: invalid operand to binary operator
(int) j_93;

utrie.c:51: error: incorrect sharing of tree nodes
vect_cst_.1224_132 = {(int) j_93, stmp_var_.1221_129, stmp_var_.1222_130,
stmp_var_.1223_131};

(int) j_93;

utrie.c:51: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. Flags -O2 -ftree-vectorize required.


-- 
           Summary: ice for legal code with -O2 -ftree-vectorize
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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


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

* [Bug c/31041] ice for legal code with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
@ 2007-03-05 10:51 ` dcb314 at hotmail dot com
  2007-03-05 13:09 ` tbm at cyrius dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2007-03-05 10:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dcb314 at hotmail dot com  2007-03-05 10:50 -------
Created an attachment (id=13144)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13144&action=view)
C source code


-- 


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


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

* [Bug c/31041] ice for legal code with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
  2007-03-05 10:51 ` [Bug c/31041] " dcb314 at hotmail dot com
@ 2007-03-05 13:09 ` tbm at cyrius dot com
  2007-03-05 13:11 ` [Bug c/31041] [4.3 Regression] ice (verify_stmts failed: invalid operand to binary operator) " tbm at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tbm at cyrius dot com @ 2007-03-05 13:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tbm at cyrius dot com  2007-03-05 13:09 -------
Reduced testcase:

typedef int int32_t;
struct UNewTrie
{
  int32_t index[(0x110000 >> 1)];
};
typedef struct UNewTrie UNewTrie;
utrie_open_3_4 ()
{
  UNewTrie *trie;
  int32_t i, j;
    {
      i = 0;
      do
        {
          trie->index[i++] = j;
          j += 1;
        }
      while (i < 5);
    }
}


-- 

tbm at cyrius dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tbm at cyrius dot com


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


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

* [Bug c/31041] [4.3 Regression] ice (verify_stmts failed: invalid operand to binary operator) with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
  2007-03-05 10:51 ` [Bug c/31041] " dcb314 at hotmail dot com
  2007-03-05 13:09 ` tbm at cyrius dot com
@ 2007-03-05 13:11 ` tbm at gcc dot gnu dot org
  2007-03-05 13:47 ` [Bug c/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator " rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tbm at gcc dot gnu dot org @ 2007-03-05 13:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tbm at gcc dot gnu dot org  2007-03-05 13:11 -------
confirmed with GCC 4.3.0 20070303.  4.2.0 works.


-- 

tbm at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to work|                            |4.2.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-03-05 13:11:16
               date|                            |
            Summary|ice for legal code with -O2 |[4.3 Regression] ice
                   |-ftree-vectorize            |(verify_stmts failed:
                   |                            |invalid operand to binary
                   |                            |operator) with -O2 -ftree-
                   |                            |vectorize
   Target Milestone|---                         |4.3.0


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


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

* [Bug c/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2007-03-05 13:11 ` [Bug c/31041] [4.3 Regression] ice (verify_stmts failed: invalid operand to binary operator) " tbm at gcc dot gnu dot org
@ 2007-03-05 13:47 ` rguenth at gcc dot gnu dot org
  2007-03-05 20:16 ` [Bug tree-optimization/31041] " dorit at il dot ibm dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-05 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2007-03-05 13:46 -------
Two times invalid gimple:

<L20>:;
  stmp_var_.41_63 = (int) j_34 + 1; 
  stmp_var_.42_64 = stmp_var_.41_63 + 1;
  stmp_var_.43_65 = stmp_var_.42_64 + 1;
  vect_cst_.44_66 = {(int) j_34, stmp_var_.41_63, stmp_var_.42_64,
stmp_var_.43_65};

in tree-vect-transform.c:get_initial_def_for_induction we fail to gimplify
the init_expr.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dorit at il dot ibm dot com


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


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

* [Bug tree-optimization/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2007-03-05 13:47 ` [Bug c/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator " rguenth at gcc dot gnu dot org
@ 2007-03-05 20:16 ` dorit at il dot ibm dot com
  2007-03-17 14:43 ` dorit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dorit at il dot ibm dot com @ 2007-03-05 20:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dorit at il dot ibm dot com  2007-03-05 20:15 -------
I'm travelling now, but can prepare a fix when I'm back (next week).


-- 


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


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

* [Bug tree-optimization/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2007-03-05 20:16 ` [Bug tree-optimization/31041] " dorit at il dot ibm dot com
@ 2007-03-17 14:43 ` dorit at gcc dot gnu dot org
  2007-04-15  6:09 ` pinskia at gcc dot gnu dot org
  2008-03-03 16:21 ` tprince at computer dot org
  7 siblings, 0 replies; 9+ messages in thread
From: dorit at gcc dot gnu dot org @ 2007-03-17 14:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dorit at gcc dot gnu dot org  2007-03-17 14:43 -------
Subject: Bug 31041

Author: dorit
Date: Sat Mar 17 14:43:30 2007
New Revision: 123023

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123023
Log:
        PR tree-optimization/31041
        * tree-vect-transform.c (get_initial_def_for_induction): Call
        force_gimple_operand.


Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr31041.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-transform.c


-- 


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


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

* [Bug tree-optimization/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2007-03-17 14:43 ` dorit at gcc dot gnu dot org
@ 2007-04-15  6:09 ` pinskia at gcc dot gnu dot org
  2008-03-03 16:21 ` tprince at computer dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-15  6:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-04-15 07:09 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug tree-optimization/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator with -O2 -ftree-vectorize
  2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2007-04-15  6:09 ` pinskia at gcc dot gnu dot org
@ 2008-03-03 16:21 ` tprince at computer dot org
  7 siblings, 0 replies; 9+ messages in thread
From: tprince at computer dot org @ 2008-03-03 16:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from tprince at computer dot org  2008-03-03 16:20 -------
pr31341 has a patch attached to allow the test case to run on targets where
there is checking for conflicts with stdint.h


-- 


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


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

end of thread, other threads:[~2008-03-03 16:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-05 10:50 [Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize dcb314 at hotmail dot com
2007-03-05 10:51 ` [Bug c/31041] " dcb314 at hotmail dot com
2007-03-05 13:09 ` tbm at cyrius dot com
2007-03-05 13:11 ` [Bug c/31041] [4.3 Regression] ice (verify_stmts failed: invalid operand to binary operator) " tbm at gcc dot gnu dot org
2007-03-05 13:47 ` [Bug c/31041] [4.3 Regression] verify_stmts failed: invalid operand to binary operator " rguenth at gcc dot gnu dot org
2007-03-05 20:16 ` [Bug tree-optimization/31041] " dorit at il dot ibm dot com
2007-03-17 14:43 ` dorit at gcc dot gnu dot org
2007-04-15  6:09 ` pinskia at gcc dot gnu dot org
2008-03-03 16:21 ` tprince at computer dot 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).