mirror of
https://github.com/golang/go
synced 2024-11-25 08:47:56 -07:00
gc: enable inlining by default
R=lvd, r CC=golang-dev https://golang.org/cl/5531058
This commit is contained in:
parent
d03bfa8e5b
commit
4a6b07f235
@ -234,6 +234,13 @@ main(int argc, char *argv[])
|
||||
print("%cg version %s%s%s\n", thechar, getgoversion(), *p ? " " : "", p);
|
||||
exits(0);
|
||||
} ARGEND
|
||||
|
||||
// enable inlining. for now:
|
||||
// default: inlining on. (debug['l'] == 1)
|
||||
// -l: inlining off (debug['l'] == 0)
|
||||
// -ll, -lll: inlining on again, with extra debugging (debug['l'] > 1)
|
||||
if(debug['l'] <= 1)
|
||||
debug['l'] = 1 - debug['l'];
|
||||
|
||||
if(argc < 1)
|
||||
usage();
|
||||
|
@ -1,4 +1,4 @@
|
||||
// errchk -0 $G -m $D/$F.go
|
||||
// errchk -0 $G -m -l $D/$F.go
|
||||
|
||||
// Copyright 2010 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
Loading…
Reference in New Issue
Block a user