Commit 5d3fe1fe by Richard Kenner

(function_cannot_inline_p): Use current_function_varargs.

From-SVN: r6986
parent 91ab952c
...@@ -93,9 +93,7 @@ function_cannot_inline_p (fndecl) ...@@ -93,9 +93,7 @@ function_cannot_inline_p (fndecl)
message about that if `inline' is specified. This code message about that if `inline' is specified. This code
it put in to catch the volunteers. */ it put in to catch the volunteers. */
if ((last && TREE_VALUE (last) != void_type_node) if ((last && TREE_VALUE (last) != void_type_node)
|| (DECL_ARGUMENTS (fndecl) && DECL_NAME (DECL_ARGUMENTS (fndecl)) || current_function_varargs)
&& ! strcmp (IDENTIFIER_POINTER (DECL_NAME (DECL_ARGUMENTS (fndecl))),
"__builtin_va_alist")))
return "varargs function cannot be inline"; return "varargs function cannot be inline";
if (current_function_calls_alloca) if (current_function_calls_alloca)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment