diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7d32a11ffb2..5c7a1335e2d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Mon May 15 11:46:29 2000 Donald Lindsay + + * semantics.c (begin_class_definition): make the packed + attribute be sensitive to the "-fpack-struct" command line flag + 2000-05-24 Mark Mitchell * init.c (sort_member_init): Fix typo in error message generation diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index b5cf6890c1f..dbeb7f109f3 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -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. */