diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-24 14:46:44 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-24 14:46:44 +0000 |
commit | baf262a5262a8d3e96068caedff3622d1c8c26f8 (patch) | |
tree | 38a09399a3edfe3cf8aa399e0146cca77ab9f37a /gcc/c-decl.c | |
parent | 3ab2a5e1432c8601feffa9209a7f5e2d17404afd (diff) | |
download | gcc-baf262a5262a8d3e96068caedff3622d1c8c26f8.tar.gz |
* c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
prototypes.
* gcc.c-torture/compile/20011023-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46463 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index ad724f5de48..a5dbd928a01 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3735,7 +3735,8 @@ finish_decl (decl, init, asmspec_tree) SET_DECL_ASSEMBLER_NAME (decl, get_identifier (asmspec)); } - add_decl_stmt (decl); + if (TREE_CODE (decl) != FUNCTION_DECL) + add_decl_stmt (decl); } if (DECL_CONTEXT (decl) != 0) |