diff options
author | Jan Hubicka <jh@suse.cz> | 2004-09-23 02:51:40 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-09-23 00:51:40 +0000 |
commit | 60108d34dc4958a8b4081ceb0c833f76648e7157 (patch) | |
tree | 101fce60f8be93e2d49a7ca27ef11256887c00e0 /gcc/tree-inline.c | |
parent | e53de54da399b14c108c994a81c047502cf4a513 (diff) | |
download | gcc-60108d34dc4958a8b4081ceb0c833f76648e7157.zip gcc-60108d34dc4958a8b4081ceb0c833f76648e7157.tar.gz gcc-60108d34dc4958a8b4081ceb0c833f76648e7157.tar.bz2 |
re PR debug/17389 (ICE in dwarf2out_finish, at dwarf2out.c:13566)
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.
From-SVN: r87911
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 243b870..d026dca 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); |