Commit Graph

50 Commits

Author SHA1 Message Date
Ian Lance Taylor f8d9fa9e80 libgo, compiler: Upgrade libgo to Go 1.4, except for runtime.
This upgrades all of libgo other than the runtime package to
the Go 1.4 release.  In Go 1.4 much of the runtime was
rewritten into Go.  Merging that code will take more time and
will not change the API, so I'm putting it off for now.

There are a few runtime changes anyhow, to accomodate other
packages that rely on minor modifications to the runtime
support.

The compiler changes slightly to add a one-bit flag to each
type descriptor kind that is stored directly in an interface,
which for gccgo is currently only pointer types.  Another
one-bit flag (gcprog) is reserved because it is used by the gc
compiler, but gccgo does not currently use it.

There is another error check in the compiler since I ran
across it during testing.

gotools/:
	* Makefile.am (go_cmd_go_files): Sort entries.  Add generate.go.
	* Makefile.in: Rebuild.

From-SVN: r219627
2015-01-15 00:27:56 +00:00
Kyrylo Tkachov 69aef6dcdc Add load of target-utils.exp to libatomic, libitm, libvtv, libgo testsuite drivers
* testsuite/lib/libatomic.exp: Load target-utils.exp

	* testsuite/lib/libitm.exp: Load target-utils.exp.
	Move load of target-supports.exp earlier.

	* testsuite/lib/libvtv.exp: Load target-utils.exp

From-SVN: r218664
2014-12-12 12:00:01 +00:00
Ian Lance Taylor 6f7ccafa91 runtime: GOARCH values for ppc64 BE & LE
ppc64 for BE
ppc64le for LE
issue 8654

From-SVN: r217941
2014-11-21 18:22:05 +00:00
Ian Lance Taylor ffa98da470 runtime: introduce build targets for running benchmarks
This introduces the "bench" build target, which can be used to run
all benchmarks.

It is also possible to run subsets of benchmarks with the
"package/check" build targets by setting GOBENCH to a matching regex.

From-SVN: r212212
2014-07-01 23:19:24 +00:00
Ian Lance Taylor 9a85ed03da runtime: add the --without-libatomic configure option
This adds the --without-libatomic configure option, which is useful for building libgo
with a non-gcc compiler.

It disables libgo's dependency on libatomic. This
is useful for platforms where it is known that the libatomic runtime
functions are not required, or where the compiler automatically
provides an implementation of them.

From-SVN: r211065
2014-05-29 20:22:27 +00:00
Ian Lance Taylor 9d5eec2da6 gotest: Recognize PPC ELF v2 function pointers in text section.
From-SVN: r205000
2013-11-19 02:14:40 +00:00
Ian Lance Taylor d5698f71bb re PR go/56017 (libgo testsuite does not support cross testing)
PR go/56017
libgo DejaGNU testsuite: Load timeout.exp before go.exp.

From-SVN: r195926
2013-02-09 23:02:09 +00:00
Ian Lance Taylor 7134cf2833 re PR go/56017 (libgo testsuite does not support cross testing)
PR go/56017
libgo: Use DejaGNU when testing a cross-compiler.

From-SVN: r195766
2013-02-05 22:22:17 +00:00
Ian Lance Taylor 10f92c9c3f re PR go/56171 (syscall FAILs on Solaris)
PR go/56171
syscall: Only run creds_test on GNU/Linux.

From-SVN: r195686
2013-02-02 15:40:14 +00:00
Ian Lance Taylor 4ccad563d2 libgo: Update to current sources.
From-SVN: r192704
2012-10-23 04:31:11 +00:00
Ian Lance Taylor ee6440f8d8 libgo: Add no-dist and -Wno-portability to AM_INIT_AUTOMAKE.
From-SVN: r191575
2012-09-20 16:32:27 +00:00
Ian Lance Taylor 25bab91e01 gotest: Only look in data segment for ppc64, not ppc*.
From Andreas Schwab.

From-SVN: r188944
2012-06-25 16:26:27 +00:00
Ian Lance Taylor f3ab5720f7 libgo: Use -fgo-pkgpath.
From-SVN: r187485
2012-05-14 22:08:42 +00:00
Ian Lance Taylor bc9201591d gotest: Remove race in use of ../testdata.
From-SVN: r186781
2012-04-24 20:13:12 +00:00
Ian Lance Taylor d25a12fc2d net, syscall: Use native endianness for GNU/Linux netlink code.
From-SVN: r186640
2012-04-20 20:11:28 +00:00
Ian Lance Taylor 8198dc134f gotest: Don't get confused by data tables named Test on PPC.
From-SVN: r186605
2012-04-20 04:49:19 +00:00
Ian Lance Taylor ea8505da90 syscall, net: Fix GNU/Linux netlink code for big-endian systems.
From-SVN: r186123
2012-04-03 23:44:53 +00:00
Ian Lance Taylor 572a2f6886 gotest: Fix finding functions on PPC.
From-SVN: r186112
2012-04-03 18:26:57 +00:00
Ian Lance Taylor 317ea7c0f4 re PR go/48410 (weird installation dir)
PR go/48410
libgo: Don't put .gox files in version-specific directory.

From-SVN: r184223
2012-02-14 19:40:09 +00:00
Ian Lance Taylor 9d465faf92 math: Compile with -mfancy-math-387 -funsafe-optimizations on x86.
From-SVN: r184015
2012-02-08 19:38:17 +00:00
Ian Lance Taylor df1304ee03 libgo: Update to weekly.2012-01-15.
From-SVN: r183539
2012-01-25 20:56:26 +00:00
Ian Lance Taylor f9f9698753 compiler, runtime: Implement struct and array comparisons.
From-SVN: r182971
2012-01-06 21:47:49 +00:00
Ian Lance Taylor 2fd401c8f1 libgo: Update to weekly.2011-11-02.
From-SVN: r181964
2011-12-03 02:17:34 +00:00
Ian Lance Taylor 18c700754e libgo: Generate dependencies automatically.
From-SVN: r181955
2011-12-03 00:16:12 +00:00
Ian Lance Taylor 207c35fa9e syscall: Portability code for epoll_event on GNU/Linux.
From-SVN: r180729
2011-11-01 04:12:01 +00:00
Ian Lance Taylor d8f412571f Update Go library to last weekly.
From-SVN: r180552
2011-10-26 23:57:58 +00:00
Ian Lance Taylor de27caacfb Implement new syscall package.
Calls to library functions now use entersyscall and
exitsyscall as appropriate.  This is a first step toward
multiplexing goroutines onto threads.

From-SVN: r180345
2011-10-23 19:04:37 +00:00
Ian Lance Taylor 16e40fef8f Pass $(MATH_LIBS) $(NET_LIBS) when linking tests.
From-SVN: r179219
2011-09-26 22:33:31 +00:00
Ian Lance Taylor 2d778bb7ab Increase default libgo test timeout.
From-SVN: r179062
2011-09-21 23:02:31 +00:00
Ian Lance Taylor adb0401dac Update Go library to r60.
From-SVN: r178910
2011-09-16 15:47:21 +00:00
Ian Lance Taylor 09df293c7a libgo/testsuite/gotest: Run tests in source file order.
From-SVN: r176223
2011-07-13 01:04:50 +00:00
Ian Lance Taylor d983a802f6 libgo: Define CC_FOR_BUILD in Makefile.
From-SVN: r176182
2011-07-11 20:27:50 +00:00
Ian Lance Taylor 49fd1b338c gotest: Add external timeout if internal timeout fails.
From-SVN: r172003
2011-04-05 21:11:35 +00:00
Ian Lance Taylor 69dd762a99 gotest: Avoid echo -n.
From-SVN: r172000
2011-04-05 19:53:33 +00:00
Ian Lance Taylor 90630d1932 libgo: Support Solaris 8/9.
From Rainer Orth.

From-SVN: r171818
2011-04-01 05:11:23 +00:00
Ian Lance Taylor de90644af8 libgo: Set name of test when using DejaGNU tests.
From-SVN: r171805
2011-03-31 23:03:20 +00:00
Ian Lance Taylor 4bce572db2 re PR go/48242 (gotest needs timeout mechanism)
PR go/48242
libgo: Add timeout for tests.

From-SVN: r171803
2011-03-31 22:36:10 +00:00
Ian Lance Taylor f72f416913 Update to current Go library.
From-SVN: r171732
2011-03-30 15:33:16 +00:00
Ian Lance Taylor 8039ca76a5 Update to current version of Go library.
From-SVN: r171427
2011-03-24 23:46:17 +00:00
Ian Lance Taylor 5133f00ef8 Update to current version of Go library (revision 94d654be2064).
From-SVN: r171076
2011-03-16 23:05:44 +00:00
Ian Lance Taylor 25d5c0b020 re PR go/48020 (libgo flag test FAILs on Solaris 2)
PR go/48020
gotest: Pass -v to nm to avoid sorting on Solaris.

From-SVN: r170842
2011-03-10 00:51:14 +00:00
Ian Lance Taylor d46efcfe97 libgo.exp: Set tmpdir.
From-SVN: r169529
2011-02-02 15:50:16 +00:00
Ian Lance Taylor ca11cc98b9 Recognize m68k, mips, PPC. Don't require arch syscall files to exist.
From-SVN: r169185
2011-01-24 23:42:22 +00:00
Ian Lance Taylor c7aca2ff21 Use correct nm and nm options.
From-SVN: r168730
2011-01-12 23:06:13 +00:00
Ian Lance Taylor 86d013a7f0 Make using DejaGNU work for libgo testing on a native system.
From-SVN: r168729
2011-01-12 21:56:10 +00:00
Ian Lance Taylor f2ee78b861 Preliminary framework for Solaris support.
Partly from Rainer Orth.

From-SVN: r168697
2011-01-12 06:34:08 +00:00
Ian Lance Taylor c3b5b97b64 Simplify libgo Makefile conditionals.
From-SVN: r168696
2011-01-12 02:03:46 +00:00
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 6c94a9fa16 Check for -pthread and -lpthread at configure time.
From-SVN: r167445
2010-12-03 21:27:06 +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