aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-02-18 19:53:02 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2010-02-18 19:53:02 +0000
commit86866b288ea526e0f6721cebb78d0dc5c2126254 (patch)
treecffc06460f754e837695b86e480c95e7dd8f2f96
parent7890246f665ba2778e91aae45580016cccecca35 (diff)
downloadgcc-86866b288ea526e0f6721cebb78d0dc5c2126254.zip
gcc-86866b288ea526e0f6721cebb78d0dc5c2126254.tar.gz
gcc-86866b288ea526e0f6721cebb78d0dc5c2126254.tar.bz2
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: r156873
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/spu/spu-c.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e483f91..64ca853 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
+ lang_hooks.types_compatible_p instead of comptypes.
+
2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
* config/arm/lib1funcs.asm (__prefer_thumb__): New define.
diff --git a/gcc/config/spu/spu-c.c b/gcc/config/spu/spu-c.c
index 380af40..f10a62f 100644
--- a/gcc/config/spu/spu-c.c
+++ b/gcc/config/spu/spu-c.c
@@ -162,8 +162,7 @@ spu_resolve_overloaded_builtin (location_t loc, tree fndecl, void *passed_args)
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)