From: Dave Cheney Date: Tue, 7 Apr 2015 15:24:17 +0000 (+1000) Subject: cmd/internal/gc: fix race build X-Git-Tag: go1.5beta1~1275 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d6b40698528c94f3d0d3e263d5713994cebfb3a6;p=gostls13.git cmd/internal/gc: fix race build Add special case for OGETG which should never be instrumented. Change-Id: I7d082abb8608537f82b03362b687baf2a1d809dc Reviewed-on: https://go-review.googlesource.com/8551 Reviewed-by: Dmitry Vyukov --- diff --git a/src/cmd/internal/gc/racewalk.go b/src/cmd/internal/gc/racewalk.go index e054f47a17..7ae1c55192 100644 --- a/src/cmd/internal/gc/racewalk.go +++ b/src/cmd/internal/gc/racewalk.go @@ -410,6 +410,9 @@ func racewalknode(np **Node, init **NodeList, wr int, skip int) { OLABEL: goto ret + case OGETG: + Yyerror("racewalk: OGETG can happen only in runtime which we don't instrument") + // does not require instrumentation case OPRINT, // don't bother instrumenting it OPRINTN, // don't bother instrumenting it