aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2003-10-20 16:28:51 -0400
committerJason Merrill <jason@gcc.gnu.org>2003-10-20 16:28:51 -0400
commitea258926e64ffdd503cd5dbd403f3f7f7364e011 (patch)
treed5d865a66de5e0f4fe889333b6f950571038b97b /gcc/cp/class.c
parentc7560266087585d8d1022bba563d5b03ae44ba26 (diff)
downloadgcc-ea258926e64ffdd503cd5dbd403f3f7f7364e011.zip
gcc-ea258926e64ffdd503cd5dbd403f3f7f7364e011.tar.gz
gcc-ea258926e64ffdd503cd5dbd403f3f7f7364e011.tar.bz2
class.c (layout_class_type): Set DECL_ARTIFICIAL on padding field.
* class.c (layout_class_type): Set DECL_ARTIFICIAL on padding field. From-SVN: r72717
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 17ff0e4..872556a 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -4815,6 +4815,7 @@ layout_class_type (tree t, tree *virtuals_p)
DECL_BIT_FIELD (padding_field) = 1;
DECL_SIZE (padding_field) = padding;
DECL_CONTEXT (padding_field) = t;
+ DECL_ARTIFICIAL (padding_field) = 1;
layout_nonempty_base_or_field (rli, padding_field,
NULL_TREE,
empty_base_offsets);