Skip to content

Commit

Permalink
[dev.garbage] all: merge dev.cc (81884b89bd88) into dev.garbage
Browse files Browse the repository at this point in the history
TBR=rlh
CC=golang-codereviews
https://golang.org/cl/181100044
  • Loading branch information
rsc committed Dec 5, 2014
2 parents b8540fc + 829b286 commit 4448390
Show file tree
Hide file tree
Showing 30 changed files with 1,450 additions and 153 deletions.
1 change: 1 addition & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,4 @@ f44017549ff9c3cc5eef74ebe7276cd0dfc066b6 go1.3.3
f44017549ff9c3cc5eef74ebe7276cd0dfc066b6 release
1fdfd7dfaedb1b7702141617e621ab7328a236a1 go1.4beta1
bffdd0cae380ce1ccf3e98ed6b6cd53fece7ba72 go1.4rc1
6c4e66ae713704840fcea78c8055b44ba86ae5ea go1.4rc2
21 changes: 8 additions & 13 deletions doc/contrib.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,16 @@ <h3 id="announce"><a href="//groups.google.com/group/golang-announce">Announceme
<h2 id="go1">Version history</h2>

<h3 id="release"><a href="/doc/devel/release.html">Release History</a></h3>
<p>A summary of the changes between Go releases.</p>

<h4 id="go1notes"><a href="/doc/go1">Go 1 Release Notes</a></h4>
<p>
A guide for updating your code to work with Go 1.
</p>
<p>A <a href="/doc/devel/release.html">summary</a> of the changes between Go releases. Notes for the major releases:</p>

<h4 id="release notes"><a href="/doc/go1.1">Go 1.1 Release Notes</a></h4>
<p>
A list of significant changes in Go 1.1, with instructions for updating
your code where necessary.
Each point release includes a similar document appropriate for that
release: <a href="/doc/go1.2">Go 1.2</a>, <a href="/doc/go1.3">Go 1.3</a>,
and so on.
</p>
<ul>
<li><a href="/doc/go1.4">Go 1.4</a> <small>(December 2014)</small></li>
<li><a href="/doc/go1.3">Go 1.3</a> <small>(June 2014)</small></li>
<li><a href="/doc/go1.2">Go 1.2</a> <small>(December 2013)</small></li>
<li><a href="/doc/go1.1">Go 1.1</a> <small>(May 2013)</small></li>
<li><a href="/doc/go1">Go 1</a> <small>(March 2012)</small></li>
</ul>

<h3 id="go1compat"><a href="/doc/go1compat">Go 1 and the Future of Go Programs</a></h3>
<p>
Expand Down
2 changes: 1 addition & 1 deletion doc/go_spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -5579,7 +5579,7 @@ <h3 id="Appending_and_copying_slices">Appending to and copying slices</h3>
s4 := append(s3[3:6], s3[2:]...) // append overlapping slice s4 == []int{3, 5, 7, 2, 3, 5, 7, 0, 0}

var t []interface{}
t = append(t, 42, 3.1415, "foo") t == []interface{}{42, 3.1415, "foo"}
t = append(t, 42, 3.1415, "foo") // t == []interface{}{42, 3.1415, "foo"}

var b []byte
b = append(b, "bar"...) // append string contents b == []byte{'b', 'a', 'r' }
Expand Down
4 changes: 2 additions & 2 deletions lib/time/update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# downloaded from the ICANN/IANA distribution.

# Versions to use.
CODE=2014d
DATA=2014d
CODE=2014j
DATA=2014j

set -e
rm -rf work
Expand Down
Binary file modified lib/time/zoneinfo.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/cmd/5g/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ regopt(Prog *firstp)
print("\nregisterizing\n");
for(i=0; i<nregion; i++) {
if(debug['R'] && debug['v'])
print("region %d: cost %d varno %d enter %d\n", i, rgp->cost, rgp->varno, rgp->enter->f.prog->pc);
print("region %d: cost %d varno %d enter %lld\n", i, rgp->cost, rgp->varno, rgp->enter->f.prog->pc);
bit = blsh(rgp->varno);
vreg = paint2(rgp->enter, rgp->varno, 0);
vreg = allreg(vreg, rgp);
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/6g/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ regopt(Prog *firstp)
print("\nregisterizing\n");
for(i=0; i<nregion; i++) {
if(debug['R'] && debug['v'])
print("region %d: cost %d varno %d enter %d\n", i, rgp->cost, rgp->varno, rgp->enter->f.prog->pc);
print("region %d: cost %d varno %d enter %lld\n", i, rgp->cost, rgp->varno, rgp->enter->f.prog->pc);
bit = blsh(rgp->varno);
vreg = paint2(rgp->enter, rgp->varno, 0);
vreg = allreg(vreg, rgp);
Expand Down
10 changes: 10 additions & 0 deletions src/cmd/9g/opt.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,16 @@ enum

void proginfo(ProgInfo*, Prog*);

// Many Power ISA arithmetic and logical instructions come in four
// standard variants. These bits let us map between variants.
enum {
V_CC = 1<<0, // xCC (affect CR field 0 flags)
V_V = 1<<1, // xV (affect SO and OV flags)
};

int as2variant(int);
int variant2as(int, int);

// To allow use of AJMP, ACALL, ARET in ../gc/popt.c.
enum
{
Expand Down
Loading

0 comments on commit 4448390

Please sign in to comment.