]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-07-08 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jul 2015 08:40:25 +0000 (08:40 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jul 2015 08:40:25 +0000 (08:40 +0000)
* toplev.c (compile_file): Reset maximum_field_alignment after parsing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225603 138bc75d-0d04-0410-961f-82ee72b054a4

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;