This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] fix to my 2001-02-27 patch to c-semantics.c


Somehow I managed to check in the wrong patch for c-semantics.c
yesterday. I will be checking this obvious fix to mainline:


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.


Index: c-semantics.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-semantics.c,v
retrieving revision 1.18
diff -d -u -p -r1.18 c-semantics.c
--- c-semantics.c	2001/02/28 01:25:42	1.18
+++ c-semantics.c	2001/03/01 20:09:18
@@ -151,7 +151,7 @@ prune_unused_decls (tp, walk_subtrees, d
   tree t = *tp;
 
   if (t == NULL_TREE)
-    return (tree) 1;
+    return error_mark_node;
 
   if (TREE_CODE (t) == DECL_STMT)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]