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
dc1602ca
Commit
dc1602ca
authored
Jun 28, 2008
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more line numbers
SVN=125261
parent
ff4b01b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/cmd/6g/gen.c
src/cmd/6g/gen.c
+2
-0
src/cmd/6g/gsubr.c
src/cmd/6g/gsubr.c
+6
-0
No files found.
src/cmd/6g/gen.c
View file @
dc1602ca
...
...
@@ -685,6 +685,7 @@ cgen_callret(Node *n, Node *res)
nod
.
op
=
OINDREG
;
nod
.
val
.
vval
=
D_SP
;
nod
.
addable
=
1
;
nod
.
lineno
=
lineno
;
nod
.
xoffset
=
fp
->
width
;
nod
.
type
=
fp
->
type
;
...
...
@@ -714,6 +715,7 @@ cgen_aret(Node *n, Node *res)
nod1
.
op
=
OINDREG
;
nod1
.
val
.
vval
=
D_SP
;
nod1
.
addable
=
1
;
nod1
.
lineno
=
lineno
;
nod1
.
xoffset
=
fp
->
width
;
nod1
.
type
=
fp
->
type
;
...
...
src/cmd/6g/gsubr.c
View file @
dc1602ca
...
...
@@ -55,6 +55,8 @@ prog(int as)
p
->
as
=
as
;
p
->
lineno
=
lineno
;
p
->
link
=
pc
;
if
(
lineno
==
0
)
warn
(
"line 0 %P
\n
"
,
p
);
return
p
;
}
...
...
@@ -214,6 +216,7 @@ nodreg(Node *n, Type *t, int r)
memset
(
n
,
0
,
sizeof
(
*
n
));
n
->
op
=
OREGISTER
;
n
->
addable
=
1
;
n
->
lineno
=
lineno
;
ullmancalc
(
n
);
n
->
val
.
vval
=
r
;
n
->
type
=
t
;
...
...
@@ -239,6 +242,7 @@ nodarg(Type *t, int fp)
n
->
sym
=
t
->
sym
;
n
->
xoffset
=
t
->
width
;
n
->
addable
=
1
;
n
->
lineno
=
lineno
;
switch
(
fp
)
{
case
0
:
// output arg
...
...
@@ -266,6 +270,7 @@ nodconst(Node *n, Type *t, vlong v)
memset
(
n
,
0
,
sizeof
(
*
n
));
n
->
op
=
OLITERAL
;
n
->
addable
=
1
;
n
->
lineno
=
lineno
;
ullmancalc
(
n
);
n
->
val
.
vval
=
v
;
n
->
val
.
ctype
=
CTINT
;
...
...
@@ -1672,6 +1677,7 @@ tempname(Node *n, Type *t)
n
->
etype
=
t
->
etype
;
n
->
class
=
PAUTO
;
n
->
addable
=
1
;
n
->
lineno
=
lineno
;
n
->
ullman
=
0
;
dowidth
(
t
);
...
...
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