From c7125d9d04c97da644340cbd8b9fe2134f886588 Mon Sep 17 00:00:00 2001 From: zack Date: Fri, 18 Aug 2000 22:42:14 +0000 Subject: [PATCH] * cpplib.c (cpp_register_pragma_space): Just return if the namespace is already registered. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35798 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/cpplib.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 53183a03616..8d1646e4a3a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-08-18 Zack Weinberg + + * cpplib.c (cpp_register_pragma_space): Just return if the + namespace is already registered. + 2000-08-18 Ray Essick & Nick Clifton * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 5dd1697e7c5..274ca4a3515 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -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; } -- 2.11.4.GIT