diff options
| author | Zack Weinberg <zack@wolery.cumb.org> | 2000-08-18 22:42:14 +0000 |
|---|---|---|
| committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-08-18 22:42:14 +0000 |
| commit | 6e19bb3853e223aa4b0f180b845753a914bad771 (patch) | |
| tree | cdae84b8d9c1a784fa047c9640a370a1eb8bbab2 /gcc/cpplib.c | |
| parent | 477d303f84bcf6da0c51c2aea9fbe213d04803d1 (diff) | |
| download | gcc-6e19bb3853e223aa4b0f180b845753a914bad771.zip gcc-6e19bb3853e223aa4b0f180b845753a914bad771.tar.gz gcc-6e19bb3853e223aa4b0f180b845753a914bad771.tar.bz2 | |
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
Diffstat (limited to 'gcc/cpplib.c')
| -rw-r--r-- | gcc/cpplib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 5dd1697..274ca4a 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; } |
