C/C++ PATCH to drop references to C_RID_YYCODE
Marek Polacek
polacek@redhat.com
Thu Mar 23 12:20:00 GMT 2017
C_RID_YYCODE was deleted a long time ago:
2003-02-18 Geoffrey Keating <geoffk@apple.com>
* cp-tree.h (rid_to_yy): Delete.
(C_RID_YYCODE): Delete.
(finish_file): Delete redundant declaration.
so let's 86 the references to it.
Applying to trunk.
2017-03-23 Marek Polacek <polacek@redhat.com>
* c-tree.h: Remove a C_RID_YYCODE reference.
* cp-tree.h: Remove a C_RID_YYCODE reference.
diff --git gcc/c/c-tree.h gcc/c/c-tree.h
index 13e40e6..9428d74 100644
--- gcc/c/c-tree.h
+++ gcc/c/c-tree.h
@@ -43,8 +43,7 @@ along with GCC; see the file COPYING3. If not see
#define C_TYPE_INCOMPLETE_VARS(TYPE) TYPE_VFIELD (TYPE)
/* In an IDENTIFIER_NODE, nonzero if this identifier is actually a
- keyword. C_RID_CODE (node) is then the RID_* value of the keyword,
- and C_RID_YYCODE is the token number wanted by Yacc. */
+ keyword. C_RID_CODE (node) is then the RID_* value of the keyword. */
#define C_IS_RESERVED_WORD(ID) TREE_LANG_FLAG_0 (ID)
/* Record whether a type or decl was written with nonconstant size.
diff --git gcc/cp/cp-tree.h gcc/cp/cp-tree.h
index 5be5dfe..9f02a97 100644
--- gcc/cp/cp-tree.h
+++ gcc/cp/cp-tree.h
@@ -346,8 +346,7 @@ identifier_p (tree t)
}
/* In an IDENTIFIER_NODE, nonzero if this identifier is actually a
- keyword. C_RID_CODE (node) is then the RID_* value of the keyword,
- and C_RID_YYCODE is the token number wanted by Yacc. */
+ keyword. C_RID_CODE (node) is then the RID_* value of the keyword. */
#define C_IS_RESERVED_WORD(ID) TREE_LANG_FLAG_5 (ID)
Marek
More information about the Gcc-patches
mailing list