public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* GO tools for gccgo cross
@ 2015-02-03 19:53 Lynn A. Boger
  2015-02-03 20:18 ` [gofrontend-dev] " Ian Lance Taylor
       [not found] ` <21b22da3-4871-4469-83ce-3a2590a3d00a@googlegroups.com>
  0 siblings, 2 replies; 9+ messages in thread
From: Lynn A. Boger @ 2015-02-03 19:53 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

Hi,

I've been experimenting with the go tools and how to make them work for 
cross gccgo builds.

In golang I think there is just one 'go' tool and the cross build 
targets are specified by the setting of GOARCH and GOOS.  So why 
couldn't the same be done with gccgo?

That means, on any given system, I think we just need to build the 
native gccgo and the go tools that are built with it.  No need to build 
different go tools for each cross target.  If a cross build is needed, 
then set the GOARCH and GOOS values appropriately and invoke the native 
go (for gccgo) tool.  Source changes are needed for the go tool source 
to determine the correct cross compiler name based on the GOARCH and 
GOOS settings, and then use that cross compiler where needed for 
building or linking instead of always using "gccgo".  I was able to make 
these changes and get this to work -- I built gccgo programs targeted 
for ppc64le on an x86_64.


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

end of thread, other threads:[~2015-05-26 16:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-03 19:53 GO tools for gccgo cross Lynn A. Boger
2015-02-03 20:18 ` [gofrontend-dev] " Ian Lance Taylor
     [not found]   ` <ec194a29-a888-44df-b466-46c7ea06c7f2@googlegroups.com>
2015-03-17 18:27     ` Ian Lance Taylor
2015-04-14 13:14       ` Lynn A. Boger
2015-04-14 14:04         ` Ian Lance Taylor
     [not found] ` <21b22da3-4871-4469-83ce-3a2590a3d00a@googlegroups.com>
     [not found]   ` <555F358B.2060009@linux.vnet.ibm.com>
     [not found]     ` <CACDP-teX9pCB2zxBp_1f+UQCtyDTVJDAsZacRg50AFd7s0zqWA@mail.gmail.com>
2015-05-22 21:39       ` [gofrontend-dev] " Ian Lance Taylor
     [not found]         ` <9c1f4c29-76b4-4271-9edd-842706e84ef7@googlegroups.com>
2015-05-22 23:24           ` Ian Lance Taylor
2015-05-26 16:48             ` Lynn A. Boger
2015-05-26 17:30               ` 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).