From 21266f819aad25cada32bd25f75ad1246f981190 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 1 Jul 2001 23:23:28 +0000 Subject: c-common.c (decl_attributes, [...]): Don't call layout_decl for FIELD_DECL. * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl for FIELD_DECL. From-SVN: r43682 --- gcc/c-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/c-common.c') diff --git a/gcc/c-common.c b/gcc/c-common.c index 0990f23..f398599 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -970,7 +970,8 @@ decl_attributes (node, attributes, prefix_attributes) TREE_UNSIGNED (type) ? "uintmax_t" : "intmax_t"); TREE_TYPE (decl) = type = typefm; DECL_SIZE (decl) = DECL_SIZE_UNIT (decl) = 0; - layout_decl (decl, 0); + if (TREE_CODE (decl) != FIELD_DECL) + layout_decl (decl, 0); } } break; -- cgit v1.1