Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for GCCGO (0.06 sec)

  1. src/cmd/go/internal/cfg/cfg.go

    		env = os.Getenv("GOROOT")
    	}
    	if env != "" {
    		return filepath.Clean(env)
    	}
    	def := ""
    	if r := runtime.GOROOT(); r != "" {
    		def = filepath.Clean(r)
    	}
    	if runtime.Compiler == "gccgo" {
    		// gccgo has no real GOROOT, and it certainly doesn't
    		// depend on the executable's location.
    		return def
    	}
    
    	// canonical returns a directory path that represents
    	// the same directory as dir,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/read.go

    	if err == nil {
    		return mi.Package(relPath(pkgdir, modroot)), nil
    	}
    	if !errors.Is(err, errNotFromModuleCache) {
    		return nil, err
    	}
    	if cfg.BuildContext.Compiler == "gccgo" && str.HasPathPrefix(modroot, cfg.GOROOTsrc) {
    		return nil, err // gccgo has no sources for GOROOT packages.
    	}
    	return openIndexPackage(modroot, pkgdir)
    }
    
    // GetModule returns the Module for the given modroot.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/testx.go

    	}
    	return buf[growStack(n-1)]
    }
    
    func issue7978go() {
    	C.issue7978c((*C.uint32_t)(&issue7978sync))
    	issue7978wait(7, 8)
    }
    
    func test7978(t *testing.T) {
    	if runtime.Compiler == "gccgo" {
    		t.Skip("gccgo can not do stack traces of C code")
    	}
    	debug.SetTraceback("2")
    	issue7978sync = 0
    	go issue7978go()
    	// test in c code, before callback
    	issue7978wait(0, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    		generated output.
    	-gccgo
    		Generate output for the gccgo compiler rather than the
    		gc compiler.
    	-gccgoprefix prefix
    		The -fgo-prefix option to be used with gccgo.
    	-gccgopkgpath path
    		The -fgo-pkgpath option to be used with gccgo.
    	-gccgo_define_cgoincomplete
    		Define cgo.Incomplete locally rather than importing it from
    		the "runtime/cgo" package. Used for old gccgo versions.
    	-godefs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  5. src/context/x_test.go

    				cancel()
    				<-c.Done()
    			},
    			limit:      8,
    			gccgoLimit: 25,
    		},
    	} {
    		limit := test.limit
    		if runtime.Compiler == "gccgo" {
    			// gccgo does not yet do escape analysis.
    			// TODO(iant): Remove this when gccgo does do escape analysis.
    			limit = test.gccgoLimit
    		}
    		numRuns := 100
    		if testing.Short() {
    			numRuns = 10
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/envcmd/env.go

    		case "GODEBUG":
    			env[i].Changed = env[i].Value != ""
    		}
    	}
    
    	if work.GccgoBin != "" {
    		env = append(env, cfg.EnvVar{Name: "GCCGO", Value: work.GccgoBin, Changed: true})
    	} else {
    		env = append(env, cfg.EnvVar{Name: "GCCGO", Value: work.GccgoName})
    	}
    
    	goarch, val, changed := cfg.GetArchEnv()
    	if goarch != "" {
    		env = append(env, cfg.EnvVar{Name: goarch, Value: val, Changed: changed})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/shell.go

    func (sh *Shell) runOut(dir string, env []string, cmdargs ...any) ([]byte, error) {
    	a := sh.action
    
    	cmdline := str.StringList(cmdargs...)
    
    	for _, arg := range cmdline {
    		// GNU binutils commands, including gcc and gccgo, interpret an argument
    		// @foo anywhere in the command line (even following --) as meaning
    		// "read and insert arguments from the file named foo."
    		// Don't say anything that might be misinterpreted that way.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modload/build.go

    	}
    	return module.Version{}, false
    }
    
    func ModInfoProg(info string, isgccgo bool) []byte {
    	// Inject an init function to set runtime.modinfo.
    	// This is only used for gccgo - with gc we hand the info directly to the linker.
    	// The init function has the drawback that packages may want to
    	// look at the module info in their init functions (see issue 29628),
    	// which won't work. See also issue 30344.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/buildid.go

    	}
    
    	b.id.Lock()
    	b.toolIDCache[name] = id
    	b.id.Unlock()
    
    	return id
    }
    
    // gccToolID returns the unique ID to use for a tool that is invoked
    // by the GCC driver. This is used particularly for gccgo, but this can also
    // be used for gcc, g++, gfortran, etc.; those tools all use the GCC
    // driver under different names. The approach used here should also
    // work for sufficiently new versions of clang. Unlike toolID, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. src/database/sql/convert_test.go

    			test(tt.name, tt.in, tt.want)
    		}
    	})
    
    	// The numbers below are only valid for 64-bit interface word sizes,
    	// and gc. With 32-bit words there are more convT2E allocs, and
    	// with gccgo, only pointers currently go in interface data.
    	// So only care on amd64 gc for now.
    	measureAllocs := false
    	switch runtime.GOARCH {
    	case "amd64", "arm64":
    		measureAllocs = runtime.Compiler == "gc"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top