[PATCH,testsuite] PR36285 Fixes for compat tests

Andy H hutchinsonandy@aim.com
Sat Jun 7 21:04:00 GMT 2008


Janis

Attach patch fixes much of problem with gcc.dg/compat/struct-layout 
tests on PR36285.

1) Vector.defs assumed  availability of  8 byte double or emulation. Now 
checks  for double or long double >=8bytes and use
4 byte float as fallback.

2) struct-layout-1 used bitfield of 31 for enum.  Will now use 15 if 
sizeof int  <4 bytes

3) SKIP_VA will cause struct-return-10  to fail due to undefined return 
value. This flag normally skips check of variable arguments
but here last arg must be returned for checking. (Whoops!)

There remains the problem of 3 complex float vector tests (16,17,18) 
being too big, with no means to skip or xfail.


2008-06-07  Andy Hutchinson   <hutchinsonandy@aim.com>

    PR testsuite/36285
    * gcc.dg/compat/struct-return-10_y.c :  Remove test_va.
    * gcc.dg/compat/vector-defs.h: Add check for availability of 8 byte 
double.
    * gcc.dg/compat/struct-layout-1_test.h: Change bitfield to match 
integer size.  

Ok for 4.4 mainline
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compat.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080607/c12a20c9/attachment.ksh>


More information about the Gcc-patches mailing list