Skip to content

cmd/internal/obj/x86, cmd/compile/internal/ssa: Possible lack of handling for panicIndex #31219

@nsajko

Description

@nsajko

What version of Go are you using (go version)?

$ go version
go version devel +56517216c0 Tue Apr 2 05:45:33 2019 +0000 linux/amd64

Does this issue reproduce with the latest release?

Not applicable, I think.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/tmp/freedesktopCache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/nsajko"
GOPROXY=""
GORACE=""
GOROOT="/home/nsajko/goNew"
GOTMPDIR=""
GOTOOLDIR="/home/nsajko/goNew/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/nsajko/goNew/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build609693791=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Notice that panicindex was renamed to panicIndex since the release. Then I found that references to the old panicindex still exist in the tip.

What did you expect to see?

I am guessing either panicIndex should be handled together with panicindex in the below files, or instead of panicindex. Sorry if this is not a bug, I am just guessing.

What did you see instead?

src/cmd/internal/obj/x86/obj6.go: case "runtime.panicindex", "runtime.panicslice", "runtime.panicdivide", "runtime.panicwrap", "runtime.panicshift":
src/cmd/compile/internal/ssa/rewrite.go: case "runtime.racefuncenter", "runtime.racefuncexit", "runtime.panicindex",
src/cmd/compile/internal/ssa/rewrite.go: "runtime.panicslice", "runtime.panicdivide", "runtime.panicwrap",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions