46f7b80ec4
The runtime.dbgvars initializer looks like var dbgvars = []dbgVar{ {"allocfreetrace", &debug.allocfreetrace}, } Because the field address was not recognized as valid for a static initializer, the variable was initialized at runtime. Normally that would be fine, but for the runtime package it meant that dbgvars was not initialized when it was read by parsedebugvars. That meant that the GODEBUG environment variable did nothing. Fixing that revealed that the static initializer checks had to be more careful about interface types, just like the existing is_constant methods. Reviewed-on: https://go-review.googlesource.com/35891 From-SVN: r244982 |
||
---|---|---|
.. | ||
gofrontend | ||
ChangeLog | ||
Make-lang.in | ||
README.gcc | ||
config-lang.in | ||
gccgo.texi | ||
go-backend.c | ||
go-c.h | ||
go-gcc-diagnostics.cc | ||
go-gcc.cc | ||
go-gcc.h | ||
go-lang.c | ||
go-linemap.cc | ||
go-location.h | ||
go-sha1.cc | ||
go-system.h | ||
gospec.c | ||
lang-specs.h | ||
lang.opt |
README.gcc
The files in the gofrontend subdirectory are mirrored from the gofrontend project hosted at http://code.google.com/p/gofrontend. These files are the ones in the go subdirectory of that project.