aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c/c-decl.c')
-rw-r--r--gcc/c/c-decl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c
index 9c3beab..c66bc40 100644
--- a/gcc/c/c-decl.c
+++ b/gcc/c/c-decl.c
@@ -6822,7 +6822,10 @@ grokdeclarator (const struct c_declarator *declarator,
FIELD_DECL, declarator->u.id, type);
DECL_NONADDRESSABLE_P (decl) = bitfield;
if (bitfield && !declarator->u.id)
- TREE_NO_WARNING (decl) = 1;
+ {
+ TREE_NO_WARNING (decl) = 1;
+ DECL_PADDING_P (decl) = 1;
+ }
if (size_varies)
C_DECL_VARIABLE_SIZE (decl) = 1;