Make g++ struct packing attribute sensitive to -fpack-struct, as per docn
From-SVN: r34139
This commit is contained in:
parent
aa134ba753
commit
55760a0c83
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
2000-05-24 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* init.c (sort_member_init): Fix typo in error message generation
|
* init.c (sort_member_init): Fix typo in error message generation
|
||||||
|
|
|
@ -1946,6 +1946,7 @@ begin_class_definition (t)
|
||||||
maybe_process_partial_specialization (t);
|
maybe_process_partial_specialization (t);
|
||||||
pushclass (t, 1);
|
pushclass (t, 1);
|
||||||
TYPE_BEING_DEFINED (t) = 1;
|
TYPE_BEING_DEFINED (t) = 1;
|
||||||
|
TYPE_PACKED (t) = flag_pack_struct;
|
||||||
/* Reset the interface data, at the earliest possible
|
/* Reset the interface data, at the earliest possible
|
||||||
moment, as it might have been set via a class foo;
|
moment, as it might have been set via a class foo;
|
||||||
before. */
|
before. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue