aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2001-11-20 03:51:02 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2001-11-20 03:51:02 +0000
commitd88c92756b54f2fbdc88559a0db24b9f02e174d5 (patch)
treeefa1c18d79c22d24bc6397a6afe0b9bce2ccdcf1 /gcc/testsuite
parent1b4a6975f7e4ff26374f0ec942f40acdb12b643f (diff)
downloadgcc-d88c92756b54f2fbdc88559a0db24b9f02e174d5.zip
gcc-d88c92756b54f2fbdc88559a0db24b9f02e174d5.tar.gz
gcc-d88c92756b54f2fbdc88559a0db24b9f02e174d5.tar.bz2
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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog11
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20011008-3.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/930406-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cpp.exp7
-rw-r--r--gcc/testsuite/gcc.dg/format/format.exp5
6 files changed, 37 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8372ca2..447e36f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,14 @@
+2001-11-19 Geoffrey Keating <geoffk@redhat.com>
+
+ * 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 <aldyh@redhat.com>
* 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 5a24ac9..6d2a18f 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 1546f51..9728eab 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 729b1f5..bf648b3 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 <stdlib.h>
-#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 3d2f452..fe6b608 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 b478fac..b9eaf41 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