From: Jan Hubicka Date: Wed, 9 Jul 2014 16:11:53 +0000 (+0200) Subject: revert: stor-layout.c (finish_builtin_struct): Copy fields into the variants. X-Git-Tag: releases/gcc-5.1.0~6436 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1469344a8b3fa842ba5b46c322df677933b27cf9;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1845144fe4a8..d166c4860367 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-08 Jan Hubicka + + Revert: + * stor-layout.c (finish_builtin_struct): Copy fields into the variants. + 2014-07-08 Jan Hubicka * ipa-visibility.c (function_and_variable_visibility): Remove diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 19e7adbcbddd..109264b2ff02 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) {