diff options
author | Donald Lindsay <dlindsay@cygnus.com> | 2000-05-24 18:48:08 +0000 |
---|---|---|
committer | Don Lindsay <dlindsay@gcc.gnu.org> | 2000-05-24 18:48:08 +0000 |
commit | 55760a0c83f63a3d0c1fd9c108f2a42b93d78c9c (patch) | |
tree | b9b931074ff8ac18a2a7f5522e29fdce886ef396 /gcc | |
parent | aa134ba753a5755f5734525d9e5fba3a444accc7 (diff) | |
download | gcc-55760a0c83f63a3d0c1fd9c108f2a42b93d78c9c.zip gcc-55760a0c83f63a3d0c1fd9c108f2a42b93d78c9c.tar.gz gcc-55760a0c83f63a3d0c1fd9c108f2a42b93d78c9c.tar.bz2 |
Make g++ struct packing attribute sensitive to -fpack-struct, as per docn
From-SVN: r34139
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7d32a11..5c7a133 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index b5cf689..dbeb7f1 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. */ |