]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: consolidate linux cgo code
authorJoel Sing <joel@sing.id.au>
Fri, 11 Aug 2023 08:54:52 +0000 (18:54 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 15 Aug 2023 03:55:36 +0000 (03:55 +0000)
commit23e4a4b6e5ef46f2ea3fa3a95efda46df1084cf7
tree29436719943a406ee66878afae75b5259ff4491c
parent60506f4d7f912bff9af886ea1befb8aa9583d535
runtime/cgo: consolidate linux cgo code

Much of the gcc_linux_*.c code is identical and duplicated across
architectures. Consolidate code for 386, arm, loong64, mips* and
riscv64, where the only difference is the build tags (386 also
has some non-functional ordering differences).

Change-Id: I14ee9a4cc6b72e165239d196b68b6343efaddf0a
Reviewed-on: https://go-review.googlesource.com/c/go/+/518620
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/cgo/gcc_linux.c [moved from src/runtime/cgo/gcc_linux_386.c with 93% similarity]
src/runtime/cgo/gcc_linux_arm.c [deleted file]
src/runtime/cgo/gcc_linux_loong64.c [deleted file]
src/runtime/cgo/gcc_linux_mips64x.c [deleted file]
src/runtime/cgo/gcc_linux_mipsx.c [deleted file]
src/runtime/cgo/gcc_linux_riscv64.c [deleted file]