1
0
mirror of https://github.com/golang/go synced 2024-11-24 18:50:05 -07:00
go/src
Keith Randall e360f7c4db cmd/compile: keep JMPs around with -N
When -N, make sure we don't drop every instruction from
a block, even ones which would otherwise be empty.
Helps keep line numbers around for debugging, particularly
for break and continue statements (which often compile
down to nothing).

Fixes #14379

Change-Id: I33722c4f0dcd502f146fa48af262ba3a477c959a
Reviewed-on: https://go-review.googlesource.com/19854
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
2016-02-24 00:16:23 +00:00
..
archive all: use cannot instead of can not 2016-02-21 15:35:50 +00:00
bufio
builtin
bytes bytes: make Buffer comment more accurate 2016-02-21 03:57:24 +00:00
cmd cmd/compile: keep JMPs around with -N 2016-02-24 00:16:23 +00:00
compress
container
crypto all: fix typos 2016-02-23 13:58:47 +00:00
database/sql all: use cannot instead of can not 2016-02-21 15:35:50 +00:00
debug debug/dwarf: fix nil pointer dereference in cyclic type structures 2016-01-14 02:05:31 +00:00
encoding encoding/hex: minor cleanup 2016-02-21 03:59:22 +00:00
errors
expvar
flag
fmt fmt: fix zero padding for NaN 2016-02-21 12:04:21 +00:00
go all: fix typos 2016-02-23 13:58:47 +00:00
hash
html
image
index/suffixarray
internal net/http: update http2 to check header values, move from vendor to internal 2016-01-21 00:19:02 +00:00
io
log all: use cannot instead of can not 2016-02-21 15:35:50 +00:00
math all: replace strings.Index with strings.Contains where possible 2016-02-19 01:06:05 +00:00
mime all: fix typos 2016-02-23 13:58:47 +00:00
net net: fix for DialTimeout errors with large timeout 2016-02-23 22:48:04 +00:00
os all: fix typos 2016-02-23 13:58:47 +00:00
path all: fix typos 2016-02-23 13:58:47 +00:00
reflect Revert "cmd/compile: move hiter, hmap, and scase definitions into builtin.go" 2016-02-23 19:42:52 +00:00
regexp regexp: remove unreachable code 2016-02-23 15:16:50 +00:00
runtime Revert "cmd/compile: move hiter, hmap, and scase definitions into builtin.go" 2016-02-23 19:42:52 +00:00
sort sort: Fix typo in stable sort comment 2016-02-18 19:20:41 +00:00
strconv
strings
sync all: use cannot instead of can not 2016-02-21 15:35:50 +00:00
syscall cmd/compile: recognize Syscall-like functions for liveness analysis 2016-01-14 01:16:45 +00:00
testing
text text/tabwriter: clarify documentation 2016-02-23 22:09:32 +00:00
time all: replace strings.Index with strings.Contains where possible 2016-02-19 01:06:05 +00:00
unicode unicode/utf16: speed up and clean up Decode 2016-02-23 21:09:07 +00:00
unsafe unsafe: fix typo in documentation of valid Pointer->uintptr->Pointer conversions 2016-01-29 00:41:27 +00:00
vendor net/http: update http2 to check header values, move from vendor to internal 2016-01-21 00:19:02 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash build: use consistent shebang line 2016-01-14 03:16:20 +00:00
buildall.bash build: test linux/mips64 and linux/mips64le with buildall.bash 2016-01-19 04:43:44 +00:00
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc