Trying to find where golang is generated

Ian Lance Taylor
Fri Aug 20 20:39:57 GMT 2021

On Fri, Aug 20, 2021 at 12:56 PM Lance Fredrickson
<> wrote:
> I'm trying to troubleshoot this issue I have.
> used for golang is missing a couple struct definitions. I
> want to see how is generated, because is
> derived from it. I think this could be an easy fix, but it's tricky
> navigating gcc code for the first time. is generated when the runtime package is compiled.
When compiling the runtime package to produce runtime.lo, the option is passed to the compiler.  The
implementation of that option is mainly the function
Gogo::write_c_header in gcc/go/

That said the right place to fix this problem is most likely the shell
script libgo/, which already strips out various types
that don't work for one reason or another.  See the shell variable
TYPES.  Rather than trying to define the missing types, just remove
the types that refer to them.


More information about the Gcc-help mailing list