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

--- Comment #3 from boger at gcc dot gnu.org ---
(In reply to Ian Lance Taylor from comment #1)
> Same as https://golang.org/issue/29046?

Yes same as the issue. Since we weren't sure if this was a FE or BE bug I
decided to open a bugzilla.

> 
> I would bet that this has something to do with the fact that testenv.HasLink
> is inlinable.  Something is wrong with the way that the frontend is passing
> the inlinable function to the backend.  The specific code in
> gcc/go/go-gcc.cc is in Gcc_backend::function:
> 
>   if ((flags & function_only_inline) != 0)
>     {
>       DECL_EXTERNAL(decl) = 1;
>       DECL_DECLARED_INLINE_P(decl) = 1;
>     }
> 
> This is intended to tell the backend to treat the function the way it treats
> a C gnu89 extern inline function.  This seems to work fine on x86 but
> perhaps I am missing something on ppc64le.

Reply via email to