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]

[PATCH,testsuite] PR36285 Fixes for compat tests


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

Attachment: compat.patch
Description: Text document


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