Commit Graph

1259 Commits

Author SHA1 Message Date
Ian Lance Taylor 505b439a06 re PR other/46840 (libgo should link against libm)
PR other/46840
Link libgo against -lm.

From-SVN: r167582
2010-12-08 02:08:59 +00:00
Ian Lance Taylor 73d520afa5 Fix test by copying from master.
From-SVN: r167575
2010-12-08 00:14:10 +00:00
Ian Lance Taylor ac819ba59a re PR other/46789 (go configuration with --prefix=/usr pollutes the /usr/lib namespace)
PR other/46789
	PR bootstrap/46812
	* go-lang.c (go_char_p): Define type and vectors.
	(go_search_dirs): New static variable.
	(go_langhook_handle_option): Use version and version/machine
	directories for -L.
	(go_langhook_post_options): Add non-specific -L paths.
	* Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
	DEFAULT_TARGET_MACHINE when compiling.
	* gccgo.texi (Invoking gccgo): Only document -L for linking.
	(Import and Export): Don't mention -L for finding import files.

libgo: Install .gox files in version and target specific directory.

From-SVN: r167537
2010-12-07 14:18:35 +00:00
Ian Lance Taylor bc24461fb6 LICENSE: separate, change PATENTS text.
Split patent grant clause out of LICENSE file
and update text to be more like that used by WebM.
These changes should make Go more acceptable
to the Fedora project and they are acceptable to the FSF.

From-SVN: r167520
2010-12-06 22:27:47 +00:00
Ian Lance Taylor 6c94a9fa16 Check for -pthread and -lpthread at configure time.
From-SVN: r167445
2010-12-03 21:27:06 +00:00
Ian Lance Taylor 3f8ea4759e It's a contributor license agreement, not a copyright LA.
From-SVN: r167443
2010-12-03 20:41:15 +00:00
Ian Lance Taylor b02785a8d0 Typo.
From-SVN: r167440
2010-12-03 19:08:11 +00:00
Ian Lance Taylor 29fecdee3e Clarify copyright license agreement.
From-SVN: r167439
2010-12-03 19:03:38 +00:00
Ian Lance Taylor 7a9389330e Add Go frontend, libgo library, and Go testsuite.
gcc/:
	* gcc.c (default_compilers): Add entry for ".go".
	* common.opt: Add -static-libgo as a driver option.
	* doc/install.texi (Configuration): Mention libgo as an option for
	--enable-shared.  Mention go as an option for --enable-languages.
	* doc/invoke.texi (Overall Options): Mention .go as a file name
	suffix.  Mention go as a -x option.
	* doc/frontends.texi (G++ and GCC): Mention Go as a supported
	language.
	* doc/sourcebuild.texi (Top Level): Mention libgo.
	* doc/standards.texi (Standards): Add section on Go language.
	Move references for other languages into their own section.
	* doc/contrib.texi (Contributors): Mention that I contributed the
	Go frontend.
gcc/testsuite/:
	* lib/go.exp: New file.
	* lib/go-dg.exp: New file.
	* lib/go-torture.exp: New file.
	* lib/target-supports.exp (check_compile): Match // Go.

From-SVN: r167407
2010-12-03 04:34:57 +00:00