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
62be24d9
Commit
62be24d9
authored
Dec 04, 2009
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6g code gen bug
R=rsc
https://golang.org/cl/166052
parent
f3d63bea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
ggen.c
src/cmd/6g/ggen.c
+2
-1
ggen.c
src/cmd/8g/ggen.c
+4
-10
No files found.
src/cmd/6g/ggen.c
View file @
62be24d9
...
@@ -80,8 +80,9 @@ compile(Node *fn)
...
@@ -80,8 +80,9 @@ compile(Node *fn)
pc
->
as
=
ARET
;
// overwrite AEND
pc
->
as
=
ARET
;
// overwrite AEND
pc
->
lineno
=
lineno
;
pc
->
lineno
=
lineno
;
if
(
!
debug
[
'N'
]
||
debug
[
'R'
]
||
debug
[
'P'
])
if
(
!
debug
[
'N'
]
||
debug
[
'R'
]
||
debug
[
'P'
])
{
regopt
(
ptxt
);
regopt
(
ptxt
);
}
// fill in argument size
// fill in argument size
ptxt
->
to
.
offset
=
rnd
(
curfn
->
type
->
argwid
,
maxround
);
ptxt
->
to
.
offset
=
rnd
(
curfn
->
type
->
argwid
,
maxround
);
...
...
src/cmd/8g/ggen.c
View file @
62be24d9
...
@@ -80,7 +80,6 @@ compile(Node *fn)
...
@@ -80,7 +80,6 @@ compile(Node *fn)
pc
->
as
=
ARET
;
// overwrite AEND
pc
->
as
=
ARET
;
// overwrite AEND
pc
->
lineno
=
lineno
;
pc
->
lineno
=
lineno
;
if
(
0
)
if
(
!
debug
[
'N'
]
||
debug
[
'R'
]
||
debug
[
'P'
])
{
if
(
!
debug
[
'N'
]
||
debug
[
'R'
]
||
debug
[
'P'
])
{
regopt
(
ptxt
);
regopt
(
ptxt
);
}
}
...
@@ -470,15 +469,10 @@ cgen_asop(Node *n)
...
@@ -470,15 +469,10 @@ cgen_asop(Node *n)
}
}
hard:
hard:
if
(
nr
->
ullman
>
nl
->
ullman
)
{
tempname
(
&
n2
,
nr
->
type
);
tempname
(
&
n2
,
nr
->
type
);
cgen
(
nr
,
&
n2
);
cgen
(
nr
,
&
n2
);
igen
(
nl
,
&
n1
,
N
);
igen
(
nl
,
&
n1
,
N
);
}
else
{
igen
(
nl
,
&
n1
,
N
);
tempname
(
&
n2
,
nr
->
type
);
cgen
(
nr
,
&
n2
);
}
n3
=
*
n
;
n3
=
*
n
;
n3
.
left
=
&
n1
;
n3
.
left
=
&
n1
;
...
...
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