From: Richard Biener Date: Thu, 9 Jul 2015 08:40:25 +0000 (+0000) Subject: toplev.c (compile_file): Reset maximum_field_alignment after parsing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c909a6a21c2046b41d571f68843334e315ba6a1;p=gcc.git toplev.c (compile_file): Reset maximum_field_alignment after parsing. 2015-07-08 Richard Biener * toplev.c (compile_file): Reset maximum_field_alignment after parsing. From-SVN: r225603 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a615dd24cd6..2af5e00021f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-07-09 Richard Biener + + * toplev.c (compile_file): Reset maximum_field_alignment after parsing. + 2015-07-09 Richard Biener PR tree-optimization/66807 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;