]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/call.c
Merge from trunk.
[thirdparty/gcc.git] / gcc / cp / call.c
index c529c16bc7495c4d7986d4b4c2b359f5e7289526..00ebed4320e9a6dbae968f1d0ac771d769ccfcd1 100644 (file)
@@ -41,6 +41,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "c-family/c-objc.h"
 #include "timevar.h"
 #include "cgraph.h"
+#include "wide-int.h"
 
 /* The various kinds of conversion.  */
 
@@ -6495,8 +6496,7 @@ type_passed_as (tree type)
   else if (targetm.calls.promote_prototypes (type)
           && INTEGRAL_TYPE_P (type)
           && COMPLETE_TYPE_P (type)
-          && INT_CST_LT_UNSIGNED (TYPE_SIZE (type),
-                                  TYPE_SIZE (integer_type_node)))
+          && INT_CST_LT (TYPE_SIZE (type), TYPE_SIZE (integer_type_node)))
     type = integer_type_node;
 
   return type;
@@ -6536,8 +6536,7 @@ convert_for_arg_passing (tree type, tree val, tsubst_flags_t complain)
   else if (targetm.calls.promote_prototypes (type)
           && INTEGRAL_TYPE_P (type)
           && COMPLETE_TYPE_P (type)
-          && INT_CST_LT_UNSIGNED (TYPE_SIZE (type),
-                                  TYPE_SIZE (integer_type_node)))
+          && INT_CST_LT (TYPE_SIZE (type), TYPE_SIZE (integer_type_node)))
     val = cp_perform_integral_promotions (val, complain);
   if ((complain & tf_warning)
       && warn_suggest_attribute_format)