PATCH: gcc.dg/compat testsuite patch
Janis Johnson
janis187@us.ibm.com
Thu Sep 29 16:52:00 GMT 2005
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
More information about the Gcc-patches
mailing list