aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-04-26 19:10:17 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-04-26 19:10:17 +0000
commit8415f31724e1cb601b97b3f82292a24257cb5ff9 (patch)
tree5d76eb6d77117ebeeac19e76ee6bd90f9bc662bb /gcc
parent448f65dba370077858a46c17c869c33a12f158a4 (diff)
downloadgcc-8415f31724e1cb601b97b3f82292a24257cb5ff9.zip
gcc-8415f31724e1cb601b97b3f82292a24257cb5ff9.tar.gz
gcc-8415f31724e1cb601b97b3f82292a24257cb5ff9.tar.bz2
c-parser.c (struct c_token): Move location field up.
* c-parser.c (struct c_token): Move location field up. * c-tree.h (struct c_typespec): Move expr_const_operands field up. (struct c_declspecs): Convert typespec_word, storage_class, and default_int_p into bitfields. (struct c_declarator): Move loc field up. From-SVN: r158744
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/c-parser.c4
-rw-r--r--gcc/c-tree.h16
3 files changed, 18 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2ceefa2..163bda8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
+ * c-parser.c (struct c_token): Move location field up.
+ * c-tree.h (struct c_typespec): Move expr_const_operands field up.
+ (struct c_declspecs): Convert typespec_word, storage_class, and
+ default_int_p into bitfields.
+ (struct c_declarator): Move loc field up.
+
+2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
+
* cfgloop.h (struct loop): Move can_be_parallel field up.
* ipa-prop.h (struct ip_node_params): Move bitfields up.
* tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index a8feb27..cbdee1e 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -156,10 +156,10 @@ typedef struct GTY (()) c_token {
/* If this token is a CPP_PRAGMA, this indicates the pragma that
was seen. Otherwise it is PRAGMA_NONE. */
ENUM_BITFIELD (pragma_kind) pragma_kind : 8;
- /* The value associated with this token, if any. */
- tree value;
/* The location at which this token was found. */
location_t location;
+ /* The value associated with this token, if any. */
+ tree value;
} c_token;
/* A parser structure recording information about the state and
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 681fe9b..50ed9db 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -160,6 +160,9 @@ enum c_typespec_kind {
struct c_typespec {
/* What kind of type specifier this is. */
enum c_typespec_kind kind;
+ /* Whether the expression has operands suitable for use in constant
+ expressions. */
+ bool expr_const_operands;
/* The specifier itself. */
tree spec;
/* An expression to be evaluated before the type specifier, in the
@@ -171,9 +174,6 @@ struct c_typespec {
expression itself (as opposed to the array sizes) forms no part
of the type and so needs to be recorded separately. */
tree expr;
- /* Whether the expression has operands suitable for use in constant
- expressions. */
- bool expr_const_operands;
};
/* A storage class specifier. */
@@ -220,11 +220,11 @@ struct c_declspecs {
NULL; attributes (possibly from multiple lists) will be passed
separately. */
tree attrs;
- /* Any type specifier keyword used such as "int", not reflecting
- modifiers such as "short", or cts_none if none. */
- enum c_typespec_keyword typespec_word;
/* The storage class specifier, or csc_none if none. */
enum c_storage_class storage_class;
+ /* Any type specifier keyword used such as "int", not reflecting
+ modifiers such as "short", or cts_none if none. */
+ ENUM_BITFIELD (c_typespec_keyword) typespec_word : 8;
/* Whether any expressions in typeof specifiers may appear in
constant expressions. */
BOOL_BITFIELD expr_const_operands : 1;
@@ -252,7 +252,7 @@ struct c_declspecs {
BOOL_BITFIELD deprecated_p : 1;
/* Whether the type defaulted to "int" because there were no type
specifiers. */
- BOOL_BITFIELD default_int_p;
+ BOOL_BITFIELD default_int_p : 1;
/* Whether "long" was specified. */
BOOL_BITFIELD long_p : 1;
/* Whether "long" was specified more than once. */
@@ -319,9 +319,9 @@ struct c_arg_info {
struct c_declarator {
/* The kind of declarator. */
enum c_declarator_kind kind;
+ location_t id_loc; /* Currently only set for cdk_id, cdk_array. */
/* Except for cdk_id, the contained declarator. For cdk_id, NULL. */
struct c_declarator *declarator;
- location_t id_loc; /* Currently only set for cdk_id, cdk_array. */
union {
/* For identifiers, an IDENTIFIER_NODE or NULL_TREE if an abstract
declarator. */