diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-19 04:42:14 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-19 04:42:14 +0000 |
commit | 6b2753683815f45f00c27116093b94d6f1c9ed60 (patch) | |
tree | f75b535fe61fe21974e49ac55426cc11e7fe84be /gcc/c-objc-common.c | |
parent | e5f813af92b96d37f7808f0e3468ac27096f2be5 (diff) | |
download | gcc-6b2753683815f45f00c27116093b94d6f1c9ed60.tar.gz |
PR middle-end/16417
* c-decl.c (store_parm_decls): Clarify get_pending_sizes insertion
comment.
* c-objc-common.c (c_cannot_inline_tree_fn): Remove pending sizes
checks.
* c-tree.h (struct lang_decl): Remove pending_sizes.
* function.c: Include tree-gimple.h
(assign_parm_setup_reg): Remove callee-copies code.
(gimplify_parm_type, gimplify_parameters): New functions.
(expand_pending_sizes): Remove.
(expand_function_start): Don't call it.
* gimplify.c (gimplify_expr): Examine DECL_VALUE_EXPR for PARM_DECL.
(gimplify_body): Add do_parms argument. Use gimplify_parameters.
(gimplify_function_tree): Setup cfun. Update gimplify_body call.
* tree-gimple.h (gimplify_body): Update decl.
* tree-inline.c (initialize_inlined_parameters): Update gimplify_body
call.
* tree.h (gimplify_parameters): Declare.
* Makefile.in (function.o): Depend on TREE_GIMPLE_H.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92373 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index d9e8b93e481..35bcf9e3275 100644 --- a/gcc/c-objc-common.c +++ b/gcc/c-objc-common.c @@ -68,7 +68,6 @@ int c_cannot_inline_tree_fn (tree *fnp) { tree fn = *fnp; - tree t; bool do_warning = (warn_inline && DECL_INLINE (fn) && DECL_DECLARED_INLINE_P (fn) @@ -101,35 +100,6 @@ c_cannot_inline_tree_fn (tree *fnp) goto cannot_inline; } - /* If a function has pending sizes, we must not defer its - compilation, and we can't inline it as a tree. */ - if (fn == current_function_decl) - { - t = get_pending_sizes (); - put_pending_sizes (t); - - if (t) - { - if (do_warning) - warning ("%Jfunction %qF can never be inlined because it has " - "pending sizes", fn, fn); - goto cannot_inline; - } - } - - if (!DECL_FILE_SCOPE_P (fn)) - { - /* If a nested function has pending sizes, we may have already - saved them. */ - if (DECL_LANG_SPECIFIC (fn)->pending_sizes) - { - if (do_warning) - warning ("%Jnested function %qF can never be inlined because it " - "has possibly saved pending sizes", fn, fn); - goto cannot_inline; - } - } - return 0; cannot_inline: |