]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/c-typeck.c
c-common.c (resolve_overloaded_builtin): Forward to target hook for BUILT_IN_MD built...
[thirdparty/gcc.git] / gcc / c-typeck.c
index 3a5d11d1f421b7ac0286c17f57f2c30efbb3999f..07471c7fd899bae1e86ab5a02afd963a9aa43e99 100644 (file)
@@ -1979,12 +1979,13 @@ build_function_call (tree function, tree params)
   /* Convert anything with function type to a pointer-to-function.  */
   if (TREE_CODE (function) == FUNCTION_DECL)
     {
-      if (DECL_BUILT_IN_CLASS (function) == BUILT_IN_NORMAL)
-       {
-         tem = resolve_overloaded_builtin (function, params);
-         if (tem)
-           return tem;
-       }
+      /* Implement type-directed function overloading for builtins.
+        resolve_overloaded_builtin and targetm.resolve_overloaded_builtin
+        handle all the type checking.  The result is a complete expression
+        that implements this function call.  */
+      tem = resolve_overloaded_builtin (function, params);
+      if (tem)
+       return tem;
 
       name = DECL_NAME (function);