From: Geoffrey Keating Date: Thu, 1 May 2003 01:21:45 +0000 (+0000) Subject: tree-inline.c (inlinable_function_p): Back out last change, it's unnecessary. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d638f70878028cfd016572abac20b7de37a745a;p=gcc.git tree-inline.c (inlinable_function_p): Back out last change, it's unnecessary. * tree-inline.c (inlinable_function_p): Back out last change, it's unnecessary. From-SVN: r66315 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0bc241ac29a..5868c24c15f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-30 Geoffrey Keating + + * tree-inline.c (inlinable_function_p): Back out last change, it's + unnecessary. + 2003-04-30 Steven Bosscher * ggc-page.c (TREE_EXP_SIZE): Define. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index d1acba3a5f0..3a8adc51e2e 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1008,13 +1008,6 @@ inlinable_function_p (fn, id, nolimit) else if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL && find_alloca_call (DECL_SAVED_TREE (fn))) ; - /* Can't inline functions which use varargs. It's not theoretically - impossible, we just don't do it yet; at least one problem is that - expand_builtin_next_arg needs to handle the situation. */ - else if (TYPE_ARG_TYPES (TREE_TYPE (fn)) != 0 - && (TREE_VALUE (tree_last (TYPE_ARG_TYPES (TREE_TYPE (fn)))) - != void_type_node)) - ; /* All is well. We can inline this function. Traditionally, GCC has refused to inline functions using alloca, or functions whose values are returned in a PARALLEL, and a few other such obscure