text/template: reduce maxExecDepth for gccgo
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 4 Aug 2016 16:48:28 +0000 (16:48 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 4 Aug 2016 16:48:28 +0000 (16:48 +0000)
commitaa8a418bbcb6c0f5053fb8a40f7586d7388b8bf5
tree20a07a0f64a41d87dfe15d7680b5398a772d50e0
parent7a62db9787f6a65e3057cab68e8453ca58716a1b
text/template: reduce maxExecDepth for gccgo

    When using gccgo on systems without full support for split stacks a
    recursive template can overrun the available stack space.  Reduce the
    limit from 100000 to 10000 to make this less likely.  It's still high
    enough that real uses will work.

    Reviewed-on: https://go-review.googlesource.com/25467

From-SVN: r239141
gcc/go/gofrontend/MERGE
libgo/go/text/template/exec.go