aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/noder.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-01-11 13:53:34 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2017-01-11 23:39:50 +0000
commitf65abf6ddc8d1f3d403a9195fd74eaffa022b07f (patch)
tree8fb0505e4ecc9dee253a8aa055615b19534aa500 /src/cmd/compile/internal/gc/noder.go
parent641ef2a73392b01382d7b2ffd34820fa36f5f9cf (diff)
downloadgo-f65abf6ddc8d1f3d403a9195fd74eaffa022b07f.tar.xz
cmd/compile: hide testdclstack behind debug flag
This reduces compilation time for the program in #18602 from 7 hours to 30 min. Updates #14781 Updates #18602 Change-Id: I3c4af878a08920e6373d3b3b0c4453ee002e32eb Reviewed-on: https://go-review.googlesource.com/35113 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/gc/noder.go')
-rw-r--r--src/cmd/compile/internal/gc/noder.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/gc/noder.go b/src/cmd/compile/internal/gc/noder.go
index ca99adea27..ce18297ac3 100644
--- a/src/cmd/compile/internal/gc/noder.go
+++ b/src/cmd/compile/internal/gc/noder.go
@@ -34,6 +34,7 @@ func parseFile(filename string) {
}
if nsyntaxerrors == 0 {
+ // Always run testdclstack here, even when debug_dclstack is not set, as a sanity measure.
testdclstack()
}
}