aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-05-01 01:21:45 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-05-01 01:21:45 +0000
commit5d638f70878028cfd016572abac20b7de37a745a (patch)
treeb5fb51c277472997c25bb79ef7511f9650adccab /gcc
parentee704412abeea8cc349e99115bf3331adbad6d27 (diff)
downloadgcc-5d638f70878028cfd016572abac20b7de37a745a.zip
gcc-5d638f70878028cfd016572abac20b7de37a745a.tar.gz
gcc-5d638f70878028cfd016572abac20b7de37a745a.tar.bz2
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
Diffstat (limited to 'gcc')
-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 0bc241a..5868c24 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 d1acba3..3a8adc5 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