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
4589c345
Commit
4589c345
authored
Feb 18, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: fix this morning's bug fix
R=ken2 CC=golang-dev
https://golang.org/cl/216043
parent
fc010adc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
src/cmd/8g/ggen.c
src/cmd/8g/ggen.c
+2
-0
src/cmd/gc/align.c
src/cmd/gc/align.c
+0
-2
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+2
-1
src/cmd/gc/typecheck.c
src/cmd/gc/typecheck.c
+2
-0
src/cmd/gc/walk.c
src/cmd/gc/walk.c
+1
-2
No files found.
src/cmd/8g/ggen.c
View file @
4589c345
...
...
@@ -220,6 +220,8 @@ cgen_callinter(Node *n, Node *res, int proc)
nodo
.
xoffset
-=
widthptr
;
cgen
(
&
nodo
,
&
nodr
);
// REG = 0(REG) -- i.m
if
(
n
->
left
->
xoffset
==
BADWIDTH
)
fatal
(
"cgen_callinter: badwidth"
);
nodo
.
xoffset
=
n
->
left
->
xoffset
+
3
*
widthptr
+
8
;
cgen
(
&
nodo
,
&
nodr
);
// REG = 32+offset(REG) -- i.m->fun[f]
...
...
src/cmd/gc/align.c
View file @
4589c345
...
...
@@ -37,8 +37,6 @@ offmod(Type *t)
for
(
f
=
t
->
type
;
f
!=
T
;
f
=
f
->
down
)
{
if
(
f
->
etype
!=
TFIELD
)
fatal
(
"widstruct: not TFIELD: %lT"
,
f
);
if
(
f
->
type
->
etype
!=
TFUNC
)
continue
;
f
->
width
=
o
;
o
+=
widthptr
;
}
...
...
src/cmd/gc/dcl.c
View file @
4589c345
...
...
@@ -814,8 +814,9 @@ stotype(NodeList *l, int et, Type **t)
// right now all we need is the name list.
// avoids cycles for recursive interface types.
n
->
type
=
typ
(
TINTERMETH
);
n
->
type
->
n
od
=
n
->
right
;
n
->
type
->
n
name
=
n
->
right
;
n
->
right
=
N
;
n
->
left
->
type
=
n
->
type
;
queuemethod
(
n
);
}
else
{
typecheck
(
&
n
->
right
,
Etype
);
...
...
src/cmd/gc/typecheck.c
View file @
4589c345
...
...
@@ -1239,6 +1239,8 @@ lookdot(Node *n, Type *t, int dostrcmp)
if
(
f2
!=
T
)
yyerror
(
"ambiguous DOT reference %S as both field and method"
,
n
->
right
->
sym
);
if
(
f1
->
width
==
BADWIDTH
)
fatal
(
"lookdot badwidth %T %p"
,
f1
,
f1
);
n
->
xoffset
=
f1
->
width
;
n
->
type
=
f1
->
type
;
if
(
t
->
etype
==
TINTER
)
{
...
...
src/cmd/gc/walk.c
View file @
4589c345
...
...
@@ -123,7 +123,7 @@ domethod(Node *n)
{
Node
*
nt
;
nt
=
n
->
type
->
n
od
;
nt
=
n
->
type
->
n
name
;
typecheck
(
&
nt
,
Etype
);
if
(
nt
->
type
==
T
)
{
// type check failed; leave empty func
...
...
@@ -164,7 +164,6 @@ walkdeftype(Node *n)
t
->
local
=
n
->
local
;
t
->
vargen
=
n
->
vargen
;
t
->
siggen
=
0
;
t
->
printed
=
0
;
t
->
method
=
nil
;
t
->
nod
=
N
;
t
->
printed
=
0
;
...
...
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