PR c/67106
* gcc.c-torture/compile/pr67106.c: New testcase.
* c-decl.c: Set TYPE_PACKED in variants.
From-SVN: r231049
+2015-11-29 Jan Hubicka <hubicka@ucw.cz>
+
+ PR c/67106
+ * c-decl.c: Set TYPE_PACKED in variants.
+
2015-11-27 Martin Liska <mliska@suse.cz>
PR c++/68312
}
C_TYPE_BEING_DEFINED (ref) = 1;
- TYPE_PACKED (ref) = flag_pack_struct;
+ for (tree v = TYPE_MAIN_VARIANT (ref); v; v = TYPE_NEXT_VARIANT (v))
+ TYPE_PACKED (v) = flag_pack_struct;
*enclosing_struct_parse_info = struct_parse_info;
struct_parse_info = XNEW (struct c_struct_parse_info);
+2015-11-29 Jan Hubicka <hubicka@ucw.cz>
+
+ PR c/67106
+ * gcc.c-torture/compile/pr67106.c: New testcase.
+
2015-11-29 Jan Hubicka <hubicka@ucw.cz>
PR c/67581
--- /dev/null
+/* { dg-options "-g -fpack-struct" } */
+typedef struct S S;
+
+struct S
+{
+ struct
+ {
+ S *s;
+ };
+ int a;
+};
+