]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
revert: stor-layout.c (finish_builtin_struct): Copy fields into the variants.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 9 Jul 2014 16:11:53 +0000 (18:11 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Jul 2014 16:11:53 +0000 (16:11 +0000)
Revert:
* stor-layout.c (finish_builtin_struct): Copy fields into the variants.

From-SVN: r212397

gcc/ChangeLog
gcc/stor-layout.c

index 1845144fe4a8d66e2068b8f6e5924ed618f85845..d166c4860367ea6b191dbdaf1f933918e11bb032 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
+
+       Revert:
+       * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
+
 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-visibility.c (function_and_variable_visibility): Remove
index 19e7adbcbdddf8892ec3778adfc17cc2abed5018..109264b2ff020b3b14778892237e1ea204130d4b 100644 (file)
@@ -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)
     {