summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-01 23:23:28 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-01 23:23:28 +0000
commit8829682cd1325702a192fef1d839a1595782b4ab (patch)
treeacbf08152155ff7bf87b612ae12c525c23017a25 /gcc/c-common.c
parenta9f4b9f7b1ea2d975e97f4817cca97169cb3a6ef (diff)
downloadgcc-8829682cd1325702a192fef1d839a1595782b4ab.tar.gz
* c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
for FIELD_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 0990f23d424..f398599138d 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;