OSDN Git Service

In gcc/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 2010 23:33:10 +0000 (23:33 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 2010 23:33:10 +0000 (23:33 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164708 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-parser.c

index 9d5e050..c6ab4f1 100644 (file)
@@ -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.
index 5d0f36b..2ad1658 100644 (file)
@@ -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;