This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Can't build Go support in gcc-4.8.1 on OpenBSD
- From: Ian Lance Taylor <iant at google dot com>
- To: niXman <i dot nixman at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Sat, 28 Sep 2013 15:18:44 -0700
- Subject: Re: Can't build Go support in gcc-4.8.1 on OpenBSD
- Authentication-results: sourceware.org; auth=none
- References: <CAMPTgK3hLhc3F_oyPjhGQAwAvb6mv9EVbzkP-vdVs2qwoSpjkw at mail dot gmail dot com> <CAKOQZ8xh-zPcfDAKPHstW6m4qAHDj2OyJ=jAnQ0QQGOZsEP-2w at mail dot gmail dot com> <CAMPTgK0dc-FnMZh7KUAFLGx6PC=7y2YW81x6Ck_io6=dV8g_3A at mail dot gmail dot com>
On Sat, Sep 28, 2013 at 1:32 PM, niXman <i.nixman@gmail.com> wrote:
> 2013/9/28 Ian Lance Taylor:
>
>> The current implementation of goroutines in gccgo requires the
>> makecontext, getcontext, and setcontext functions.
> What do goroutines use in gcc-4.6.x instead of theese functions?
In GCC 4.6 libgo each goroutine is run in a separate thread, rather
than using the more efficient context switching functions.
>> ... But I have not actually done this.
> Is libgo writen by you?
The vast majority of libgo is simply the same standard library that is
used by the gc compiler. I wrote the parts of it that are specific to
gccgo.
Ian