Miscellaneous testsuitsuite failures under hpux 10.20

John David Anglin dave@hiauly1.hia.nrc.ca
Wed Jun 28 14:22:00 GMT 2000


> I see no reason why a field can't be aligned to just as large a
> boundary as any other construct.

OK.  It is not clear to me why both DECL_ALIGN and DECL_OFFSET_ALIGN
are both necessary, and how they differ in function.  I also have concerns
about the portability of ffs which you have used in your patch.  The
HP man page says it is not portable.  Also, with your patch, alignments
have to be a power of 2 and at the moment align and offset_align are
not treated symmetrically.

Wouldn't it be simpler to just the struct tree_decl definition:

...
  union {
    HOST_WIDE_INT i;
    enum built_in_function f;
    struct {unsigned int align : 24; unsigned int off_align : 8;} a;
} u1;

HOST_WIDE_INT is already long on some machines.  Would just eliminating
the bit-fields for align and offset_align be a major killer space wise
if both fields are actually needed?

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


More information about the Gcc-bugs mailing list