This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: gcc.dg/compat testsuite patch
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gcc-patches at gcc dot gnu dot org, jakub at redhat dot com
- Date: Thu, 29 Sep 2005 09:52:29 -0700
- Subject: Re: PATCH: gcc.dg/compat testsuite patch
- References: <200509291550.IAA20713@hpsje.cup.hp.com>
On Thu, Sep 29, 2005 at 08:50:48AM -0700, Steve Ellcey wrote:
> I have a (seperate) patch that will cause GCC to generate an error if it
> sees an array whose elements have an alignment requirement greater than
> there size. That patch causes regressions in the gcc.dg/compat
> testsuite because the struct-layout-1_generate.c program that generates
> test cases creates arrays with elements whose alignment is greater than
> their size.
>
> This patch changes struct-layout-1_generate.c to not generate such test
> cases by not allowing the alignment attribute on array elements.
>
> Tested on HPPA HP-UX and IA64 HP-UX and Linux with no regressions. It
> also allowed me to use my front-end patch (the one that gives the
> front-end error when it sees elements whose alignment is greater than
> their size) with no new failures.
>
> OK for checkin?
If the front-end patch is approved then this is OK. Otherwise I'd like
to hear from Jakub, who wrote these tests.
Janis