From: Daniel Berlin Date: Wed, 16 Mar 2005 16:22:45 +0000 (+0000) Subject: re PR tree-optimization/20490 (ICE: verify_stmts failed. (with -O -ftree-pre)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f718710e8da82c6987d02a28461a8b32b4e0afb2;p=gcc.git re PR tree-optimization/20490 (ICE: verify_stmts failed. (with -O -ftree-pre)) Fix PR tree-optimization/20490 not 20940 From-SVN: r96561 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1fffe15bcf..bbb663e5f79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,6 @@ 2005-03-16 Daniel Berlin - Fix PR tree-optimization/20940 + Fix PR tree-optimization/20490 * tree-ssa-pre.c (create_expression_by_pieces): Use force_gimple_operand on result of fold. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr20490.c b/gcc/testsuite/gcc.dg/tree-ssa/pr20490.c new file mode 100644 index 00000000000..8edc35e8a45 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr20490.c @@ -0,0 +1,20 @@ +/* { dg-do compile } */ +/* { dg-options "-O -ftree-pre" } */ +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); + +} + + diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr20940.c b/gcc/testsuite/gcc.dg/tree-ssa/pr20940.c deleted file mode 100644 index 8edc35e8a45..00000000000 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr20940.c +++ /dev/null @@ -1,20 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O -ftree-pre" } */ -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); - -} - -