diff options
author | Diego Novillo <dnovillo@redhat.com> | 2001-02-28 01:25:42 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2001-02-27 20:25:42 -0500 |
commit | 87aee676f2abe6163710ed4d932eaf35e5de045c (patch) | |
tree | 2a0e66e7640bbbce0aaeac010f6b08b76136f15c /gcc/c-semantics.c | |
parent | 67935d3f86b738dcd382bedbb4373de98e1f9759 (diff) | |
download | gcc-87aee676f2abe6163710ed4d932eaf35e5de045c.zip gcc-87aee676f2abe6163710ed4d932eaf35e5de045c.tar.gz gcc-87aee676f2abe6163710ed4d932eaf35e5de045c.tar.bz2 |
c-common.c (walk_stmt_tree): Visit the chain of the current tree even if walk_subtrees is 0.
2001-02-27 Diego Novillo <dnovillo@redhat.com>
* c-common.c (walk_stmt_tree): Visit the chain of the current tree
even if walk_subtrees is 0.
* c-semantics.c (prune_unused_decls): Return a non-null value to
stop traversing the tree chain.
From-SVN: r40106
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index d6477f6..bf85f7f 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -151,10 +151,7 @@ prune_unused_decls (tp, walk_subtrees, data) tree t = *tp; if (t == NULL_TREE) - { - *walk_subtrees = 0; - return NULL_TREE; - } + return (tree) 1; if (TREE_CODE (t) == DECL_STMT) { |