summaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-04 14:58:19 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-04 14:58:19 +0000
commit84111c28d4d35cfee677a3cab9708a583fbbe23e (patch)
treea21e5aa4c2eef02c999782ad37732a1c97ccdbfa /gcc/c-semantics.c
parent498d173d50082c410a5af22abf40c62f85bf93a1 (diff)
downloadgcc-84111c28d4d35cfee677a3cab9708a583fbbe23e.tar.gz
PR c/7622
* c-semantics (genrtl_scope_stmt): Do not output inlined nested functions that contain no code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59817 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 70699a047bc..994b4625da5 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))
{