Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
4a6b07f2
Commit
4a6b07f2
authored
Jan 10, 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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/cmd/gc/lex.c
src/cmd/gc/lex.c
+7
-0
test/escape2.go
test/escape2.go
+1
-1
No files found.
src/cmd/gc/lex.c
View file @
4a6b07f2
...
...
@@ -235,6 +235,13 @@ main(int argc, char *argv[])
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