From cd6368115dbd75d9187877097c48a0d8d4c04fd4 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 9 Feb 2012 06:42:03 +0000 Subject: [PATCH] go-test.exp (go-gc-tests): Don't run chan/select2.go on systems which don't support -fsplit-stack. * go.test/go-test.exp (go-gc-tests): Don't run chan/select2.go on systems which don't support -fsplit-stack. From-SVN: r184033 --- gcc/testsuite/ChangeLog | 7 ++++++- gcc/testsuite/go.test/go-test.exp | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e5175870681..8bfbbdea670 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,12 @@ +2012-02-08 Ian Lance Taylor + + * go.test/go-test.exp (go-gc-tests): Don't run chan/select2.go on + systems which don't support -fsplit-stack. + 2012-02-08 Andrew MacLeod * gcc.dg/simulate-thread/simulate-thread.exp: Use -O0, -O2, and -O3. - * gcc.dg/simulate-thread/simulate-thread.gdb: Don't display every + * gcc.dg/simulate-thread/simulate-thread.gdb: Don't display every machine instuction in the log. 2012-02-08 Jack Howarth diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp index d5f2f4e4797..4c85c801d83 100644 --- a/gcc/testsuite/go.test/go-test.exp +++ b/gcc/testsuite/go.test/go-test.exp @@ -33,6 +33,7 @@ load_lib go-dg.exp load_lib go-torture.exp +load_lib target-supports.exp # Compare two files proc filecmp { file1 file2 testname } { @@ -329,6 +330,15 @@ proc go-gc-tests { } { continue } + if { [file tail $test] == "select2.go" && \ + ! [check_effective_target_split_stack] } { + # chan/select2.go fails on targets without split stack, + # because they allocate a large stack segment that blows + # out the memory calculations. + untested $name + continue + } + set fd [open $test r] set lines_ok 1