public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled
@ 2004-11-11  5:41 senor_fjord at yahoo dot com
  2004-11-11  5:50 ` [Bug tree-optimization/18425] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: senor_fjord at yahoo dot com @ 2004-11-11  5:41 UTC (permalink / raw)
  To: gcc-bugs

I reduced the problem to a small, albeit nonsensical, test case:

#include <vector>

void foo() {
  std::vector<char *> v;

  while (1)
    v.resize(1);
}

I'm compiling with -O3 -ftree-vectorize -march=pentium4 on gcc 4.0.0(20041110).
I think this is related to bug 18397, but since it's unconfirmed I figured it
may help to have another case.

-- 
           Summary: ICE in vector.tcc when -ftree-vectorize enabled
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: senor_fjord at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
@ 2004-11-11  5:50 ` pinskia at gcc dot gnu dot org
  2004-11-11  7:03 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11  5:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-11 05:50 -------
Confirmed but not reduced (reducing it right now) but I have a fix, once I reduce this I will submit the 
fix for this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
  2004-11-11  5:50 ` [Bug tree-optimization/18425] " pinskia at gcc dot gnu dot org
@ 2004-11-11  7:03 ` pinskia at gcc dot gnu dot org
  2004-11-11  7:14 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11  7:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-11 07:03 -------
Confirmed, reduced all the way down to:
char **      _M_allocate();
void
_M_fill_insert(unsigned int __n)
{
  char **__new_start = _M_allocate();
  char *__tmp = 0;
  for (; __n > 0; --__n, ++__new_start)
    *__new_start = __tmp;
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-11 07:03:51
               date|                            |


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
  2004-11-11  5:50 ` [Bug tree-optimization/18425] " pinskia at gcc dot gnu dot org
  2004-11-11  7:03 ` pinskia at gcc dot gnu dot org
@ 2004-11-11  7:14 ` pinskia at gcc dot gnu dot org
  2004-11-11  7:21 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11  7:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-11 07:14 -------
*** Bug 18397 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zephiris at gmail dot com


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
                   ` (2 preceding siblings ...)
  2004-11-11  7:14 ` pinskia at gcc dot gnu dot org
@ 2004-11-11  7:21 ` pinskia at gcc dot gnu dot org
  2004-11-11 15:12 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11  7:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-11 07:21 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00875.html>

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
                   ` (3 preceding siblings ...)
  2004-11-11  7:21 ` pinskia at gcc dot gnu dot org
@ 2004-11-11 15:12 ` pinskia at gcc dot gnu dot org
  2004-11-14 18:25 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11 15:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-11 15:11 -------
Dorit posted a better patch: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00889.html>.

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


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
                   ` (4 preceding siblings ...)
  2004-11-11 15:12 ` pinskia at gcc dot gnu dot org
@ 2004-11-14 18:25 ` cvs-commit at gcc dot gnu dot org
  2004-11-14 18:31 ` pinskia at gcc dot gnu dot org
  2004-11-14 20:45 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-14 18:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-14 18:25 -------
Subject: Bug 18425

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dorit@gcc.gnu.org	2004-11-14 18:25:35

Modified files:
	gcc            : ChangeLog tree-vectorizer.c 

Log message:
	2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
	Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR tree-opt/18425
	* tree-vectorize.c (vect_build_loop_niters): Do not insert
	NULL into the instruction stream. Initialize new_bb to NULL.
	(vect_update_ivs_after_vectorizer): Likewise.
	(vect_gen_niters_for_prolog_loop): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6333&r2=2.6334
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vectorizer.c.diff?cvsroot=gcc&r1=2.28&r2=2.29



-- 


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
                   ` (5 preceding siblings ...)
  2004-11-14 18:25 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-14 18:31 ` pinskia at gcc dot gnu dot org
  2004-11-14 20:45 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-14 18:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-14 18:31 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

* [Bug tree-optimization/18425] ICE in vector.tcc when -ftree-vectorize enabled
  2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
                   ` (6 preceding siblings ...)
  2004-11-14 18:31 ` pinskia at gcc dot gnu dot org
@ 2004-11-14 20:45 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-14 20:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-14 20:45 -------
Subject: Bug 18425

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dorit@gcc.gnu.org	2004-11-14 20:44:52

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg/vect: pr18400.c pr18425.c 

Log message:
	2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
	
	PR tree-opt/18400
	* gcc.dg/vect/pr18400.c: New test.
	
	2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
	Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR tree-opt/18425
	* gcc.dg/vect/pr18425.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4599&r2=1.4600
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/vect/pr18400.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/vect/pr18425.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

end of thread, other threads:[~2004-11-14 20:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-11  5:41 [Bug tree-optimization/18425] New: ICE in vector.tcc when -ftree-vectorize enabled senor_fjord at yahoo dot com
2004-11-11  5:50 ` [Bug tree-optimization/18425] " pinskia at gcc dot gnu dot org
2004-11-11  7:03 ` pinskia at gcc dot gnu dot org
2004-11-11  7:14 ` pinskia at gcc dot gnu dot org
2004-11-11  7:21 ` pinskia at gcc dot gnu dot org
2004-11-11 15:12 ` pinskia at gcc dot gnu dot org
2004-11-14 18:25 ` cvs-commit at gcc dot gnu dot org
2004-11-14 18:31 ` pinskia at gcc dot gnu dot org
2004-11-14 20:45 ` cvs-commit at gcc dot gnu 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).