Author: pluto                        Date: Sun Feb 20 16:07:42 2005 GMT
Module: SOURCES                       Tag: GCC_4
---- Log message:
- testing patch...

---- Files affected:
SOURCES:
   gcc-pr19937.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gcc-pr19937.patch
diff -u /dev/null SOURCES/gcc-pr19937.patch:1.1.2.1
--- /dev/null   Sun Feb 20 17:07:42 2005
+++ SOURCES/gcc-pr19937.patch   Sun Feb 20 17:07:37 2005
@@ -0,0 +1,23 @@
+--- gcc-4.0-20050213/gcc/tree-ssa-loop-ivopts.c.orig   2005-02-10 
21:13:20.000000000 +0100
++++ gcc-4.0-20050213/gcc/tree-ssa-loop-ivopts.c        2005-02-20 
17:03:35.000000000 +0100
+@@ -4877,15 +4877,17 @@
+   
+   if (may_eliminate_iv (data, use, cand, &compare, &bound))
+     {
++      tree var = var_at_stmt (data->current_loop, cand, use->stmt);
++      tree var_type = TREE_TYPE (var);
++
++      bound = fold_convert (var_type, bound);
+       op = force_gimple_operand (unshare_expr (bound), &stmts,
+                                true, NULL_TREE);
+ 
+       if (stmts)
+       bsi_insert_before (&bsi, stmts, BSI_SAME_STMT);
+ 
+-      *use->op_p = build2 (compare, boolean_type_node,
+-                        var_at_stmt (data->current_loop,
+-                                     cand, use->stmt), op);
++      *use->op_p = build2 (compare, boolean_type_node, var, op);
+       modify_stmt (use->stmt);
+       return;
+     }
================================================================

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to