1
0
mirror of https://github.com/golang/go synced 2024-11-23 09:50:03 -07:00
go/src
Robert Griesemer 99475dfb59 cmd/internal/gc: avoid spurious div-zero errors
Set overflowing integer constants to 1 rather than 0 to avoid
spurious div-zero errors in subsequent constant expressions.

Also: Exclude new test case from go/types test since it's
running too long (go/types doesn't have an upper constant
size limit at the moment).

Fixes #7746.

Change-Id: I3768488ad9909a3cf995247b81ee78a8eb5a1e41
Reviewed-on: https://go-review.googlesource.com/9165
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2015-05-13 17:38:13 +00:00
..
archive archive/tar: fix error message 2015-05-04 21:27:45 +00:00
bufio
builtin
bytes bytes, strings: add LastIndexByte 2015-04-30 07:13:18 +00:00
cmd cmd/internal/gc: avoid spurious div-zero errors 2015-05-13 17:38:13 +00:00
compress compress/flate: simplify the TestDegenerateHuffmanCoding data. 2015-04-17 04:31:48 +00:00
container
crypto crypto/x509: be strict about trailing data. 2015-04-30 03:49:36 +00:00
database/sql database/sql: Retry with a fresh connection after maxBadConnRetries 2015-04-08 16:18:36 +00:00
debug debug/dwarf: compute ByteSize for more DWARF types 2015-05-07 07:28:39 +00:00
encoding encoding/gob: add "too big" check when writing a message 2015-05-12 17:52:39 +00:00
errors
expvar expvar: swap Float sync. from mutex to atomic. 2015-04-12 23:07:50 +00:00
flag
fmt fmt: allow for space and plus flags when computing widths 2015-05-11 18:34:19 +00:00
go cmd/internal/gc: avoid spurious div-zero errors 2015-05-13 17:38:13 +00:00
hash hash/crc32: move reverse representation docs to an example 2015-05-04 00:19:22 +00:00
html html: simplify and optimize escape/unescape 2015-05-08 19:10:10 +00:00
image image/gif: allow encoding a single-frame image whose top-left corner 2015-05-06 01:00:58 +00:00
index/suffixarray
internal net, internal/syscall/unix: add SocketConn, SocketPacketConn 2015-05-13 01:04:23 +00:00
io io: add CopyBuffer, a version of Copy in which the user provides a buffer 2015-04-15 15:59:16 +00:00
log log/syslog: make the BUG notes visible on golang.org 2015-04-22 21:09:53 +00:00
math math/big: add modular square-root and Jacobi functions 2015-04-30 04:02:58 +00:00
mime mime: Export RFC 2047 code 2015-05-11 18:50:32 +00:00
net net: don't run IP stack required tests on IP stack unimplemented kernels 2015-05-13 05:16:19 +00:00
os os: eradicate smallpox after test 2015-05-06 17:38:57 +00:00
path path/filepath: skip test on darwin/arm64 2015-04-13 11:52:46 +00:00
reflect runtime: use 1-bit pointer bitmaps in type representation 2015-05-11 14:43:33 +00:00
regexp regexp: trivial change in comments to update code.google.com link 2015-04-27 20:18:25 +00:00
runtime runtime: reduce thrashing of gs between ps 2015-05-13 12:55:24 +00:00
sort
strconv strconv: use 64bit uint for decimal conversion if available 2015-04-10 17:42:20 +00:00
strings strings: use LastIndexByte in LastIndex 2015-04-30 08:33:29 +00:00
sync sync/atomic: skip issue 7338 test on darwin/arm64 2015-04-12 02:47:43 +00:00
syscall syscall: mkerrors.sh: don't define _FILE_OFFSET_BITS if __LP64__ 2015-05-13 00:40:49 +00:00
testing testing: fix typo 2015-05-12 23:39:00 +00:00
text text/template: delete obsolete nil check 2015-05-07 20:13:14 +00:00
time time: fix registry zone info lookup on Windows 2015-05-12 14:28:40 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: copy pkg for gcimporter tests 2015-04-08 14:39:07 +00:00
bootstrap.bash
buildall.bash buildall.bash: also build for linux/arm with GOARM=5 2015-05-07 02:56:23 +00:00
clean.bash
clean.bat
clean.rc
iostest.bash iostest.bash: run detect.go as part of iostest 2015-04-16 12:59:54 +00:00
make.bash
make.bat
Make.dist
make.rc
nacltest.bash nacltest.bash: remove syscall/fstest_nacl.go after test 2015-05-02 02:48:32 +00:00
race.bash
race.bat
run.bash build: correct quoting of args in run.bash 2015-05-09 04:23:47 +00:00
run.bat
run.rc