- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for iscgo (0.07 sec)
-
src/runtime/cgo/iscgo.go
// correctly, and sometimes they break. This variable is a // backup: it depends only on old C style static linking rules. package cgo import _ "unsafe" // for go:linkname //go:linkname _iscgo runtime.iscgo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 02 00:13:47 UTC 2016 - 646 bytes - Viewed (0) -
src/runtime/cgo.go
) // iscgo is set to true by the runtime/cgo package // // iscgo should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/ebitengine/purego // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname iscgo var iscgo bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/nm/nm_test.go
} } func testGoExec(t *testing.T, iscgo, isexternallinker bool) { t.Parallel() tmpdir, err := os.MkdirTemp("", "TestGoExec") if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpdir) src := filepath.Join(tmpdir, "a.go") file, err := os.Create(src) if err != nil { t.Fatal(err) } err = template.Must(template.New("main").Parse(testexec)).Execute(file, iscgo) if e := file.Close(); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 20 23:32:34 UTC 2023 - 8.8K bytes - Viewed (0) -
src/runtime/tls_loong64.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "go_asm.h" #include "go_tls.h" #include "funcdata.h" #include "textflag.h" // If !iscgo, this is a no-op. // // NOTE: mcall() assumes this clobbers only R30 (REGTMP). TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0 MOVB runtime·iscgo(SB), R30 BEQ R30, nocgo MOVV g, runtime·tls_g(SB) nocgo:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 20:18:25 UTC 2022 - 589 bytes - Viewed (0) -
src/cmd/link/internal/ld/config.go
return true, fmt.Sprintf("%s/%s requires external linking", buildcfg.GOOS, buildcfg.GOARCH) } if *flagMsan { return true, "msan" } if *flagAsan { return true, "asan" } if iscgo && platform.MustLinkExternal(buildcfg.GOOS, buildcfg.GOARCH, true) { return true, buildcfg.GOARCH + " does not support internal cgo" } // Some build modes require work the internal linker cannot do (yet).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:14:11 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/tls_riscv64.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "go_asm.h" #include "go_tls.h" #include "funcdata.h" #include "textflag.h" // If !iscgo, this is a no-op. // // NOTE: mcall() assumes this clobbers only X31 (REG_TMP). TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0 #ifndef GOOS_openbsd MOVB runtime·iscgo(SB), X31 BEQZ X31, nocgo #endif
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 02:55:17 UTC 2023 - 615 bytes - Viewed (0) -
src/runtime/tls_mips64x.s
// license that can be found in the LICENSE file. //go:build mips64 || mips64le #include "go_asm.h" #include "go_tls.h" #include "funcdata.h" #include "textflag.h" // If !iscgo, this is a no-op. // // NOTE: mcall() assumes this clobbers only R23 (REGTMP). TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0 MOVB runtime·iscgo(SB), R23 BEQ R23, nocgo MOVV R3, R23 // save R3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 06 10:24:44 UTC 2021 - 733 bytes - Viewed (0) -
src/runtime/tls_mipsx.s
// license that can be found in the LICENSE file. //go:build mips || mipsle #include "go_asm.h" #include "go_tls.h" #include "funcdata.h" #include "textflag.h" // If !iscgo, this is a no-op. // NOTE: gogo assumes load_g only clobers g (R30) and REGTMP (R23) TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0 MOVB runtime·iscgo(SB), R23 BEQ R23, nocgo MOVW R3, R23
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 710 bytes - Viewed (0) -
src/runtime/os_freebsd_amd64.go
var sa sigactiont sa.sa_flags = _SA_SIGINFO | _SA_ONSTACK | _SA_RESTART sa.sa_mask = sigset_all if fn == abi.FuncPCABIInternal(sighandler) { // abi.FuncPCABIInternal(sighandler) matches the callers in signal_unix.go if iscgo { fn = abi.FuncPCABI0(cgoSigtramp) } else { fn = abi.FuncPCABI0(sigtramp) } } sa.sa_handler = fn sigaction(i, &sa, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 21 22:40:36 UTC 2021 - 658 bytes - Viewed (0) -
src/runtime/tls_ppc64x.s
// this might well result in another SIGSEGV. // save_g saves the g register into pthread-provided // thread-local memory, so that we can call externally compiled // ppc64 code that will overwrite this register. // // If !iscgo, this is a no-op. // // NOTE: setg_gcc<> assume this clobbers only R31. TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0 #ifndef GOOS_aix #ifndef GOOS_openbsd MOVBZ runtime·iscgo(SB), R31 CMP R31, $0 BEQ nocgo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 02:48:11 UTC 2023 - 1.5K bytes - Viewed (0)