https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91172

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> ---
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 frontend warning, and it shouldn't be enabled when using the Go
frontend.

However, the warning is enabled, it appears that it is being triggered because
the analysis doesn't understand that the panic function does not return.  In
the middle-end the Go panic function will appear as the function
"runtime.gopanic".  On trunk the Go frontend will tell the middle-end that that
function does not return.  It looks like that is true as of GCC 8 branch, but
is not true on GCC 7 branch.  But since the warning shouldn't be enabled when
using the Go frontend, it shouldn't matter.

So I don't understand what is going on.

Reply via email to