]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make g++ struct packing attribute sensitive to -fpack-struct, as per docn
authorDonald Lindsay <dlindsay@cygnus.com>
Wed, 24 May 2000 18:48:08 +0000 (18:48 +0000)
committerDon Lindsay <dlindsay@gcc.gnu.org>
Wed, 24 May 2000 18:48:08 +0000 (18:48 +0000)
From-SVN: r34139

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 7d32a11ffb2e809038f468d522ea0f0b47b3ca5c..5c7a1335e2d3bca8fc4738d772fbf3ff761add16 100644 (file)
@@ -1,3 +1,8 @@
+Mon May 15 11:46:29 2000  Donald Lindsay  <dlindsay@cygnus.com>
+
+       * semantics.c (begin_class_definition): make the packed
+       attribute be sensitive to the "-fpack-struct" command line flag
+
 2000-05-24  Mark Mitchell  <mark@codesourcery.com>
 
        * init.c (sort_member_init): Fix typo in error message generation
index b5cf6890c1f9e38d783827a3fd01bb57e3c4c605..dbeb7f109f3dfd510d0df16696108c39ecdf94df 100644 (file)
@@ -1946,6 +1946,7 @@ begin_class_definition (t)
   maybe_process_partial_specialization (t);
   pushclass (t, 1);
   TYPE_BEING_DEFINED (t) = 1;
+  TYPE_PACKED (t) = flag_pack_struct;
   /* Reset the interface data, at the earliest possible
      moment, as it might have been set via a class foo;
      before.  */