public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Trying to find where golang runtime.inc.raw is generated
@ 2021-08-20 19:56 Lance Fredrickson
  2021-08-20 20:39 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Lance Fredrickson @ 2021-08-20 19:56 UTC (permalink / raw)
  To: gcc-help

I'm trying to troubleshoot this issue I have.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101246

runtime.inc used for golang is missing a couple struct definitions. I 
want to see how runtime.inc.raw is generated, because runtime.inc is 
derived from it. I think this could be an easy fix, but it's tricky 
navigating gcc code for the first time.

thanks,
Lance Fredrickson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Trying to find where golang runtime.inc.raw is generated
  2021-08-20 19:56 Trying to find where golang runtime.inc.raw is generated Lance Fredrickson
@ 2021-08-20 20:39 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2021-08-20 20:39 UTC (permalink / raw)
  To: Lance Fredrickson; +Cc: gcc-help

On Fri, Aug 20, 2021 at 12:56 PM Lance Fredrickson
<lance@bonnevillemachine.com> wrote:
>
> I'm trying to troubleshoot this issue I have.
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101246
>
> runtime.inc used for golang is missing a couple struct definitions. I
> want to see how runtime.inc.raw is generated, because runtime.inc is
> derived from it. I think this could be an easy fix, but it's tricky
> navigating gcc code for the first time.

runtime.inc.raw is generated when the runtime package is compiled.
When compiling the runtime package to produce runtime.lo, the option
-fgo-c-header=runtime.inc.raw is passed to the compiler.  The
implementation of that option is mainly the function
Gogo::write_c_header in gcc/go/gogo.cc.

That said the right place to fix this problem is most likely the shell
script libgo/mkruntimeinc.sh, 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.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-20 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20 19:56 Trying to find where golang runtime.inc.raw is generated Lance Fredrickson
2021-08-20 20:39 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).