aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-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 a615dd2..2af5e00 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 d7c50c2..91be24f 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;