]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
spu-c.c (spu_resolve_overloaded_builtin): Call lang_hooks.types_compatible_p instead...
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 19 Feb 2010 17:17:23 +0000 (17:17 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Fri, 19 Feb 2010 17:17:23 +0000 (17:17 +0000)
* config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
lang_hooks.types_compatible_p instead of comptypes.

From-SVN: r156899

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

index 5b13461781c7c26eeae4dbb44dc1a2ac70828c5f..f076d3d4ec05a76c48176fa6e372ba2f8963079c 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-17  Mikael Pettersson  <mikpe@it.uu.se>
 
        * config/sparc/gas.h: New file.  Restore
index 5a3e6f321ccb4ee33f19157865ef9f21bb4a75d2..bd1d2ffe1f209290b34213126de4d192daf64ae2 100644 (file)
@@ -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)