This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][TUPLES] Fix for gcc.dg/conv-2.c failures.
- From: "=?big5?b?RG91ZyBLd2FuICjD9q62vHcp?=" <dougkwan at google dot com>
- To: "Aldy Hernandez" <aldyh at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 14 Apr 2008 14:38:20 -0700
- Subject: [PATCH][TUPLES] Fix for gcc.dg/conv-2.c failures.
Hi Aldy,
Could you review this? For some reason, this is different from
the trunk and it causes 30+ failing tests.
-Doug
2008-04-14 Doug Kwan <dougkwan@google.com>
* c-typeck.c (convert_for_assignment): Call c_common_unsigned_type
Index: gcc/gcc/c-typeck.c
===================================================================
--- gcc/gcc/c-typeck.c (revision 134253)
+++ gcc/gcc/c-typeck.c (working copy)
@@ -4253,8 +4253,8 @@ convert_for_assignment (tree type, tree
if (VOID_TYPE_P (ttl) || VOID_TYPE_P (ttr)
|| (target_cmp = comp_target_types (type, rhstype))
|| is_opaque_pointer
- || (unsigned_type_for (mvl)
- == unsigned_type_for (mvr)))
+ || (c_common_unsigned_type (mvl)
+ == c_common_unsigned_type (mvr)))
{
if (pedantic
&& ((VOID_TYPE_P (ttl) && TREE_CODE (ttr) == FUNCTION_TYPE)