summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-23 00:51:40 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-23 00:51:40 +0000
commit1b55e9dcbdaf4b6f3bac8fe2dca5bd075b0a0377 (patch)
tree101fce60f8be93e2d49a7ca27ef11256887c00e0 /gcc/tree-inline.c
parentd8c70625ae072fce9cd64ee06c8a3b91bc554057 (diff)
downloadgcc-1b55e9dcbdaf4b6f3bac8fe2dca5bd075b0a0377.tar.gz
PR debug/17389
* dwarf2out.c (dwarf2out_finish): Deal with nested functions of fully inlined functions. * tree-inline.c (inline_forbidden_p_1): Nested functions can be inlined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87911 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 243b870cf70..d026dca18ec 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -993,20 +993,6 @@ inline_forbidden_p_1 (tree *nodep, int *walk_subtrees ATTRIBUTE_UNUSED,
}
break;
- case BIND_EXPR:
- for (t = BIND_EXPR_VARS (node); t ; t = TREE_CHAIN (t))
- {
- /* We cannot inline functions that contain other functions. */
- if (TREE_CODE (t) == FUNCTION_DECL && DECL_INITIAL (t))
- {
- inline_forbidden_reason
- = N_("%Jfunction '%F' can never be inlined "
- "because it contains a nested function");
- return node;
- }
- }
- break;
-
case GOTO_EXPR:
t = TREE_OPERAND (node, 0);