projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c0d186
)
re PR go/48553 (fmt FAILs on 32-bit Solaris 2 with stack overflow)
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 23 Apr 2011 00:09:23 +0000
(
00:09
+0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/libgo/go/fmt/scan_test.go
b/libgo/go/fmt/scan_test.go
index 8d2e6f5c64e86448d8fe6e16d6112b794492771e..8eb3e5bfbb0967b0096742da3b6579edfb72544e 100644
(file)
--- 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)