aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-07-09 08:40:25 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-07-09 08:40:25 +0000
commit6c909a6a21c2046b41d571f68843334e315ba6a1 (patch)
tree1dbad24a212ab4dcb015f48fff5989100557338c /gcc
parent830ff0020a5a52b8ec4783d28224f4f6a2c6f3a7 (diff)
downloadgcc-6c909a6a21c2046b41d571f68843334e315ba6a1.zip
gcc-6c909a6a21c2046b41d571f68843334e315ba6a1.tar.gz
gcc-6c909a6a21c2046b41d571f68843334e315ba6a1.tar.bz2
toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2015-07-08 Richard Biener <rguenther@suse.de> * toplev.c (compile_file): Reset maximum_field_alignment after parsing. From-SVN: r225603
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;