diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d5e0509fcd..c6ab4f1ac79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-09-29 Nicola Pero + + * 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 * config/alpha/alpha.c (alpha_builtins): New. diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 5d0f36bacb2..2ad16586ca1 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;