diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2002-12-04 14:58:19 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2002-12-04 14:58:19 +0000 |
commit | a9b6f1e71218dd241d632aa465b3c0774010b51d (patch) | |
tree | a21e5aa4c2eef02c999782ad37732a1c97ccdbfa /gcc/c-semantics.c | |
parent | a3716585f62b7a661635d13c451a778b6bae9c7f (diff) | |
download | gcc-a9b6f1e71218dd241d632aa465b3c0774010b51d.zip gcc-a9b6f1e71218dd241d632aa465b3c0774010b51d.tar.gz gcc-a9b6f1e71218dd241d632aa465b3c0774010b51d.tar.bz2 |
re PR c/7622 (tree inliner fallout (regression relative to 2.95))
PR c/7622
* c-semantics (genrtl_scope_stmt): Do not output inlined
nested functions that contain no code.
From-SVN: r59817
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 70699a0..994b462 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -617,6 +617,7 @@ genrtl_scope_stmt (t) { if (TREE_CODE (fn) == FUNCTION_DECL && DECL_CONTEXT (fn) == current_function_decl + && DECL_SAVED_INSNS (fn) && !TREE_ASM_WRITTEN (fn) && TREE_ADDRESSABLE (fn)) { |