* 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
+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.
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);
f()
{
int x = 1;
+#if defined(STACK_SIZE)
+ char big[STACK_SIZE/2];
+#else
char big[0x1000];
+#endif
({
__label__ mylabel;
#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;
# 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
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