summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-01 01:21:45 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-01 01:21:45 +0000
commit890095ce446455f242c928f7b26b9ce43bf404a4 (patch)
treeb5fb51c277472997c25bb79ef7511f9650adccab
parentf9d981bc69aa7e4c72eaec5460ace594b07d9426 (diff)
downloadgcc-890095ce446455f242c928f7b26b9ce43bf404a4.tar.gz
* tree-inline.c (inlinable_function_p): Back out last change, it's
unnecessary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66315 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-inline.c7
2 files changed, 5 insertions, 7 deletions
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 <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.
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