From d88c92756b54f2fbdc88559a0db24b9f02e174d5 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 20 Nov 2001 03:51:02 +0000 Subject: [PATCH] cpp.exp: For testing on a remote host, copy across all the headers. * gcc.dg/cpp/cpp.exp: For testing on a remote host, copy across all the headers. * gcc.dg/format/format.exp: For testing on a remote host, copy format.h. * gcc.c-torture/execute/20011008-3.c: Allow for small STACK_SIZE. * gcc.c-torture/execute/930406-1.c: Likewise. * gcc.c-torture/execute/comp-goto-1.c: Likewise. From-SVN: r47194 --- gcc/testsuite/ChangeLog | 11 +++++++++++ gcc/testsuite/gcc.c-torture/execute/20011008-3.c | 12 +++++++++--- gcc/testsuite/gcc.c-torture/execute/930406-1.c | 4 ++++ gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c | 2 +- gcc/testsuite/gcc.dg/cpp/cpp.exp | 7 +++++++ gcc/testsuite/gcc.dg/format/format.exp | 5 +++++ 6 files changed, 37 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8372ca2d932..447e36f82a4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2001-11-19 Geoffrey Keating + + * gcc.dg/cpp/cpp.exp: For testing on a remote host, copy + across all the headers. + * gcc.dg/format/format.exp: For testing on a remote host, + copy format.h. + + * gcc.c-torture/execute/20011008-3.c: Allow for small STACK_SIZE. + * gcc.c-torture/execute/930406-1.c: Likewise. + * gcc.c-torture/execute/comp-goto-1.c: Likewise. + 2001-11-19 Aldy Hernandez * gcc.dg/altivec-1.c: New. diff --git a/gcc/testsuite/gcc.c-torture/execute/20011008-3.c b/gcc/testsuite/gcc.c-torture/execute/20011008-3.c index 5a24ac92ecf..6d2a18f64a7 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20011008-3.c +++ b/gcc/testsuite/gcc.c-torture/execute/20011008-3.c @@ -81,18 +81,24 @@ __db_txnlist_lsnadd(int val, DB_TXNLIST *elp, DB_LSN *lsnp, u_int32_t flags) return val; } +#ifndef STACK_SIZE +#define VLEN 1235 +#else +#define VLEN (STACK_SIZE/10) +#endif + int main (void) { DB_TXNLIST el; - DB_LSN lsn, lsn_a[1235]; + DB_LSN lsn, lsn_a[VLEN]; - el.u.l.ntxns = 1234; + el.u.l.ntxns = VLEN-1; el.u.l.lsn_array = lsn_a; if (__db_txnlist_lsnadd (0, &el, &lsn, 0) != 1) abort (); - if (__db_txnlist_lsnadd (0, &el, &lsn, 1) != 1234) + if (__db_txnlist_lsnadd (0, &el, &lsn, 1) != VLEN-1) abort (); exit (0); diff --git a/gcc/testsuite/gcc.c-torture/execute/930406-1.c b/gcc/testsuite/gcc.c-torture/execute/930406-1.c index 1546f5150dd..9728eabd7ed 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930406-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930406-1.c @@ -1,7 +1,11 @@ f() { int x = 1; +#if defined(STACK_SIZE) + char big[STACK_SIZE/2]; +#else char big[0x1000]; +#endif ({ __label__ mylabel; diff --git a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c index 729b1f59876..bf648b3440c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c @@ -1,6 +1,6 @@ #include -#ifndef NO_LABEL_VALUES +#if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000) #if __INT_MAX__ == 32767 typedef unsigned long uint32; typedef signed long sint32; diff --git a/gcc/testsuite/gcc.dg/cpp/cpp.exp b/gcc/testsuite/gcc.dg/cpp/cpp.exp index 3d2f4520a8e..fe6b608bbf5 100644 --- a/gcc/testsuite/gcc.dg/cpp/cpp.exp +++ b/gcc/testsuite/gcc.dg/cpp/cpp.exp @@ -16,6 +16,13 @@ # GCC testsuite that uses the `dg.exp' driver. +# There's a bunch of headers we need. +if [is_remote host] { + foreach header [glob -nocomplain $srcdir/$subdir/*.{h,def} ] { + remote_download host $header + } +} + # Load support procs. load_lib gcc-dg.exp diff --git a/gcc/testsuite/gcc.dg/format/format.exp b/gcc/testsuite/gcc.dg/format/format.exp index b478fac25c3..b9eaf412292 100644 --- a/gcc/testsuite/gcc.dg/format/format.exp +++ b/gcc/testsuite/gcc.dg/format/format.exp @@ -36,6 +36,11 @@ set TORTURE_OPTIONS [list { } { -DWIDE } ] set torture_with_loops [list { } { -DWIDE } ] set torture_without_loops [list { } { -DWIDE } ] +# Need to copy the format.h header. +if [is_remote host] { + remote_download host $srcdir/$subdir/format.h +} + load_lib gcc-dg.exp dg-init -- 2.30.2