Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
4a6b07f2
Commit
4a6b07f2
authored
Jan 11, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: enable inlining by default
R=lvd, r CC=golang-dev
https://golang.org/cl/5531058
parent
d03bfa8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
lex.c
src/cmd/gc/lex.c
+7
-0
escape2.go
test/escape2.go
+1
-1
No files found.
src/cmd/gc/lex.c
View file @
4a6b07f2
...
...
@@ -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
();
...
...
test/escape2.go
View file @
4a6b07f2
// 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment