From c0a8946c7ccffd96dc0826e3965a9a22a3b1d286 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 19 Feb 2010 17:17:23 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/spu/spu-c.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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) -- 2.47.2