toplev.c (compile_file): Reset maximum_field_alignment after parsing.
authorRichard Biener <rguenther@suse.de>
Thu, 9 Jul 2015 08:40:25 +0000 (08:40 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 9 Jul 2015 08:40:25 +0000 (08:40 +0000)
2015-07-08  Richard Biener  <rguenther@suse.de>

* toplev.c (compile_file): Reset maximum_field_alignment after parsing.

From-SVN: r225603

gcc/ChangeLog
gcc/toplev.c

index a615dd24cd6d3e6a354b2adc6c38afd2a09d9115..2af5e00021f2b003c408bf9c904307286fd20fa2 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-09  Richard Biener  <rguenther@suse.de>
+
+       * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
+
 2015-07-09  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/66807
index d7c50c203ea3d144d708387caf787df524169b4c..91be24f7bcaa47e0cfb2dc225a818f6dc46bcad3 100644 (file)
@@ -553,6 +553,11 @@ compile_file (void)
 
   if (flag_syntax_only || flag_wpa)
     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;
 
   ggc_protect_identifiers = false;