OSDN Git Service

PR c++/41788
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Apr 2010 15:19:17 +0000 (15:19 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Apr 2010 15:19:17 +0000 (15:19 +0000)
* stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
based on a warning flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158166 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/stor-layout.c

index d5aec72..74eb521 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-09  Jason Merrill  <jason@redhat.com>
+
+       PR c++/41788
+       * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
+       based on a warning flag.
+
 2010-04-09  Richard Guenther  <rguenther@suse.de>
 
        * tree-pretty-print.c (dump_generic_node): Dump
index ccae220..46ac333 100644 (file)
@@ -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;