Commit 60e02b1e by Richard Kenner

(check_format_info): Consider "char", "signed char", and "unsigned

char" types as equivalent.

From-SVN: r5849
parent b156894e
......@@ -899,7 +899,12 @@ check_format_info (info, params)
&& TREE_CODE (cur_type) == INTEGER_TYPE
&& (TREE_UNSIGNED (wanted_type)
? wanted_type == unsigned_type (cur_type)
: wanted_type == signed_type (cur_type))))
: wanted_type == signed_type (cur_type)))
/* Likewise, "signed char", "unsigned char" and "char" are
equivalent but the above test won't consider them equivalent. */
&& ! (wanted_type == char_type_node
&& (cur_type == signed_char_type_node
|| cur_type == unsigned_char_type_node)))
{
register char *this;
register char *that;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment