diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-06-20 22:42:18 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-06-20 22:42:18 +0000 |
commit | e5ec24021aefc1f20ee365c7d0b2f24991fbdb89 (patch) | |
tree | 208cdf25f1ec20be16836ab88dda3d96bd03a662 /gcc/cpplex.c | |
parent | 5f8f47513fd565e41816b5419054b229878393a8 (diff) | |
download | gcc-e5ec24021aefc1f20ee365c7d0b2f24991fbdb89.zip gcc-e5ec24021aefc1f20ee365c7d0b2f24991fbdb89.tar.gz gcc-e5ec24021aefc1f20ee365c7d0b2f24991fbdb89.tar.bz2 |
cpplex.c (parse_name): Don't warn about $ in identifiers if skipping.
* cpplex.c (parse_name): Don't warn about $ in identifiers if
skipping.
* Makefile.in: Remove all references to HOST_INTLLIBS.
* cp/method.c: Don't include hard-reg-set.h.
From-SVN: r34621
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 1dd3e9a..4a159aa 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1096,7 +1096,10 @@ _cpp_parse_name (pfile, c) break; } - if (c == '$' && CPP_PEDANTIC (pfile)) + /* $ is not a legal identifier character in the standard, but is + commonly accepted as an extension. Don't warn about it in + skipped conditional blocks. */ + if (c == '$' && CPP_PEDANTIC (pfile) && ! pfile->skipping) cpp_pedwarn (pfile, "`$' in identifier"); CPP_RESERVE(pfile, 2); /* One more for final NUL. */ |