diff options
| author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-08-29 10:16:09 +0200 |
|---|---|---|
| committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-08-29 10:16:09 +0200 |
| commit | 66c8935f732db28632b75aea456c682487febf15 (patch) | |
| tree | eed996992f6b750e7628eb36e130533c75d4f58d /src/pkg/runtime/os_linux.c | |
| parent | a9e119ac7006c273d0045bcbc8c8d1a83f58f264 (diff) | |
| download | go-66c8935f732db28632b75aea456c682487febf15.tar.xz | |
cmd/gc: fix detection of initialization loop.
The compiler computes initialization order by finding
a spanning tree between a package's global variables.
But it does so by walking both variables and functions
and stops detecting cycles between variables when they
mix with a cycle of mutually recursive functions.
Fixes #4847.
R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/9663047
Diffstat (limited to 'src/pkg/runtime/os_linux.c')
0 files changed, 0 insertions, 0 deletions
