This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: golang compiler (6g) testsuite board file [Re: [RFC] Initial pass at supporting the Go language]
- From: Doug Evans <dje at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org, iant at google dot com
- Date: Wed, 21 Jan 2015 09:59:46 -0800
- Subject: Re: golang compiler (6g) testsuite board file [Re: [RFC] Initial pass at supporting the Go language]
- Authentication-results: sourceware.org; auth=none
- References: <20111228210206 dot B6B762461C9 at ruffy dot mtv dot corp dot google dot com> <20150120173412 dot GA19765 at host2 dot jankratochvil dot net>
Jan Kratochvil writes:
> Hi Doug,
>
> On Wed, 28 Dec 2011 22:02:06 +0100, Doug Evans wrote:
> > I also have a board file for running the testsuite with the 6g compiler.
> > I'll submit that separately.
>
> I haven't found that file submitted, do you still have it?
Hi.
Here's what I have.
I haven't used it in awhile, and have spent no time cleaning it up,
so "heads up".
---
# Board description file for running the testsuite with the 6g compiler.
# The user is currently required to set GO_FOR_TARGET to the path of 6g.
# IWBN if all we had to do was set the path to the compiler.
# 6g doesn't treat -g like gcc does.
set_board_info debug_flags ""
#set GO_TOP "/g3/go/6g/go"
set GO_TOP "/g5/go/6g/go"
set_board_info gocompiler "$GO_TOP/pkg/tool/linux_amd64/6g"
# 6g uses a separate linker.
set_board_info golinker "$GO_TOP/pkg/tool/linux_amd64/6l"
# 6g doesn't have a -lm.
# FIXME: This affects all languages.
set_board_info mathlib ""
# 6l requires "-o foo.o foo" instead of "foo.o -o foo".
set_board_info golinker_opts_order "flags-then-sources"