Commit df2b750f by Richard Henderson Committed by Richard Henderson

name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD.

        * name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD.
        * parser.c (struct cp_token): Likewise.
        (struct cp_parser_token_tree_map_node): Likewise.
        * lex.c (struct resword): Move const after ENUM_BITFIELD.

From-SVN: r74169
parent 142b798b
2003-12-02 Richard Henderson <rth@redhat.com>
* name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD.
* parser.c (struct cp_token): Likewise.
(struct cp_parser_token_tree_map_node): Likewise.
* lex.c (struct resword): Move const after ENUM_BITFIELD.
2003-11-30 Mark Mitchell <mark@codesourcery.com> 2003-11-30 Mark Mitchell <mark@codesourcery.com>
PR c++/9849 PR c++/9849
......
...@@ -231,7 +231,7 @@ init_operators (void) ...@@ -231,7 +231,7 @@ init_operators (void)
struct resword struct resword
{ {
const char *const word; const char *const word;
const ENUM_BITFIELD(rid) rid : 16; ENUM_BITFIELD(rid) const rid : 16;
const unsigned int disable : 16; const unsigned int disable : 16;
}; };
......
...@@ -211,7 +211,7 @@ struct cp_binding_level GTY(()) ...@@ -211,7 +211,7 @@ struct cp_binding_level GTY(())
/* The kind of scope that this object represents. However, a /* The kind of scope that this object represents. However, a
SK_TEMPLATE_SPEC scope is represented with KIND set to SK_TEMPLATE_SPEC scope is represented with KIND set to
SK_TEMPALTE_PARMS and EXPLICIT_SPEC_P set to true. */ SK_TEMPALTE_PARMS and EXPLICIT_SPEC_P set to true. */
enum scope_kind kind : 4; ENUM_BITFIELD (scope_kind) kind : 4;
/* True if this scope is an SK_TEMPLATE_SPEC scope. This field is /* True if this scope is an SK_TEMPLATE_SPEC scope. This field is
only valid if KIND == SK_TEMPLATE_PARMS. */ only valid if KIND == SK_TEMPLATE_PARMS. */
......
...@@ -68,10 +68,10 @@ ...@@ -68,10 +68,10 @@
typedef struct cp_token GTY (()) typedef struct cp_token GTY (())
{ {
/* The kind of token. */ /* The kind of token. */
enum cpp_ttype type : 8; ENUM_BITFIELD (cpp_ttype) type : 8;
/* If this token is a keyword, this value indicates which keyword. /* If this token is a keyword, this value indicates which keyword.
Otherwise, this value is RID_MAX. */ Otherwise, this value is RID_MAX. */
enum rid keyword : 8; ENUM_BITFIELD (rid) keyword : 8;
/* The value associated with this token, if any. */ /* The value associated with this token, if any. */
tree value; tree value;
/* The location at which this token was found. */ /* The location at which this token was found. */
...@@ -1076,9 +1076,9 @@ typedef enum cp_parser_declarator_kind ...@@ -1076,9 +1076,9 @@ typedef enum cp_parser_declarator_kind
typedef struct cp_parser_token_tree_map_node typedef struct cp_parser_token_tree_map_node
{ {
/* The token type. */ /* The token type. */
enum cpp_ttype token_type : 8; ENUM_BITFIELD (cpp_ttype) token_type : 8;
/* The corresponding tree code. */ /* The corresponding tree code. */
enum tree_code tree_type : 8; ENUM_BITFIELD (tree_code) tree_type : 8;
} cp_parser_token_tree_map_node; } cp_parser_token_tree_map_node;
/* A complete map consists of several ordinary entries, followed by a /* A complete map consists of several ordinary entries, followed by a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment