From 095c0e5c000a18f63c47009fd0684669cc602584 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 11 Feb 2016 13:33:33 -0500 Subject: [PATCH] doc: fix remaining TODOs in Go 1.6 release notes Fixes #14300. Change-Id: Idb6a300fe0e06fb8966cf06b55f9b252752a69a6 Reviewed-on: https://go-review.googlesource.com/19459 Reviewed-by: Brad Fitzpatrick Reviewed-by: Michael Hudson-Doyle Run-TryBot: Russ Cox TryBot-Result: Gobot Gobot --- doc/asm.html | 9 +++++++++ doc/go1.6.html | 14 +++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/doc/asm.html b/doc/asm.html index cce2fe2b8df..392af174c27 100644 --- a/doc/asm.html +++ b/doc/asm.html @@ -621,6 +621,15 @@ These modes accept only 1, 2, 4, and 8 as scale factors. +

+When using the compiler and assembler's +-dynlink or -shared modes, +any load or store of a fixed memory location such as a global variable +must be assumed to overwrite CX. +Therefore, to be safe for use with these modes, +assembly sources should typically avoid CX except between memory references. +

+

64-bit Intel 386 (a.k.a. amd64)

diff --git a/doc/go1.6.html b/doc/go1.6.html index 0b9dc8a9f3c..4937fc9a592 100644 --- a/doc/go1.6.html +++ b/doc/go1.6.html @@ -17,6 +17,7 @@ ul li { margin: 0.5em 0; } NOTE: This is a DRAFT of the Go 1.6 release notes, prepared for the Go 1.6 beta. Go 1.6 has NOT yet been released. By our regular schedule, it is expected some time in February 2016. +

@@ -70,9 +71,12 @@ On NaCl, Go 1.5 required SDK version pepper-41. Go 1.6 adds support for later SDK versions.

-
-TODO: CX no longer available on 386 assembly? (https://golang.org/cl/16386)
-
+

+On 32-bit x86 systems using the -dynlink or -shared compilation modes, +the register CX is now overwritten by certain memory references and should +be avoided in hand-written assembly. +See the assembly documentation for details. +

Tools

@@ -632,7 +636,6 @@ In previous releases, the argument to * was required to have type < Also in the fmt package, Scanf can now scan hexadecimal strings using %X, as an alias for %x. Both formats accept any mix of upper- and lower-case hexadecimal. -TODO: Keep?
  • @@ -717,9 +720,6 @@ Second, DNS lookup functions such as LookupAddr now return rooted domain names (with a trailing dot) on Plan 9 and Windows, to match the behavior of Go on Unix systems. -TODO: Third, lookups satisfied from /etc/hosts now add a trailing dot as well, -so that looking up 127.0.0.1 typically now returns “localhost.” not “localhost”. -This is arguably a mistake but is not yet fixed. See https://golang.org/issue/13564.