fold-const.c (constant_boolean_node): Always create values of the specified type...
authorRoger Sayle <roger@eyesopen.com>
Fri, 18 Feb 2005 21:44:18 +0000 (21:44 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 18 Feb 2005 21:44:18 +0000 (21:44 +0000)
* fold-const.c (constant_boolean_node): Always create values of
the specified type, don't bother calling truthvalue_conversion.

From-SVN: r95237

gcc/ChangeLog
gcc/fold-const.c

index eddfd7b0fc04e845817e7b7f00570409a65142af..9265526defaccf4d21662c2467075b8a3de48a4d 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-18  Roger Sayle  <roger@eyesopen.com>
+
+       * 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  <joseph@codesourcery.com>
 
        * except.c (output_function_exception_table): Call
index a04c06177241698207aa1f25b15ae4e19c068681..a75ccdc92bebbffc518fc8918b5504ea4c13ca11 100644 (file)
@@ -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);
 }