mirror of git://gcc.gnu.org/git/gcc.git
Previously the libgo Makefile explicitly listed the set of files to
compile for each package. For packages that use build tags, this
required a lot of awkward automake conditionals in the Makefile.
This CL changes the build to look at the build tags in the files.
The new shell script libgo/match.sh does the matching. This required
adjusting a lot of build tags, and removing some files that are never
used. I verified that the exact same sets of files are compiled on
amd64 GNU/Linux. I also tested the build on i386 Solaris.
Writing match.sh revealed some bugs in the build tag handling that
already exists, in a slightly different form, in the gotest shell
script. This CL fixes those problems as well.
The old code used automake conditionals to handle systems that were
missing strerror_r and wait4. Rather than deal with those in Go, those
functions are now implemented in runtime/go-nosys.c when necessary, so
the Go code can simply assume that they exist.
The os testsuite looked for dir_unix.go, which was never built for gccgo
and has now been removed. I changed the testsuite to look for dir.go
instead.
Reviewed-on: https://go-review.googlesource.com/25546
From-SVN: r239189
|
||
|---|---|---|
| .. | ||
| debug | ||
| msan | ||
| pprof | ||
| race | ||
| testdata | ||
| append_test.go | ||
| callers_test.go | ||
| cgo_mmap.go | ||
| cgocheck.go | ||
| chan_test.go | ||
| chanbarrier_test.go | ||
| closure_test.go | ||
| compiler.go | ||
| complex_test.go | ||
| crash_cgo_test.go | ||
| crash_nonunix_test.go | ||
| crash_test.go | ||
| crash_unix_test.go | ||
| debug.go | ||
| env_test.go | ||
| error.go | ||
| export_arm_test.go | ||
| export_linux_test.go | ||
| export_mmap_test.go | ||
| export_test.go | ||
| export_windows_test.go | ||
| extern.go | ||
| fastlog2.go | ||
| fastlog2_test.go | ||
| fastlog2table.go | ||
| gc_test.go | ||
| gcinfo_test.go | ||
| iface_test.go | ||
| lfstack_64bit.go | ||
| lfstack_test.go | ||
| malloc_test.go | ||
| map_test.go | ||
| mapspeed_test.go | ||
| mem.go | ||
| mfinal_test.go | ||
| mkfastlog2table.go | ||
| mmap.go | ||
| msan0.go | ||
| mstkbar.go | ||
| norace_test.go | ||
| print.go | ||
| proc_runtime_test.go | ||
| proc_test.go | ||
| runtime-lldb_test.go | ||
| runtime_mmap_test.go | ||
| runtime_test.go | ||
| runtime_unix_test.go | ||
| signal2_unix.go | ||
| signal_sigtramp.go | ||
| stack.go | ||
| string_test.go | ||
| symtab.go | ||
| symtab_test.go | ||