aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-11-23 17:32:21 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-11-23 17:32:21 -0500
commitf577532561b5ba4aa03c0592e36aedf7af51db7d (patch)
treede826b946d712d9b08abe3bc28102719242d5c95 /gcc/c-common.c
parent1d42e1b7cf75b8351bed4b2a1f9400a09a1c1583 (diff)
downloadgcc-f577532561b5ba4aa03c0592e36aedf7af51db7d.zip
gcc-f577532561b5ba4aa03c0592e36aedf7af51db7d.tar.gz
gcc-f577532561b5ba4aa03c0592e36aedf7af51db7d.tar.bz2
(check_format_info): When we have INTEGER_TYPEs...
(check_format_info): When we have INTEGER_TYPEs, save result of signed_type or unsigned_type for later comparison with the various forms of char types. From-SVN: r6146
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index cb6e845..57e2e41 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -901,8 +901,8 @@ check_format_info (info, params)
&& !(TREE_CODE (wanted_type) == INTEGER_TYPE
&& TREE_CODE (cur_type) == INTEGER_TYPE
&& (TREE_UNSIGNED (wanted_type)
- ? wanted_type == unsigned_type (cur_type)
- : wanted_type == signed_type (cur_type)))
+ ? wanted_type == (cur_type = unsigned_type (cur_type))
+ : wanted_type == (cur_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