This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Limit array element alignment to less than size.
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: mark at codesourcery dot com
- Cc: pinskia at physics dot uc dot edu, gcc-patches at gcc dot gnu dot org
- Date: Wed, 5 Oct 2005 15:41:16 -0700 (PDT)
- Subject: Re: PATCH: Limit array element alignment to less than size.
> > the TYPE_SIZE_UNIT was not zero because if it was zero then it doesn't
> > matter that the alignment is greater than zero.
>
> Do you know of any cases where TYPE_SIZE_UNIT is set and is zero? (That
> seems very odd, but I can think of a couple of cases of zero-sized types.)
Yes, this happens with an array of zero size structures.
gcc.dg/tree-ssa/pr15791-2.c was the regression I had without this check.
> OK with that minor change.
OK, I will check it in after I make your change and I get approval for
the testsuite change.
Steve Ellcey
sje@cup.hp.com