diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-23 00:09:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-23 00:09:23 +0000 |
commit | 549dd8fe83a27a752865f0adc06881b9b867a2e2 (patch) | |
tree | 42763e4e0cbeacbed7f61db61cd84220d3dd5cea /libgo | |
parent | 8c0d18659be4271377c1114c0cb7e225811ac914 (diff) | |
download | gcc-549dd8fe83a27a752865f0adc06881b9b867a2e2.zip gcc-549dd8fe83a27a752865f0adc06881b9b867a2e2.tar.gz gcc-549dd8fe83a27a752865f0adc06881b9b867a2e2.tar.bz2 |
re PR go/48553 (fmt FAILs on 32-bit Solaris 2 with stack overflow)
PR go/48553
libgo: Bring over patch to lower recursion depth in fmt.
From-SVN: r172883
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/fmt/scan_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/go/fmt/scan_test.go b/libgo/go/fmt/scan_test.go index 8d2e6f5..8eb3e5b 100644 --- a/libgo/go/fmt/scan_test.go +++ b/libgo/go/fmt/scan_test.go @@ -810,7 +810,9 @@ func TestScanInts(t *testing.T) { }) } -const intCount = 1000 +// 800 is small enough to not overflow the stack when using gccgo on a +// platform that does not support split stack. +const intCount = 800 func testScanInts(t *testing.T, scan func(*RecursiveInt, *bytes.Buffer) os.Error) { r := new(RecursiveInt) |