OSDN Git Service

* config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Feb 2010 19:53:02 +0000 (19:53 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Feb 2010 19:53:02 +0000 (19:53 +0000)
lang_hooks.types_compatible_p instead of comptypes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156873 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/spu/spu-c.c

index e483f91..64ca853 100644 (file)
@@ -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.
index 380af40..f10a62f 100644 (file)
@@ -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)