]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: consolidate freebsd cgo code
authorJoel Sing <joel@sing.id.au>
Fri, 11 Aug 2023 12:53:30 +0000 (22:53 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 15 Aug 2023 03:40:00 +0000 (03:40 +0000)
commit60506f4d7f912bff9af886ea1befb8aa9583d535
tree4658b980a441962355ca96989d596960b5f0afd9
parenta91931d69297d2ec2e4dda711db9ac938b2ab776
runtime/cgo: consolidate freebsd cgo code

Most freebsd architectures now use the same code, deduplicate accordingly.

The arm code differs slightly in that it has a compile time check for
ARM_TP_ADDRESS, however this is written in a way that it can be included
for all architectures.

Change-Id: I7f6032b63521d24d0c3b5e0e08d57e32b4f9ddc4
Reviewed-on: https://go-review.googlesource.com/c/go/+/518619
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/cgo/gcc_freebsd.c [moved from src/runtime/cgo/gcc_freebsd_arm.c with 88% similarity]
src/runtime/cgo/gcc_freebsd_386.c [deleted file]
src/runtime/cgo/gcc_freebsd_arm64.c [deleted file]
src/runtime/cgo/gcc_freebsd_riscv64.c [deleted file]