[Bug go/91172] go1: error: control reaches end of non-void function in libgo/go/cmd/cgo/gcc.go

2019-07-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91172 --- Comment #1 from Richard Biener --- Sounds like global initializers to me. Btw, -Wreturn-type isn't a Go FE warning, and it's initialized to -1, so I wonder why go1 accepts it or has it > 0 (the warning is emitted from pass_warn_function_retu

[Bug go/91172] go1: error: control reaches end of non-void function in libgo/go/cmd/cgo/gcc.go

2019-07-15 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91172 --- Comment #2 from Ian Lance Taylor --- That is the function (*Package).gccDebug, which on GCC 7 branch starts on line 1262 of libgo/go/cmd/cgo/gcc.go. Like Richard I don't understand how you could get that warning. -Wreturn-type is a C fronte