summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-18 10:09:51 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-18 10:09:51 +0000
commit5b076c754173e6787fcfa7968979d866d517dc4f (patch)
tree0cc0851add458bd941ee4777eb218fe27b847536 /gcc
parent5830087fdfb01e798d030e458afddbdec3c55550 (diff)
downloadgcc-5b076c754173e6787fcfa7968979d866d517dc4f.tar.gz
* tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96655 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/tree-cfg.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 68cfec23863..b17b7fecfcf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 32dc2bc579c..b1ff8e6d97b 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -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;
}
}
}