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]

small tweak for cpp_register_pragma_space


Callers of cpp_register_pragma_space shouldn't need to know if someone
else has already registered a particular namespace or not.

Bootstrapped i386-linux, no regressions.

zw

	* cpplib.c (cpp_register_pragma_space): Just return if the
	namespace is already registered.

===================================================================
Index: cpplib.c
--- cpplib.c	2000/08/18 17:35:57	1.199
+++ cpplib.c	2000/08/18 22:40:45
@@ -689,10 +689,9 @@ cpp_register_pragma_space (pfile, space)
   while (p)
     {
       if (p->isnspace && p->len == len && !memcmp (p->name, space, len))
-	{
-	  cpp_ice (pfile, "#pragma namespace %s already registered", space);
-	  return;
-	}
+	/* Multiple different callers are allowed to register the same
+	   namespace.  */
+	return;
       p = p->next;
     }
 

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