File gcc43-bnc977654.patch of Package gcc43
2015-07-08 Richard Biener <rguenther@suse.de>
PR middle-end/43341
* toplev.c (compile_file): Reset maximum_field_alignment after parsing.
Index: gcc/toplev.c
===================================================================
--- gcc/toplev.c (revision 183243)
+++ gcc/toplev.c (working copy)
@@ -1052,6 +1052,11 @@ compile_file (void)
if (flag_syntax_only)
return;
+ /* Reset maximum_field_alignment, it can be adjusted by #pragma pack
+ and this shouldn't influence any types built by the middle-end
+ from now on (like gcov_info_type). */
+ maximum_field_alignment = initial_max_fld_align * BITS_PER_UNIT;
+
lang_hooks.decls.final_write_globals ();
if (errorcount || sorrycount)