OSDN Git Service

PR go/48553
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Apr 2011 00:09:23 +0000 (00:09 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Apr 2011 00:09:23 +0000 (00:09 +0000)
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

libgo/go/fmt/scan_test.go

index 8d2e6f5..8eb3e5b 100644 (file)
@@ -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)