OSDN Git Service

* tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Mar 2005 10:09:51 +0000 (10:09 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Mar 2005 10:09:51 +0000 (10:09 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96655 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-cfg.c

index 68cfec2..b17b7fe 100644 (file)
@@ -1,5 +1,7 @@
 2005-03-18  Jan Hubicka  <jh@suse.cz>
 
+       * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
+
        * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether 
        function body should be released; do not proactively release function
        bodies in non-unit-at-a-time mode.
index 32dc2bc..b1ff8e6 100644 (file)
@@ -457,9 +457,9 @@ fold_cond_expr_cond (void)
        {
          tree cond = fold (COND_EXPR_COND (stmt));
          if (integer_zerop (cond))
-           COND_EXPR_COND (stmt) = integer_zero_node;
+           COND_EXPR_COND (stmt) = boolean_false_node;
          else if (integer_onep (cond))
-           COND_EXPR_COND (stmt) = integer_one_node;
+           COND_EXPR_COND (stmt) = boolean_true_node;
        }
     }
 }