diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-04 14:58:19 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-04 14:58:19 +0000 |
commit | 84111c28d4d35cfee677a3cab9708a583fbbe23e (patch) | |
tree | a21e5aa4c2eef02c999782ad37732a1c97ccdbfa /gcc/c-semantics.c | |
parent | 498d173d50082c410a5af22abf40c62f85bf93a1 (diff) | |
download | gcc-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.c | 1 |
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)) { |