From: Zack Weinberg Date: Fri, 18 Aug 2000 22:42:14 +0000 (+0000) Subject: cpplib.c (cpp_register_pragma_space): Just return if the namespace is already registered. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e19bb3853e223aa4b0f180b845753a914bad771;p=gcc.git 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 --- 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; }