- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 165 for goGcflags (0.22 sec)
-
test/fixedbugs/issue28688.go
// run -gcflags=-d=softfloat // Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" ) // When using soft-float, OMUL might be rewritten to function // call so we should ensure it was evaluated first. Stack frame // setup for "test" function call should happen after call to runtime.fmul32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 03 16:14:24 UTC 2021 - 622 bytes - Viewed (0) -
test/fixedbugs/issue35027.go
// run -gcflags=-d=checkptr // Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "reflect" "unsafe" ) var s []int func main() { s = []int{42} h := (*reflect.SliceHeader)(unsafe.Pointer(&s)) x := *(*int)(unsafe.Pointer(h.Data)) if x != 42 { panic(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 21 20:51:06 UTC 2019 - 395 bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_vendor_auto.txt
env GO111MODULE=on [short] skip cd $WORK/auto cp go.mod go.mod.orig cp $WORK/modules-1.13.txt $WORK/auto/modules.txt # An explicit -mod=vendor should force use of the vendor directory. env GOFLAGS=-mod=vendor # Pass -e to permit an error: tools.go imports a main package # "example.com/printversion". # TODO(#59186): investigate why it didn't fail without -e. go list -f {{.Dir}} -tags tools -e all
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:21:14 UTC 2024 - 9.7K bytes - Viewed (0) -
test/fixedbugs/issue59404.go
// build -gcflags=-l=4 // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p type Interface interface { MonitoredResource() (resType string, labels map[string]string) Done() } func Autodetect() Interface { return func() Interface { Do(func() { var ad, gd Interface go func() { defer gd.Done()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 15:07:18 UTC 2023 - 935 bytes - Viewed (0) -
src/cmd/compile/profile.sh
# the profile at cmd/compile/default.pgo. dir=$(mktemp -d) cd $dir seed=$(date) for p in $(go list std cmd); do h=$(echo $seed $p | md5sum | cut -d ' ' -f 1) echo $p $h go build -o /dev/null -gcflags=-cpuprofile=$PWD/prof.$h $p done go tool pprof -proto prof.* > $(go env GOROOT)/src/cmd/compile/default.pgo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 17:31:10 UTC 2023 - 588 bytes - Viewed (0) -
test/codegen/retpoline.go
// asmcheck -gcflags=-spectre=ret //go:build amd64 package codegen func CallFunc(f func()) { // amd64:`CALL\truntime.retpoline` f() } func CallInterface(x interface{ M() }) { // amd64:`CALL\truntime.retpoline` x.M() } // Check to make sure that jump tables are disabled // when retpoline is on. See issue 57097. func noJumpTables(x int) int { switch x { case 0: return 0 case 1: return 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 580 bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_path_space.txt
rm $WORK/log.txt # TODO(#41400, #43078): when CC is set explicitly, it should be allowed to # contain spaces separating arguments, and it should be possible to quote # arguments with spaces (including the path), as in CGO_CFLAGS and other # variables. For now, this doesn't work. [!GOOS:windows] env CC=$WORK/'program files'/gcc [GOOS:windows] env CC=$WORK\'program files'\gcc.bat ! go build -x ! exists $WORK/log.txt -- go.mod -- module m
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1.6K bytes - Viewed (0) -
test/fixedbugs/issue32680.go
// run -gcflags=-d=ssa/check/on // Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // As of 2019-06, bug affects/ed amd64 and s390x. package main var foo = []byte{105, 57, 172, 152} func main() { for i := 0; i < len(foo); i += 4 { // Requires inlining and non-constant i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 20 16:56:47 UTC 2019 - 687 bytes - Viewed (0) -
test/fixedbugs/bug513.go
// run -race -gcflags=all=-d=checkptr=0 //go:build ((linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)) && cgo // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Although -race turns on -d=checkptr, the explicit -d=checkptr=0 // should override it. package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 596 bytes - Viewed (0) -
src/cmd/compile/internal/test/clobberdead_test.go
src := filepath.Join(tmpdir, "x.go") err := os.WriteFile(src, []byte(helloSrc), 0644) if err != nil { t.Fatalf("write file failed: %v", err) } cmd := testenv.Command(t, testenv.GoToolPath(t), "run", "-gcflags=all="+flag, src) out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("go run failed: %v\n%s", err, out) } if string(out) != "hello\n" { t.Errorf("wrong output: got %q, want %q", out, "hello\n") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:19:15 UTC 2022 - 1.2K bytes - Viewed (0)