diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2018-02-02 19:53:59 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2018-02-02 19:53:59 +0000 |
commit | 7c30b12aaab19731a659e8d1d1a287c2d21131bf (patch) | |
tree | e48d1877fab55b806ceb1df0cdf7f960c8e3fd96 /gcc/c | |
parent | dacdc68f3bd5e7c4de0dd54f9dcb1465686ac01a (diff) | |
download | gcc-7c30b12aaab19731a659e8d1d1a287c2d21131bf.zip gcc-7c30b12aaab19731a659e8d1d1a287c2d21131bf.tar.gz gcc-7c30b12aaab19731a659e8d1d1a287c2d21131bf.tar.bz2 |
c-common.h (DECL_UNNAMED_BIT_FIELD): New.
/c-family
2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
* c-common.h (DECL_UNNAMED_BIT_FIELD): New.
/c
2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
* c-typeck.c (really_start_incremental_init, push_init_level,
set_nonincremental_init, output_init_element, process_init_element):
Use DECL_UNNAMED_BIT_FIELD.
/cp
2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
* class.c (is_really_empty_class): Use DECL_UNNAMED_BIT_FIELD.
* constexpr.c (cx_check_missing_mem_inits): Likewise.
* decl.c (next_initializable_field, find_decomp_class_base,
cp_finish_decomp): Likewise.
* typeck2.c (process_init_constructor_record): Likewise.
From-SVN: r257348
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c/c-typeck.c | 19 |
2 files changed, 13 insertions, 12 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 561b58e..97ae43c 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> + + * c-typeck.c (really_start_incremental_init, push_init_level, + set_nonincremental_init, output_init_element, process_init_element): + Use DECL_UNNAMED_BIT_FIELD. + 2018-01-31 Marek Polacek <polacek@redhat.com> PR c/81779 diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index e22bc74..b35c2c0 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -7955,8 +7955,7 @@ really_start_incremental_init (tree type) constructor_fields = TYPE_FIELDS (constructor_type); /* Skip any nameless bit fields at the beginning. */ while (constructor_fields != NULL_TREE - && DECL_C_BIT_FIELD (constructor_fields) - && DECL_NAME (constructor_fields) == NULL_TREE) + && DECL_UNNAMED_BIT_FIELD (constructor_fields)) constructor_fields = DECL_CHAIN (constructor_fields); constructor_unfilled_fields = constructor_fields; @@ -8161,8 +8160,7 @@ push_init_level (location_t loc, int implicit, constructor_fields = TYPE_FIELDS (constructor_type); /* Skip any nameless bit fields at the beginning. */ while (constructor_fields != NULL_TREE - && DECL_C_BIT_FIELD (constructor_fields) - && DECL_NAME (constructor_fields) == NULL_TREE) + && DECL_UNNAMED_BIT_FIELD (constructor_fields)) constructor_fields = DECL_CHAIN (constructor_fields); constructor_unfilled_fields = constructor_fields; @@ -8930,8 +8928,7 @@ set_nonincremental_init (struct obstack * braced_init_obstack) constructor_unfilled_fields = TYPE_FIELDS (constructor_type); /* Skip any nameless bit fields at the beginning. */ while (constructor_unfilled_fields != NULL_TREE - && DECL_C_BIT_FIELD (constructor_unfilled_fields) - && DECL_NAME (constructor_unfilled_fields) == NULL_TREE) + && DECL_UNNAMED_BIT_FIELD (constructor_unfilled_fields)) constructor_unfilled_fields = TREE_CHAIN (constructor_unfilled_fields); } @@ -9300,8 +9297,7 @@ output_init_element (location_t loc, tree value, tree origtype, /* Skip any nameless bit fields. */ while (constructor_unfilled_fields != NULL_TREE - && DECL_C_BIT_FIELD (constructor_unfilled_fields) - && DECL_NAME (constructor_unfilled_fields) == NULL_TREE) + && DECL_UNNAMED_BIT_FIELD (constructor_unfilled_fields)) constructor_unfilled_fields = DECL_CHAIN (constructor_unfilled_fields); } @@ -9665,8 +9661,8 @@ process_init_element (location_t loc, struct c_expr value, bool implicit, constructor_unfilled_fields = DECL_CHAIN (constructor_fields); /* Skip any nameless bit fields. */ while (constructor_unfilled_fields != 0 - && DECL_C_BIT_FIELD (constructor_unfilled_fields) - && DECL_NAME (constructor_unfilled_fields) == 0) + && (DECL_UNNAMED_BIT_FIELD + (constructor_unfilled_fields))) constructor_unfilled_fields = DECL_CHAIN (constructor_unfilled_fields); } @@ -9675,8 +9671,7 @@ process_init_element (location_t loc, struct c_expr value, bool implicit, constructor_fields = DECL_CHAIN (constructor_fields); /* Skip any nameless bit fields at the beginning. */ while (constructor_fields != NULL_TREE - && DECL_C_BIT_FIELD (constructor_fields) - && DECL_NAME (constructor_fields) == NULL_TREE) + && DECL_UNNAMED_BIT_FIELD (constructor_fields)) constructor_fields = DECL_CHAIN (constructor_fields); } else if (TREE_CODE (constructor_type) == UNION_TYPE) |