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]
Other format: [Raw text]

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


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