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

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

From-SVN: r35798
This commit is contained in:
Zack Weinberg 2000-08-18 22:42:14 +00:00 committed by Zack Weinberg
parent 477d303f84
commit 6e19bb3853
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
* cpplib.c (cpp_register_pragma_space): Just return if the
namespace is already registered.
2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com> 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
* config/mcore/mcore.md (rotlsi3): Allow allow rotations by a * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a

View File

@ -689,10 +689,9 @@ cpp_register_pragma_space (pfile, space)
while (p) while (p)
{ {
if (p->isnspace && p->len == len && !memcmp (p->name, space, len)) if (p->isnspace && p->len == len && !memcmp (p->name, space, len))
{ /* Multiple different callers are allowed to register the same
cpp_ice (pfile, "#pragma namespace %s already registered", space); namespace. */
return; return;
}
p = p->next; p = p->next;
} }