From 0a9c6fdf03f3a52f6516e36e89fbc4d3d2e6ef29 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Fri, 18 Feb 2005 21:44:18 +0000 Subject: [PATCH] fold-const.c (constant_boolean_node): Always create values of the specified type... * fold-const.c (constant_boolean_node): Always create values of the specified type, don't bother calling truthvalue_conversion. From-SVN: r95237 --- gcc/ChangeLog | 5 +++++ gcc/fold-const.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eddfd7b0fc0..9265526defa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-18 Roger Sayle + + * fold-const.c (constant_boolean_node): Always create values of the + specified type, don't bother calling truthvalue_conversion. + 2005-02-18 Joseph S. Myers * except.c (output_function_exception_table): Call diff --git a/gcc/fold-const.c b/gcc/fold-const.c index a04c0617724..a75ccdc92be 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -5381,9 +5381,6 @@ constant_boolean_node (int value, tree type) return value ? integer_one_node : integer_zero_node; else if (type == boolean_type_node) return value ? boolean_true_node : boolean_false_node; - else if (TREE_CODE (type) == BOOLEAN_TYPE) - return lang_hooks.truthvalue_conversion (value ? integer_one_node - : integer_zero_node); else return build_int_cst (type, value); } -- 2.30.2