tree-inline.c (inlinable_function_p): Back out last change, it's unnecessary.
authorGeoffrey Keating <geoffk@apple.com>
Thu, 1 May 2003 01:21:45 +0000 (01:21 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Thu, 1 May 2003 01:21:45 +0000 (01:21 +0000)
* tree-inline.c (inlinable_function_p): Back out last change, it's
unnecessary.

From-SVN: r66315

gcc/ChangeLog
gcc/tree-inline.c

index 0bc241ac29a979d213ebbd44ac11a6418a4213ef..5868c24c15fa5cccaa30a3d28dc71091268b14c3 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-30  Geoffrey Keating  <geoffk@apple.com>
+
+       * tree-inline.c (inlinable_function_p): Back out last change, it's
+       unnecessary.
+
 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
 
        * ggc-page.c (TREE_EXP_SIZE): Define.
index d1acba3a5f0a326c033e3973172181fc6a19ed5e..3a8adc51e2ee8a0aa0a33603ceb1f0280ed6f17e 100644 (file)
@@ -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