[Bug tree-optimization/20490] New: ICE: verify_stmts failed. (with -O -ftree-pre)

commie1 at gmx dot net gcc-bugzilla@gcc.gnu.org
Wed Mar 16 02:08:00 GMT 2005


/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



More information about the Gcc-bugs mailing list