From 83da0fd989d7e5c981bde26a8a9cc0d0f88fe9ed Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 16 Sep 2013 13:03:00 +1000 Subject: [PATCH] doc/go1.2.html: compiler changes Document the semantic changes within the gc toolchain. Also delete the mention of unbalanced right delims in template That change was rolled back. Absent typos, things we've forgotten, and new things that happen, the release notes are ready. R=golang-dev, adg, dominik.honnef CC=golang-dev https://golang.org/cl/13368052 --- doc/go1.2.html | 59 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 23 deletions(-) diff --git a/doc/go1.2.html b/doc/go1.2.html index e8a2b86a97..ce54850c19 100644 --- a/doc/go1.2.html +++ b/doc/go1.2.html @@ -180,28 +180,50 @@ support for Go 1.2. In the current (4.8.2) release of GCC, gccgo implements Go 1.1.2.

-

TODO

+

Changes to the gc compiler and linker

-TODO: write prose +Go 1.2 has several semantic changes to the workings of the gc compiler suite. +Most users will be unaffected by them.

- +

+Also on the ARM, the 5l linker (sic) now defines the +MOVBS and MOVHS instructions +as synonyms of MOVB and MOVH, +to make clearer the separation between signed and unsigned +sub-word moves; the unsigned versions already existed with a +U suffix. +

Test coverage

@@ -500,21 +522,12 @@ one can fold the second "if" into the "else" and have only one "end", like this: The two forms are identical in effect; the difference is just in the syntax.

-

-Finally, the package -now correctly diagnoses unmatched right delimiters. -They were accepted without complaint before, and templates that had them -will now fail to parse. -

-

Updating: Neither the "else if" change nor the comparison functions affect existing programs. Those that already define functions called eq and so on through a function map are unaffected because the associated function map will override the new default function definitions. -Templates with unmatched right delimiters will now fail to parse and will need -to be fixed by hand.

Minor changes to the library

-- 2.50.0