This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: golang compiler (6g) testsuite board file [Re: [RFC] Initial pass at supporting the Go language]


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]