gccgo: compilation fails in some scenarios #39613
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputFor gccgo, I did the following experiment.
GOPATH/src/study/main_test.go
go test -v study === RUN TestHello TestHello --- PASS: TestHello (0.00s) PASS ok study 0.006s
success
go test -v -compiler=gccgo -gccgoflags=-static-libgo study === RUN TestHello TestHello --- PASS: TestHello (0.00s) PASS ok study 0.045s
success
go test -v runtime === RUN TestCallers TestCallers: callers_test.go:47: functions seen: testing.tRunner runtime.goexit runtime.Callers runtime_test.f3 runtime_test.f2 runtime_test.f1 runtime_test.TestCallers --- PASS: TestCallers (0.00s) === RUN TestCallersPanic TestCallersPanic: callers_test.go:47: functions seen: runtime.gopanic runtime_test.f3 runtime_test.f2 runtime_test.f1 testing.tRunner runtime.goexit runtime.Callers runtime_test.TestCallersPanic.func1 runtime_test.TestCallersPanic --- PASS: TestCallersPanic (0.00s) === RUN TestCallersDoublePanic --- PASS: TestCallersDoublePanic (0.00s) ……
success
failed
Modify the file, add linkname, and add empty.s
success
failed
In fact, I want to test the performance comparison of go1.14.2 gccgo and gc (runtime and application).
After compiling gccgo to prepare for testing, I found the problem described above (abstract code for the actual problem).
Am I using it incorrectly or is there a bug?
The text was updated successfully, but these errors were encountered: