diff options
author | Jason Merrill <jason@redhat.com> | 2010-04-09 11:19:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-04-09 11:19:17 -0400 |
commit | 93e9807aa58db6181185ec664e23022ae2ce6725 (patch) | |
tree | 6f63089126fbd5da386a4c0c79591a35222db0ff /gcc/stor-layout.c | |
parent | 74367220738d7ee779aff3dfa56ab8da6c5cab2c (diff) | |
download | gcc-93e9807aa58db6181185ec664e23022ae2ce6725.zip gcc-93e9807aa58db6181185ec664e23022ae2ce6725.tar.gz gcc-93e9807aa58db6181185ec664e23022ae2ce6725.tar.bz2 |
re PR c++/41788 (-Wpacked option changes the layout of packed non-POD structs)
PR c++/41788
* stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
based on a warning flag.
From-SVN: r158166
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index ccae220..46ac333 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1506,8 +1506,6 @@ finalize_record_size (record_layout_info rli) unpacked_size = round_up_loc (input_location, TYPE_SIZE (rli->t), rli->unpacked_align); if (simple_cst_equal (unpacked_size, TYPE_SIZE (rli->t))) { - TYPE_PACKED (rli->t) = 0; - if (TYPE_NAME (rli->t)) { tree name; |