the specified type, don't bother calling truthvalue_conversion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95237
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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);
}