From ab7481394acffa43f5aac3fed042d83cc2eddd3f Mon Sep 17 00:00:00 2001 From: Andy Hutchinson Date: Mon, 9 Jun 2008 22:48:37 +0000 Subject: [PATCH] re PR testsuite/36285 (gcc.dg/compat/struct-by-value-xxx improper test for AVR target) 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. From-SVN: r136604 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h | 4 ++++ gcc/testsuite/gcc.dg/compat/struct-return-10_y.c | 7 +------ gcc/testsuite/gcc.dg/compat/vector-defs.h | 4 ++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 58f1e52f220..12fea9bb0a0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2008-06-09 Andy Hutchinson + + 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. + 2008-06-09 Joseph Myers * gcc.dg/pr34856.c: Condition use of -maltivec on diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h b/gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h index 697d6b7c429..4a70dfd0601 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h +++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h @@ -1 +1,5 @@ +#if (__SIZEOF_INT__ >= 4) T(0,enum E2 a:31;,B(0,a,e2_m1,e2_0)) +#else +T(0,enum E2 a:15;,B(0,a,e2_m1,e2_0)) +#endif diff --git a/gcc/testsuite/gcc.dg/compat/struct-return-10_y.c b/gcc/testsuite/gcc.dg/compat/struct-return-10_y.c index 7af4068d5d0..dcc0b93c101 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-return-10_y.c +++ b/gcc/testsuite/gcc.dg/compat/struct-return-10_y.c @@ -2,11 +2,6 @@ #include "compat-common.h" -#ifdef SKIP_VA -const int test_va = 0; -#else -const int test_va = 1; -#endif #include "fp2-struct-defs.h" #include "fp2-struct-init.h" @@ -58,7 +53,7 @@ testva##TYPE (int n, ...) \ int i; \ TYPE rslt; \ va_list ap; \ - if (test_va) \ + if (1) \ { \ va_start (ap, n); \ for (i = 0; i < n; i++) \ diff --git a/gcc/testsuite/gcc.dg/compat/vector-defs.h b/gcc/testsuite/gcc.dg/compat/vector-defs.h index 57140f115cd..7574e28c53d 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-defs.h +++ b/gcc/testsuite/gcc.dg/compat/vector-defs.h @@ -6,7 +6,11 @@ typedef int __attribute__((mode(HI))) hi; typedef int __attribute__((mode(SI))) si; typedef int __attribute__((mode(DI))) di; typedef float __attribute__((mode(SF))) sf; +#if ((__SIZEOF_DOUBLE__ >= 8) || (__SIZEOF_LONG_DOUBLE__ >= 8)) typedef float __attribute__((mode(DF))) df; +#else +typedef float __attribute__((mode(SF))) df; +#endif #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5) -- 2.30.2