]> Cypherpunks repositories - gostls13.git/commitdiff
gc: enable inlining by default
authorRuss Cox <rsc@golang.org>
Wed, 11 Jan 2012 04:08:53 +0000 (20:08 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Jan 2012 04:08:53 +0000 (20:08 -0800)
R=lvd, r
CC=golang-dev
https://golang.org/cl/5531058

src/cmd/gc/lex.c
test/escape2.go

index f777a7e44eb1479be32507fcfe1876dc2dc2157d..db6dfc3e119a4e5e81d39d2a7a13e6feb27735d0 100644 (file)
@@ -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();
index e4d5084c79a3e77a6d34f7cd42b02c68c7e2158e..c2cbefbe6121b3d990aa9bbf7ffd98c917607ebf 100644 (file)
@@ -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