aboutsummaryrefslogtreecommitdiff
path: root/gcc/ch
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-02-23 20:38:58 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-02-23 15:38:58 -0500
commit9b58f7398639e201117b4f8131d0d2c92f4c6a52 (patch)
treead310cb7ad910e62cba0cf1a7bc2fe59ba843dfc /gcc/ch
parente82a84c47174cea2082b4a62d2488401f7a60080 (diff)
downloadgcc-9b58f7398639e201117b4f8131d0d2c92f4c6a52.zip
gcc-9b58f7398639e201117b4f8131d0d2c92f4c6a52.tar.gz
gcc-9b58f7398639e201117b4f8131d0d2c92f4c6a52.tar.bz2
c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
* c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK. * ch/decl.c, f/com.c, java/decl.c: Likewise. From-SVN: r40010
Diffstat (limited to 'gcc/ch')
-rw-r--r--gcc/ch/ChangeLog4
-rw-r--r--gcc/ch/decl.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog
index c528395..315713d 100644
--- a/gcc/ch/ChangeLog
+++ b/gcc/ch/ChangeLog
@@ -1,3 +1,7 @@
+Fri Feb 23 15:28:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
+
2001-02-15 Jim Meyering <meyering@lucent.com>
* Make-lang.in (CHILL.install-common): Depend on `installdirs'.
diff --git a/gcc/ch/decl.c b/gcc/ch/decl.c
index 11a05e0..6cdec6c 100644
--- a/gcc/ch/decl.c
+++ b/gcc/ch/decl.c
@@ -3016,6 +3016,9 @@ set_block (block)
register tree block;
{
current_scope->this_block = block;
+ current_scope->decls = chainon (current_scope->decls, BLOCK_VARS (block));
+ current_scope->blocks = chainon (current_scope->blocks,
+ BLOCK_SUBBLOCKS (block));
}
/* Record a decl-node X as belonging to the current lexical scope.