| commit | 18559e2da7a2698ad9e35072cbcba1a05ed73836 | [log] [tgz] | 
|---|---|---|
| author | David Chase <drchase@google.com> | Wed Oct 28 13:55:46 2015 -0400 | 
| committer | David Chase <drchase@google.com> | Wed Oct 28 19:31:11 2015 +0000 | 
| tree | 33c706574de253061cd40c2b0d3b91ebd9e89d5d | |
| parent | c24681ae2e1c96bd67c149cffa8f5ed394e68453 [diff] | 
[dev.ssa] cmd/compile: make zero-divide panic from div/mod explicit Added an explicit compare-zero and branch-to-panic for integer division and mod so that other optimizations will not be fooled by their implicit panics. Change-Id: Ibf96f636b541c0088861907c537a6beb4b99fa4c Reviewed-on: https://go-review.googlesource.com/16450 Reviewed-by: Keith Randall <khr@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
For documentation about how to install and use Go, visit https://golang.org/ or load doc/install-source.html in your web browser.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
If you have just untarred a binary Go distribution, you need to set the environment variable $GOROOT to the full path of the go directory (the one containing this file). You can omit the variable if you unpack it into /usr/local/go, or if you rebuild from sources by running all.bash (see doc/install-source.html). You should also add the Go binary directory $GOROOT/bin to your shell's path.
For example, if you extracted the tar file into $HOME/go, you might put the following in your .profile:
export GOROOT=$HOME/go export PATH=$PATH:$GOROOT/bin
See https://golang.org/doc/install or doc/install.html for more details.