cpp.exp: For testing on a remote host, copy across all the headers.
authorGeoffrey Keating <geoffk@redhat.com>
Tue, 20 Nov 2001 03:51:02 +0000 (03:51 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 20 Nov 2001 03:51:02 +0000 (03:51 +0000)
* 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
gcc/testsuite/gcc.c-torture/execute/20011008-3.c
gcc/testsuite/gcc.c-torture/execute/930406-1.c
gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c
gcc/testsuite/gcc.dg/cpp/cpp.exp
gcc/testsuite/gcc.dg/format/format.exp

index 8372ca2d9320bc5480ff86ab05ac9724a2e74edf..447e36f82a441f44d6b1c00f0cf13472018fa4a7 100644 (file)
@@ -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.
index 5a24ac92ecf9dd46b75ce6af18f99976a23da12a..6d2a18f64a7b1c37ba540fd5ed78133821527ac0 100644 (file)
@@ -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);
index 1546f5150dd4bcf0cd3dcb4f9599791a314516d7..9728eabd7eda436ba5c7f83183f5ac5fffe00f08 100644 (file)
@@ -1,7 +1,11 @@
 f()
 {
   int x = 1;
+#if defined(STACK_SIZE)
+  char big[STACK_SIZE/2];
+#else
   char big[0x1000];
+#endif
 
   ({
     __label__ mylabel;
index 729b1f59876a92146d447f81e7af67e9684b1b08..bf648b3440ccce3871cf703a4cc6e8fe44b65287 100644 (file)
@@ -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;
index 3d2f4520a8e8ebe1706495fb349e5f85de645311..fe6b608bbf5c09f2ebefec29eb3bc2cdbc16ac8b 100644 (file)
 
 # 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
 
index b478fac25c39c4d3b827b9f406f2f5af102f1f22..b9eaf4122923fc2ddfbf8b87c08297db195dabdc 100644 (file)
@@ -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