Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 183 for gcflags (0.22 sec)

  1. src/cmd/go/testdata/script/build_runtime_gcflags.txt

    [short] skip # rebuilds all of std
    
    # Set up fresh GOCACHE.
    env GOCACHE=$WORK/gocache
    mkdir $GOCACHE
    
    # Verify the standard library (specifically internal/runtime/atomic) can be
    # built with -gcflags when -n is given. See golang.org/issue/29346.
    go build -n -gcflags=all='-l' std
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 00:18:30 UTC 2024
    - 349 bytes
    - Viewed (0)
  2. src/cmp.bash

    	echo $pkg
    	DIR=$GOROOT/src/$pkg
    	go build -gcflags "$FLAGS1 -S" -o /dev/null $pkg &> $DIR/old.txt
    done
    
    echo
    echo
    echo "2a) clean build using $FLAGS2"
    (export GO_GCFLAGS="$FLAGS2"; sh make.bash)
    
    echo
    echo
    echo "2b) save go build output for all packages"
    for pkg in `go list std`; do
    	echo $pkg
    	DIR=$GOROOT/src/$pkg
    	go build -gcflags "$FLAGS2 -S" -o /dev/null $pkg &> $DIR/new.txt
    done
    
    echo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:03:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. test/fixedbugs/issue10958.go

    // buildrun -t 10  -gcflags=-d=ssa/insert_resched_checks/on,ssa/check/on
    
    //go:build !nacl && !js && disabled_see_issue_18589
    
    // Copyright 2016 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.
    
    // Test is disabled because it flakes when run in all.bash
    // on some platforms, but is useful standalone to verify
    // that rescheduling checks are working (and we may wish
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. test/fixedbugs/issue34968.go

    // run -gcflags=all=-d=checkptr
    
    //go:build cgo
    
    // 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
    
    // #include <stdlib.h>
    import "C"
    
    func main() {
    	C.malloc(100)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 289 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_lines_test.go

    // testDebugLinesDefault removes the first wanted statement on architectures that are not (yet) register ABI.
    func testDebugLinesDefault(t *testing.T, gcflags, file, function string, wantStmts []int, ignoreRepeats bool) {
    	unixOnly(t)
    	if !hasRegisterABI() {
    		wantStmts = wantStmts[1:]
    	}
    	testDebugLines(t, gcflags, file, function, wantStmts, ignoreRepeats)
    }
    
    func TestDebugLinesSayHi(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/errors_test.go

    }
    
    func TestToleratesOptimizationFlag(t *testing.T) {
    	for _, cflags := range []string{
    		"",
    		"-O",
    	} {
    		cflags := cflags
    		t.Run(cflags, func(t *testing.T) {
    			testenv.MustHaveGoBuild(t)
    			testenv.MustHaveCGO(t)
    			t.Parallel()
    
    			cmd := exec.Command("go", "build", path("issue14669.go"))
    			cmd.Env = append(os.Environ(), "CGO_CFLAGS="+cflags)
    			out, err := cmd.CombinedOutput()
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. test/fixedbugs/issue35073a.go

    // run -gcflags=-d=checkptr
    
    // 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.
    
    // Test that reflect.Value.UnsafeAddr/Pointer is handled
    // correctly by -d=checkptr
    
    package main
    
    import (
    	"reflect"
    	"unsafe"
    )
    
    func main() {
    	n := 10
    	m := make(map[string]string)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 497 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top