-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
Go version
go1.24.2
Output of go env in your module/workspace:
GOVERSION='go1.24.2'What did you do?
Consider the following:
package main
import (
"fmt"
)
func main() {
fmt.Println("Hi!")
}built with go build -gcflags="all=-N -l" -ldflags=-dumpdep .
What did you see happen?
Most of the output is of the form from -> to:
e.g.
main.main -> fmt.Println
fmt.Println -> os.Stdout
fmt.Println -> go:itab.*os.File,io.Writer
fmt.Println -> fmt.Fprintln
fmt.Fprintln -> fmt.newPrinter
fmt.Fprintln -> fmt.(*pp).doPrintln
fmt.Fprintln -> fmt.(*pp).free
However some of the lines seem to be missing a from value.
-> go:info.*fmt.fmt
-> go:info.*fmt.buffer
-> go:info.fmt.buffer
-> go:info.[6]uint8
-> go:info.*fmt.pp
-> go:info.io.Writer
-> go:info.[]interface {}
-> go:info.reflect.Value
-> go:info.fmt.fmtFlags
-> go:info.fmt.Formatter
-> go:info.fmt.GoStringer
-> go:info.fmt.Stringer
-> go:info.int16
-> go:info.internal/fmtsort.SortedMap
-> go:info.internal/fmtsort.KeyValue
-> go:info.reflect.Type
What did you expect to see?
Unless I'm missing something If the parent is missing I'd expect at least a _ (
go/src/cmd/link/internal/ld/deadcode.go
Line 370 in dad4f39
| from := "_" |
simitt
Metadata
Metadata
Assignees
Labels
NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Type
Projects
Status
Todo