summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-09 08:40:25 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-09 08:40:25 +0000
commit67792e5e14211abaa543532ad98a2056013a8d8f (patch)
tree1dbad24a212ab4dcb015f48fff5989100557338c
parent0a2874c2bb08b247d45740f9e75ee8be994f63c6 (diff)
downloadgcc-67792e5e14211abaa543532ad98a2056013a8d8f.tar.gz
2015-07-08 Richard Biener <rguenther@suse.de>
* 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
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a615dd24cd6..2af5e00021f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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
* tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index d7c50c203ea..91be24f7bca 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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;