From: Ulrich Weigand Date: Fri, 19 Feb 2010 17:17:23 +0000 (+0000) Subject: spu-c.c (spu_resolve_overloaded_builtin): Call lang_hooks.types_compatible_p instead... X-Git-Tag: releases/gcc-4.3.5~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0a8946c7ccffd96dc0826e3965a9a22a3b1d286;p=thirdparty%2Fgcc.git spu-c.c (spu_resolve_overloaded_builtin): Call lang_hooks.types_compatible_p instead of comptypes. * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call lang_hooks.types_compatible_p instead of comptypes. From-SVN: r156899 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b13461781c7..f076d3d4ec05 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-02-18 Ulrich Weigand + + * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call + lang_hooks.types_compatible_p instead of comptypes. + 2010-02-17 Mikael Pettersson * config/sparc/gas.h: New file. Restore diff --git a/gcc/config/spu/spu-c.c b/gcc/config/spu/spu-c.c index 5a3e6f321ccb..bd1d2ffe1f20 100644 --- a/gcc/config/spu/spu-c.c +++ b/gcc/config/spu/spu-c.c @@ -103,8 +103,7 @@ spu_resolve_overloaded_builtin (tree fndecl, tree fnargs) if ((!SCALAR_TYPE_P (param_type) || !SCALAR_TYPE_P (arg_type) || (all_scalar && p == 0)) - && !comptypes (TYPE_MAIN_VARIANT (param_type), - TYPE_MAIN_VARIANT (arg_type))) + && !lang_hooks.types_compatible_p (param_type, arg_type)) break; } if (param == void_list_node)