re PR tree-optimization/20490 (ICE: verify_stmts failed. (with -O -ftree-pre))
authorDaniel Berlin <dberlin@dberlin.org>
Wed, 16 Mar 2005 16:22:45 +0000 (16:22 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Wed, 16 Mar 2005 16:22:45 +0000 (16:22 +0000)
Fix PR tree-optimization/20490
not 20940

From-SVN: r96561

gcc/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr20490.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr20940.c [deleted file]

index e1fffe15bcff5e52b3714ce6e47af0d73040b74a..bbb663e5f79ef06a61d2d29e4a7181d80bc9a3e5 100644 (file)
@@ -1,6 +1,6 @@
 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
 
-       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 (file)
index 0000000..8edc35e
--- /dev/null
@@ -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 (file)
index 8edc35e..0000000
+++ /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);
-
-}
-
-