This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: reorganize layout of RECORD_TYPEs
- To: mark at codesourcery dot com
- Subject: Re: PATCH: reorganize layout of RECORD_TYPEs
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Mon, 13 Mar 2000 13:40:02 +0000
- Cc: gcc-patches at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
mark@codesourcery.com said:
> This patch breaks up some functions in stor-layout.c, in order to
> provide entry-points callable from a front-end to handle class layout.
> In particular, the C++ front-end needs to be able to layout fields
> depending on the placement of previous fields in the structure. By
> allowing the front-end to access the class-layout machinery before all
> the FIELD_DECLs are in place, we can accomplish this cleanly.
You missed a bit...
2000-03-13 Richard Earnshaw <rearnsha@arm.com>
* stor-layout.c (new_record_layout_info): Fix typo inside ifdef
STRUCTURE_SIZE_BOUNDARY.
Index: stor-layout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stor-layout.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -r1.54 -r1.55
--- stor-layout.c 2000/03/13 09:12:50 1.54
+++ stor-layout.c 2000/03/13 13:24:54 1.55
@@ -422,7 +422,7 @@ new_record_layout_info (t)
#ifdef STRUCTURE_SIZE_BOUNDARY
/* Packed structures don't need to have minimum size. */
- if (! TYPE_PACKED (rec))
+ if (! TYPE_PACKED (t))
rli->record_align = MAX (rli->record_align, STRUCTURE_SIZE_BOUNDARY);
#endif