Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 318 for gcflags (0.12 sec)

  1. src/cmd/link/internal/ld/nooptcgolink_test.go

    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    	t.Parallel()
    
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	dir := t.TempDir()
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-gcflags=-N -l", "-o", filepath.Join(dir, "a.out"))
    	cmd.Dir = filepath.Join(testenv.GOROOT(t), "src", "runtime", "testdata", "testprogcgo")
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Logf("go build output: %s", out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 733 bytes
    - Viewed (0)
  2. test/fixedbugs/issue59334.go

    // run -tags=purego -gcflags=all=-d=checkptr
    
    // 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 main
    
    import "crypto/subtle"
    
    func main() {
    	dst := make([]byte, 5)
    	src := make([]byte, 5)
    	for _, n := range []int{1024, 2048} { // just to make the size non-constant
    		b := make([]byte, n)
    		subtle.XORBytes(dst, src, b[n-5:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 31 23:25:07 UTC 2023
    - 448 bytes
    - Viewed (0)
  3. test/codegen/spectre.go

    // asmcheck -gcflags=-spectre=index
    
    //go:build amd64
    
    // Copyright 2020 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 codegen
    
    func IndexArray(x *[10]int, i int) int {
    	// amd64:`CMOVQCC`
    	return x[i]
    }
    
    func IndexString(x string, i int) byte {
    	// amd64:`CMOVQ(LS|CC)`
    	return x[i]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 734 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top