aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-gcc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-05-16 23:23:58 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-05-16 23:23:58 +0000
commitf6d67708ca8d0efbeeb5742ef177db2e1a096278 (patch)
tree67a942ae567ef9f5abff55de4595f64d8be2b14d /gcc/go/go-gcc.cc
parent7110128236989c9f957b7345d5615e9df8a337f2 (diff)
downloadgcc-f6d67708ca8d0efbeeb5742ef177db2e1a096278.zip
gcc-f6d67708ca8d0efbeeb5742ef177db2e1a096278.tar.gz
gcc-f6d67708ca8d0efbeeb5742ef177db2e1a096278.tar.bz2
compiler: add intrinsics for runtime/internal/sys functions
runtime/internal/sys.Ctz32/64 and Bswap32/64 are currently implemented with compiler builtin functions. But if they are called from another package, the compiler does not know and therefore cannot turn them into compiler intrinsics. This CL makes the compiler recognize these functions and turn them into intrinsics directly, as the gc compiler does. This CL sets up a way for adding intrinsics in the compiler. More intrinsics will be added in later CLs. Also move the handling of runtime.getcallerpc/sp to the new way of generating intrinsics. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/176917 From-SVN: r271303
Diffstat (limited to 'gcc/go/go-gcc.cc')
0 files changed, 0 insertions, 0 deletions