public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre)
@ 2005-03-16  2:08 commie1 at gmx dot net
  2005-03-16  2:12 ` [Bug tree-optimization/20490] " commie1 at gmx dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: commie1 at gmx dot net @ 2005-03-16  2:08 UTC (permalink / raw)
  To: gcc-bugs

/tmp/gccml/libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1 -fpreprocessed blah.i -quiet
-dumpbase blah.c -march=i386 -auxbase blah -version -o blah.s -ftree-pre

GNU C version 4.1.0 20050316 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.1.0 20050316 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
blah.c: In function 'blah':
blah.c:7: error: Invalid operand to unary operator
-xD.1134_4;

blah.c:7: error: Invalid operand to unary operator
-yD.1135_6;

blah.c:7: internal compiler error: verify_stmts failed.

Configured with: ../gcc/configure --prefix=/tmp/gccml --enable-languages=c
--disable-nls --disable-libmudflap

========================================================

static int  a;
static int  b;

typedef int gint;

int blah ()
{
  gint x = a;
  gint y = b;

  x *= (x < 0) ? -1 : 0;
  y *= (y < 0) ? -1 : 0;

  return (y * x);

}

========================================================

-- 
           Summary: ICE: verify_stmts failed. (with -O -ftree-pre)
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: commie1 at gmx dot net
                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=20490


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

* [Bug tree-optimization/20490] ICE: verify_stmts failed. (with -O -ftree-pre)
  2005-03-16  2:08 [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre) commie1 at gmx dot net
@ 2005-03-16  2:12 ` commie1 at gmx dot net
  2005-03-16  2:17 ` [Bug tree-optimization/20490] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: commie1 at gmx dot net @ 2005-03-16  2:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From commie1 at gmx dot net  2005-03-16 02:11 -------
Sorry, the commandline I gave is missing the -O. So it should be:
/tmp/gccml/libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1 -fpreprocessed blah.i -quiet
-dumpbase blah.c -march=i386 -auxbase blah -version -o blah.s -O -ftree-pre

-- 


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


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

* [Bug tree-optimization/20490] [4.0 Regression] ICE: verify_stmts failed. (with -O -ftree-pre)
  2005-03-16  2:08 [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre) commie1 at gmx dot net
  2005-03-16  2:12 ` [Bug tree-optimization/20490] " commie1 at gmx dot net
@ 2005-03-16  2:17 ` pinskia at gcc dot gnu dot org
  2005-03-16 16:23 ` [Bug tree-optimization/20490] [4.1 " cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-16  2:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-16 02:17 -------
Confirmed, this is 4.1 regression.

Before in 4.0, we got:
  pretmp.2_11 = x_4 * -1;

But after the patch to fold that to - x_4, we get:
  pretmp.2_11 = (int) -x_4;

The problem is that the type for x_4 is gint so we need a NOP_EXPR so we get the correct types (there is 
a fold_convert in fold).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dberlin at gcc dot gnu dot
                   |                            |org, pinskia at gcc dot gnu
                   |                            |dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-16 02:17:17
               date|                            |
            Summary|ICE: verify_stmts failed.   |[4.0 Regression] ICE:
                   |(with -O -ftree-pre)        |verify_stmts failed. (with -
                   |                            |O -ftree-pre)
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/20490] [4.1 Regression] ICE: verify_stmts failed. (with -O -ftree-pre)
  2005-03-16  2:08 [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre) commie1 at gmx dot net
                   ` (2 preceding siblings ...)
  2005-03-16 16:23 ` [Bug tree-optimization/20490] [4.1 " cvs-commit at gcc dot gnu dot org
@ 2005-03-16 16:23 ` dberlin at gcc dot gnu dot org
  2005-04-17 23:41 ` cvs-commit at gcc dot gnu dot org
  2005-04-17 23:47 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-03-16 16:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-03-16 16:23 -------
Fixed

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


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


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

* [Bug tree-optimization/20490] [4.1 Regression] ICE: verify_stmts failed. (with -O -ftree-pre)
  2005-03-16  2:08 [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre) commie1 at gmx dot net
  2005-03-16  2:12 ` [Bug tree-optimization/20490] " commie1 at gmx dot net
  2005-03-16  2:17 ` [Bug tree-optimization/20490] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-03-16 16:23 ` cvs-commit at gcc dot gnu dot org
  2005-03-16 16:23 ` dberlin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-16 16:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-16 16:23 -------
Subject: Bug 20490

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dberlin@gcc.gnu.org	2005-03-16 16:22:46

Modified files:
	gcc            : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg/tree-ssa: pr20490.c 
Removed files:
	gcc/testsuite/gcc.dg/tree-ssa: pr20940.c 

Log message:
	Fix PR tree-optimization/20490
	not 20940

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7872&r2=2.7873
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr20490.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr20940.c.diff?cvsroot=gcc&r1=1.1&r2=NONE



-- 


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


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

* [Bug tree-optimization/20490] [4.1 Regression] ICE: verify_stmts failed. (with -O -ftree-pre)
  2005-03-16  2:08 [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre) commie1 at gmx dot net
                   ` (3 preceding siblings ...)
  2005-03-16 16:23 ` dberlin at gcc dot gnu dot org
@ 2005-04-17 23:41 ` cvs-commit at gcc dot gnu dot org
  2005-04-17 23:47 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-17 23:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-17 23:40 -------
Subject: Bug 20490

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	dberlin@gcc.gnu.org	2005-04-17 23:40:32

Modified files:
	gcc            : ChangeLog tree-ssa-pre.c 

Log message:
	2005-04-17  Daniel Berlin  <dberlin@dberlin.org>
	
	Fix PR tree-optimization/20490
	Fix PR tree-optimization/20929
	
	* tree-ssa-pre.c (create_expression_by_pieces): Use
	force_gimple_operand on result of fold, value number
	gimple_operand result.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.168&r2=2.7592.2.169
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-pre.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.65.4.1&r2=2.65.4.2



-- 


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


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

* [Bug tree-optimization/20490] [4.1 Regression] ICE: verify_stmts failed. (with -O -ftree-pre)
  2005-03-16  2:08 [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre) commie1 at gmx dot net
                   ` (4 preceding siblings ...)
  2005-04-17 23:41 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-17 23:47 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-17 23:47 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.0                       |4.0.0


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


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

end of thread, other threads:[~2005-04-17 23:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-16  2:08 [Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre) commie1 at gmx dot net
2005-03-16  2:12 ` [Bug tree-optimization/20490] " commie1 at gmx dot net
2005-03-16  2:17 ` [Bug tree-optimization/20490] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-03-16 16:23 ` [Bug tree-optimization/20490] [4.1 " cvs-commit at gcc dot gnu dot org
2005-03-16 16:23 ` dberlin at gcc dot gnu dot org
2005-04-17 23:41 ` cvs-commit at gcc dot gnu dot org
2005-04-17 23:47 ` pinskia 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).