diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-09-28 23:33:10 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-09-28 23:33:10 +0000 |
commit | a1ec574714ebee9453436d96cc64fc10e99fd391 (patch) | |
tree | 7dea08f33fec763a35283a94f9f3dc1ac81942cf | |
parent | fd93038859364e252533c5ecd0c5c171288ed6ef (diff) | |
download | gcc-a1ec574714ebee9453436d96cc64fc10e99fd391.zip gcc-a1ec574714ebee9453436d96cc64fc10e99fd391.tar.gz gcc-a1ec574714ebee9453436d96cc64fc10e99fd391.tar.bz2 |
In gcc/: 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
* c-parser.c (c_lex_one_token): In Objective-C, do not replace
token->value with the canonical spelling. Do exactly like C and
C++ and leave it as it is.
From-SVN: r164708
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-parser.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d5e050..c6ab4f1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> + + * c-parser.c (c_lex_one_token): In Objective-C, do not replace + token->value with the canonical spelling. Do exactly like C and + C++ and leave it as it is. + 2010-09-28 Richard Henderson <rth@redhat.com> * config/alpha/alpha.c (alpha_builtins): New. diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 5d0f36b..2ad1658 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -242,8 +242,6 @@ c_lex_one_token (c_parser *parser, c_token *token) && (!OBJC_IS_PQ_KEYWORD (rid_code) || parser->objc_pq_context)) { - /* Return the canonical spelling for this keyword. */ - token->value = ridpointers[(int) rid_code]; token->type = CPP_KEYWORD; token->keyword = rid_code; break; |