This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]