diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-27 16:57:33 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-27 16:57:33 +0000 |
commit | 50a504654d2c54b270615541ab66af7c4f3d664f (patch) | |
tree | cffb8bafa3b597c0dcc89a2c0d23dd3e16e6db3b /libgo/runtime | |
parent | fc72cba7ce5bbd350249dd5de10bc9eaa1633a8e (diff) | |
download | gcc-50a504654d2c54b270615541ab66af7c4f3d664f.zip gcc-50a504654d2c54b270615541ab66af7c4f3d664f.tar.gz gcc-50a504654d2c54b270615541ab66af7c4f3d664f.tar.bz2 |
libgo: Update to Go 1.3.3 release.
From-SVN: r216746
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/runtime.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c index 33fe1e7..bae4621 100644 --- a/libgo/runtime/runtime.c +++ b/libgo/runtime/runtime.c @@ -112,8 +112,6 @@ runtime_goenvs_unix(void) syscall_Envs.__values = (void*)s; syscall_Envs.__count = n; syscall_Envs.__capacity = n; - - traceback_cache = ~(uint32)0; } int32 @@ -309,6 +307,16 @@ runtime_parsedebugvars(void) { const byte *p; intgo i, n; + bool tmp; + + // gotraceback caches the GOTRACEBACK setting in traceback_cache. + // gotraceback can be called before the environment is available. + // traceback_cache must be reset after the environment is made + // available, in order for the environment variable to take effect. + // The code is fixed differently in Go 1.4. + // This is a limited fix for Go 1.3.3. + traceback_cache = ~(uint32)0; + runtime_gotraceback(&tmp); p = runtime_getenv("GODEBUG"); if(p == nil) |