aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/cmd
AgeCommit message (Collapse)AuthorFilesLines
2023-09-06cmd/go: permit $AR to include optionsIan Lance Taylor1-6/+2
Handle the AR environment variable, used by gccgo, the same way we handle the CC environment variable. This ports https://go.dev/cl/526275 to the gofrontend repo. This is needed for gccgo testing because the top-level GCC Makefile now passes a --plugin option to ar if it supports one. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/526295
2023-07-20cmd/go: don't collect package CGOLDFLAGS when using gccgoIan Lance Taylor2-11/+2
They are already collected via cmd/cgo. The gccgo_link_c test is tweaked to do real linking as with this change the cgo ldflags are not fully reflected in go build -n output, since they now only come from the built archive. This is a backport of https://go.dev/cl/497117 from the main repo. For golang/go#60287 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/511675
2022-09-22cmd/cgo: add and use runtime/cgo.Incomplete instead of //go:notinheapIan Lance Taylor4-51/+48
This ports https://go.dev/cl/421879 to libgo. This is a quick port to update gofrontend to work with the version of cgo in gc mainline. A more complete port will follow, changing the gc version of cmd/cgo to choose an approach based on feature testing the gccgo in use. Updates golang/go#46731 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/432338
2022-03-16libgo: update to final Go 1.18 releaseIan Lance Taylor23-55/+285
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/393377
2022-02-18libgo: update to Go1.18rc1 releaseIan Lance Taylor58-507/+1027
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/386594
2022-02-11libgo: update to Go1.18beta2Ian Lance Taylor446-3910/+13780
gotools/ * Makefile.am (go_cmd_cgo_files): Add ast_go118.go (check-go-tool): Copy golang.org/x/tools directories. * Makefile.in: Regenerate. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/384695
2021-09-16libgo: update to go1.17.1 releaseIan Lance Taylor1-11/+75
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/350414
2021-09-05libgo: update to final Go 1.17 releaseIan Lance Taylor3-32/+43
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/343729
2021-08-12libgo: update to Go1.17rc2Ian Lance Taylor583-3757/+25921
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/341629
2021-06-10libgo: update to Go1.16.5 releaseIan Lance Taylor8-19/+106
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/326772
2021-04-12libgo: update to Go1.16.3 releaseIan Lance Taylor7-49/+96
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/309490
2021-03-15libgo: update to Go 1.16.2 releaseIan Lance Taylor17-77/+119
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/301459
2021-02-19libgo: update to Go1.16 releaseIan Lance Taylor8-28/+72
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/293793
2021-01-29libgo: update to Go1.16rc1Ian Lance Taylor63-1681/+668
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/287493
2020-12-30libgo: update to Go1.16beta1 releaseIan Lance Taylor281-4833/+12685
This does not yet include support for the //go:embed directive added in this release. * Makefile.am (check-runtime): Don't create check-runtime-dir. (mostlyclean-local): Don't remove check-runtime-dir. (check-go-tool, check-vet): Copy in go.mod and modules.txt. (check-cgo-test, check-carchive-test): Add go.mod file. * Makefile.in: Regenerate. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/280172
2020-12-08libgo: update to 1.15.6 releaseIan Lance Taylor1-0/+15
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/276153
2020-11-20libgo: update to Go 1.15.5 releaseIan Lance Taylor4-4/+92
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/272146
2020-11-20compiler, libgo: change mangling schemeIan Lance Taylor3-15/+98
Overhaul the mangling scheme to avoid ambiguities if the package path contains a dot. Instead of using dot both to separate components and to mangle characters, use dot only to separate components and use underscore to mangle characters. For golang/go#41862 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/271726
2020-11-17cmd/go, cmd/cgo: update gofrontend mangling checksIan Lance Taylor5-130/+273
This is a port of two patches in the master repository. https://golang.org/cl/259298 cmd/cgo: split gofrontend mangling checks into cmd/internal/pkgpath This is a step toward porting https://golang.org/cl/219817 from the gofrontend repo to the main repo. Note that this also corrects the implementation of the v2 mangling scheme to use ..u and ..U where appropriate. https://golang.org/cl/259299 cmd/go: use cmd/internal/pkgpath for gccgo pkgpath symbol For golang/go#37272 For golang/go#41862 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/270637
2020-11-10libgo: update to Go 1.15.4 releaseIan Lance Taylor1-5/+0
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/268177
2020-10-27libgo: update to Go 1.15.3 releaseIan Lance Taylor7-21/+54
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/265717
2020-09-30libgo: add 32-bit RISC-V (RV32) supportMaciej W. Rozycki3-1/+15
Add support for the 32-bit RISC-V (RV32) ISA matching the 64-bit RISC-V (RV64) port except for async preemption added as a stub only. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/251179
2020-09-23libgo: update to Go1.15.2 releaseIan Lance Taylor16-72/+358
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/256618
2020-08-26cmd: add -maix32 to gcc calls for aix/ppcClément Chigot2-1/+8
As gcc might now be compiled in 64bit, -maix32 must always be added to ensure that created objects will be 32bit. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/250778
2020-08-07libgo: update to Go1.15rc2 releaseIan Lance Taylor2-14/+19
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/247517
2020-08-01libgo: update to go1.15rc1Ian Lance Taylor251-5675/+4177
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/245157
2020-07-17libgo: update to Go 1.14.6 releaseIan Lance Taylor2-39/+75
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/243317
2020-07-10libgo: update to Go 1.14.4 releaseIan Lance Taylor1-2/+10
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/241999
2020-04-09libgo: update to final 1.14.2 releaseIan Lance Taylor7-72/+150
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/227551
2020-04-06libgo: update to almost the 1.14.2 releaseIan Lance Taylor5-5/+37
Update to edea4a79e8d7dea2456b688f492c8af33d381dc2 which is likely to be approximately the 1.14.2 release. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/227377
2020-02-26libgo: update to final Go1.14 releaseIan Lance Taylor7-19/+66
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/221158
2020-02-18cmd/go: update -DGOPKGPATH to use current pkgpath encodingIan Lance Taylor1-6/+20
This will need to be done in the gc version too, probably more cleverly. This version will ensure that the next GCC release works correctly when using the GCC version of the go tool. Updates golang/go#37272 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/219817
2020-02-15libgo: update to Go1.14rc1 releaseIan Lance Taylor93-941/+254
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/218017
2020-01-21libgo: update to Go1.14beta1Ian Lance Taylor318-11909/+9890
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214297
2019-11-19libgo: better cmd/cgo handling for '.' in pkgpathIan Lance Taylor1-1/+3
Updates cgo's gccgoPkgpathToSymbolNew() to bring it into conformance with the way that gccgo now handles package paths with embedded dots (see CL 200838). See also https://gcc.gnu.org/PR61880, a related bug. This CL is a copy of CL 207957 in the main Go repo. Updates golang/go#35623. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/207977 From-SVN: r278470
2019-09-12libgo: update to Go1.13Ian Lance Taylor85-516/+1869
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194698 From-SVN: r275691
2019-09-10cmd/go: look for tool build ID before hashing entire fileIan Lance Taylor1-4/+9
Also fix the key used to store the ID. This is a significant speedup in cmd/go run time. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194257 From-SVN: r275559
2019-09-06libgo: update to Go 1.13beta1 releaseIan Lance Taylor432-4486/+19306
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/193497 From-SVN: r275473
2019-06-26cmd/go: silence ar with D flag failuresIan Lance Taylor1-1/+8
The first call of ar must not show its output in order to avoid useless error messages about D flag. The corresponding Go toolchain patch is CL 182077. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/183817 From-SVN: r272661
2019-04-08libgo: update to Go 1.12.2Ian Lance Taylor7-36/+97
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/170706 From-SVN: r270214
2019-03-19libgo: fix build on AIXIan Lance Taylor1-2/+4
Since aix/ppc64 has been added to GC toolchain, a mix between new and old files were created in gcc toolchain. This commit corrects this merge for aix/ppc64 and aix/ppc. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/167658 From-SVN: r269797
2019-03-18libgo: update to Go 1.12.1Ian Lance Taylor7-97/+109
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/167749 From-SVN: r269780
2019-03-05cmd/go: pass -X64 to ar on aix/ppc64Ian Lance Taylor1-3/+10
On aix/ppc64, ar tool must always have -X64 argument if it aims to create 64 bits archives. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165317 From-SVN: r269404
2019-03-01cmd/go: restore passing D to arIan Lance Taylor1-3/+6
This restores part of https://golang.org/cl/45695 that was accidentally lost in https://golang.org/cl/158019 (the update to Go1.12beta2). Reviewed-on: https://go-review.googlesource.com/c/164737 From-SVN: r269333
2019-03-01cmd/go: add -O2 to invocation of gccgoIan Lance Taylor1-1/+1
When using the go tool with gccgo, this changes the default compilation to use -O2. The -gccgoflags option can be used to override this default. I think this change better corresponds to what people expect when using the go tool. Reviewed-on: https://go-review.googlesource.com/c/164378 From-SVN: r269299
2019-02-27cmd/go: preserve CC for TestScript child processesIan Lance Taylor1-7/+6
Reviewed-on: https://go-review.googlesource.com/c/158838 From-SVN: r269240
2019-02-26libgo: update to Go 1.12 releaseIan Lance Taylor1-1/+1
Reviewed-on: https://go-review.googlesource.com/c/163742 From-SVN: r269216
2019-02-26libgo: update to Go1.12rc1Ian Lance Taylor12-41/+168
Reviewed-on: https://go-review.googlesource.com/c/162881 From-SVN: r269202
2019-02-22cmd/go: remove work directory on usage errorIan Lance Taylor10-19/+71
Backport https://golang.org/cl/163237 from the master library: Ensure that cmd/go consistently calls base.Exit rather than os.Exit, so that we don't incorrectly leave the work directory around on exit. Test this by modifying the testsuite to run all the tests with TMPDIR set to a temporary directory, and then check that no files are left behind in that temporary directory. Adjust a couple of tests to make this approach work. Updates https://gcc.gnu.org/PR89406 Reviewed-on: https://go-review.googlesource.com/c/163198 From-SVN: r269086
2019-02-01libgo: add hurd build tags to test filesIan Lance Taylor1-1/+1
Patch by Svante Signell. Reviewed-on: https://go-review.googlesource.com/c/160823 From-SVN: r268460