This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
stor_layout buglet
- To: gcc-patches at gcc dot gnu dot org
- Subject: stor_layout buglet
- From: Richard Henderson <rth at cygnus dot com>
- Date: Mon, 22 May 2000 23:11:14 -0700
Apparently got hidden by the ifdef during the last set
of changes, as the `size' field no longer exists.
r~
* stor-layout.c (place_field): Change rli->size to rli->offset.
Index: stor-layout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stor-layout.c,v
retrieving revision 1.72
diff -c -p -d -r1.72 stor-layout.c
*** stor-layout.c 2000/05/10 11:02:37 1.72
--- stor-layout.c 2000/05/23 06:08:33
*************** place_field (rli, field)
*** 801,807 ****
&& ! DECL_PACKED (field)
&& ! integer_zerop (DECL_SIZE (field))
&& host_integerp (DECL_SIZE (field), 1)
! && host_integerp (rli->size, 1)
&& host_integerp (TYPE_SIZE (type), 1))
{
unsigned int type_align = TYPE_ALIGN (type);
--- 801,807 ----
&& ! DECL_PACKED (field)
&& ! integer_zerop (DECL_SIZE (field))
&& host_integerp (DECL_SIZE (field), 1)
! && host_integerp (rli->offset, 1)
&& host_integerp (TYPE_SIZE (type), 1))
{
unsigned int type_align = TYPE_ALIGN (type);