Commit d88c9275 by Geoffrey Keating Committed by Geoffrey Keating

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
parent 1b4a6975
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> 2001-11-19 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/altivec-1.c: New. * gcc.dg/altivec-1.c: New.
......
...@@ -81,18 +81,24 @@ __db_txnlist_lsnadd(int val, DB_TXNLIST *elp, DB_LSN *lsnp, u_int32_t flags) ...@@ -81,18 +81,24 @@ __db_txnlist_lsnadd(int val, DB_TXNLIST *elp, DB_LSN *lsnp, u_int32_t flags)
return val; return val;
} }
#ifndef STACK_SIZE
#define VLEN 1235
#else
#define VLEN (STACK_SIZE/10)
#endif
int main (void) int main (void)
{ {
DB_TXNLIST el; 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; el.u.l.lsn_array = lsn_a;
if (__db_txnlist_lsnadd (0, &el, &lsn, 0) != 1) if (__db_txnlist_lsnadd (0, &el, &lsn, 0) != 1)
abort (); abort ();
if (__db_txnlist_lsnadd (0, &el, &lsn, 1) != 1234) if (__db_txnlist_lsnadd (0, &el, &lsn, 1) != VLEN-1)
abort (); abort ();
exit (0); exit (0);
......
f() f()
{ {
int x = 1; int x = 1;
#if defined(STACK_SIZE)
char big[STACK_SIZE/2];
#else
char big[0x1000]; char big[0x1000];
#endif
({ ({
__label__ mylabel; __label__ mylabel;
......
#include <stdlib.h> #include <stdlib.h>
#ifndef NO_LABEL_VALUES #if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000)
#if __INT_MAX__ == 32767 #if __INT_MAX__ == 32767
typedef unsigned long uint32; typedef unsigned long uint32;
typedef signed long sint32; typedef signed long sint32;
......
...@@ -16,6 +16,13 @@ ...@@ -16,6 +16,13 @@
# GCC testsuite that uses the `dg.exp' driver. # 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 support procs.
load_lib gcc-dg.exp load_lib gcc-dg.exp
......
...@@ -36,6 +36,11 @@ set TORTURE_OPTIONS [list { } { -DWIDE } ] ...@@ -36,6 +36,11 @@ set TORTURE_OPTIONS [list { } { -DWIDE } ]
set torture_with_loops [list { } { -DWIDE } ] set torture_with_loops [list { } { -DWIDE } ]
set torture_without_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 load_lib gcc-dg.exp
dg-init dg-init
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment