aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-10-24 16:46:44 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2001-10-24 16:46:44 +0200
commitc0a4369a237ae3b0cdabff81a2b83fdf3308b5b2 (patch)
tree38a09399a3edfe3cf8aa399e0146cca77ab9f37a /gcc/c-decl.c
parentb8c815e5488369a6611f9194f9b5d09f2a72193f (diff)
downloadgcc-c0a4369a237ae3b0cdabff81a2b83fdf3308b5b2.zip
gcc-c0a4369a237ae3b0cdabff81a2b83fdf3308b5b2.tar.gz
gcc-c0a4369a237ae3b0cdabff81a2b83fdf3308b5b2.tar.bz2
c-decl.c (finish_decl): Don't add DECL_STMTs for nested function prototypes.
* c-decl.c (finish_decl): Don't add DECL_STMTs for nested function prototypes. * gcc.c-torture/compile/20011023-1.c: New test. From-SVN: r46463
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index ad724f5..a5dbd92 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)