summaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-23 00:09:23 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-23 00:09:23 +0000
commit3669183e909065daf8b3f5b3187b4bcd6e17f940 (patch)
tree42763e4e0cbeacbed7f61db61cd84220d3dd5cea /libgo/go
parentc3e6f413a2b3d1462f124ac2b98e4e05a0669c9f (diff)
downloadgcc-3669183e909065daf8b3f5b3187b4bcd6e17f940.tar.gz
PR go/48553
libgo: Bring over patch to lower recursion depth in fmt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/fmt/scan_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/go/fmt/scan_test.go b/libgo/go/fmt/scan_test.go
index 8d2e6f5c64e..8eb3e5bfbb0 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)