This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

stor_layout buglet


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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]