re PR go/48553 (fmt FAILs on 32-bit Solaris 2 with stack overflow)
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 23 Apr 2011 00:09:23 +0000 (00:09 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 23 Apr 2011 00:09:23 +0000 (00:09 +0000)
PR go/48553
libgo: Bring over patch to lower recursion depth in fmt.

From-SVN: r172883

libgo/go/fmt/scan_test.go

index 8d2e6f5c64e86448d8fe6e16d6112b794492771e..8eb3e5bfbb0967b0096742da3b6579edfb72544e 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)