aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/ChangeLog
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-09-29 19:45:32 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-09-29 19:45:32 +0200
commit7d386d45085cbe472089a8df4a2f033d9d5999a5 (patch)
tree7fde43d4b5e2b75bed04151a1e9b955665eb7325 /gcc/c/ChangeLog
parent9129a561984472bfc7a076742ac7e3ee9117c197 (diff)
downloadgcc-7d386d45085cbe472089a8df4a2f033d9d5999a5.zip
gcc-7d386d45085cbe472089a8df4a2f033d9d5999a5.tar.gz
gcc-7d386d45085cbe472089a8df4a2f033d9d5999a5.tar.bz2
c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD rather than DECL_INITIAL.
c-family/ * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD rather than DECL_INITIAL. (common_handle_aligned_attribute): Likewise. c/ * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if width is non-NULL. (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL, don't SET_DECL_C_BIT_FIELD here. cp/ * class.c (check_bitfield_decl): Retrieve and clear width from DECL_BIT_FIELD_REPRESENTATIVE rather than DECL_INITIAL. (check_field_decls): Test DECL_BIT_FIELD_REPRESENTATIVE rather than DECL_INITIAL. (remove_zero_width_bit_fields): Adjust comment. * decl2.c (grokbitfield): Stash width into DECL_BIT_FIELD_REPRESENTATIVE rather than DECL_INITIAL. * pt.c (tsubst_decl): For DECL_C_BIT_FIELD, tsubst_expr DECL_BIT_FIELD_REPRESENTATIVE rather than DECL_INITIAL for width. objc/ * objc-act.c (check_ivars, gen_declaration): For OBJCPLUS look at DECL_BIT_FIELD_REPRESENTATIVE rather than DECL_INITIAL. From-SVN: r253301
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r--gcc/c/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 496b767..87d6c0a 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,5 +1,10 @@
2017-09-29 Jakub Jelinek <jakub@redhat.com>
+ * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if
+ width is non-NULL.
+ (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL,
+ don't SET_DECL_C_BIT_FIELD here.
+
PR c/82340
* c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
instead of trying to set just TREE_READONLY manually.