aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-07-09 18:11:53 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-07-09 16:11:53 +0000
commit1469344a8b3fa842ba5b46c322df677933b27cf9 (patch)
tree9c412b0387171383dc3b673a7cc598fcf7195946 /gcc/stor-layout.c
parentef68f4ab659a4c5c7307fd98122e72a8363e9baa (diff)
downloadgcc-1469344a8b3fa842ba5b46c322df677933b27cf9.zip
gcc-1469344a8b3fa842ba5b46c322df677933b27cf9.tar.gz
gcc-1469344a8b3fa842ba5b46c322df677933b27cf9.tar.bz2
revert: stor-layout.c (finish_builtin_struct): Copy fields into the variants.
Revert: * stor-layout.c (finish_builtin_struct): Copy fields into the variants. From-SVN: r212397
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 19e7adb..109264b 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -2070,7 +2070,7 @@ void
finish_builtin_struct (tree type, const char *name, tree fields,
tree align_type)
{
- tree tail, next, variant;
+ tree tail, next;
for (tail = NULL_TREE; fields; tail = fields, fields = next)
{
@@ -2079,10 +2079,6 @@ finish_builtin_struct (tree type, const char *name, tree fields,
DECL_CHAIN (fields) = tail;
}
TYPE_FIELDS (type) = tail;
- for (variant = TYPE_MAIN_VARIANT (type);
- variant != 0;
- variant = TYPE_NEXT_VARIANT (variant))
- TYPE_FIELDS (variant) = tail;
if (align_type)
{