1// Copyright 2023 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5// For bootstrapping with gccgo. 6 7//go:build gccgo 8 9package abi 10 11import "unsafe" 12 13func FuncPCABI0(f interface{}) uintptr { 14 words := (*[2]unsafe.Pointer)(unsafe.Pointer(&f)) 15 return *(*uintptr)(unsafe.Pointer(words[1])) 16} 17 18func FuncPCABIInternal(f interface{}) uintptr { 19 words := (*[2]unsafe.Pointer)(unsafe.Pointer(&f)) 20 return *(*uintptr)(unsafe.Pointer(words[1])) 21} 22