c-semantics.c (prune_unused_decls): Return error_mark_node instead of (tree) 1 to...
authorDiego Novillo <dnovillo@redhat.com>
Thu, 1 Mar 2001 23:11:05 +0000 (23:11 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Thu, 1 Mar 2001 23:11:05 +0000 (18:11 -0500)
2001-03-01  Diego Novillo  <dnovillo@redhat.com>

* c-semantics.c (prune_unused_decls): Return error_mark_node
instead of (tree) 1 to stop traversing the tree chain.

From-SVN: r40166

gcc/ChangeLog
gcc/c-semantics.c

index 13fe12fa223998128d05ef0c41501c3bd7d8fc30..ee9f3d480be188b63c33f92e1704d4322d8046f5 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-01  Diego Novillo  <dnovillo@redhat.com>
+
+       * c-semantics.c (prune_unused_decls): Return error_mark_node
+       instead of (tree) 1 to stop traversing the tree chain.
+
 2001-03-01  Bernd Schmidt  <bernds@redhat.com>
 
        Fix a problem introduced by Kenner's Feb 18 change.
index bf85f7fcc138b7778e8b37443d27a148391050ae..ac916c4805fe74a6df33e9caa20680482ff222e0 100644 (file)
@@ -151,7 +151,7 @@ prune_unused_decls (tp, walk_subtrees, data)
   tree t = *tp;
 
   if (t == NULL_TREE)
-    return (tree) 1;
+    return error_mark_node;
 
   if (TREE_CODE (t) == DECL_STMT)
     {