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
ca029d34
Commit
ca029d34
authored
Jun 27, 2008
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another both sides functions
SVN=125230
parent
57d80398
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
src/cmd/6g/cgen.c
src/cmd/6g/cgen.c
+5
-3
src/cmd/6g/gen.c
src/cmd/6g/gen.c
+6
-4
No files found.
src/cmd/6g/cgen.c
View file @
ca029d34
...
...
@@ -29,8 +29,10 @@ cgen(Node *n, Node *res)
if
(
n
->
op
==
OINDREG
)
fatal
(
"cgen: this is going to misscompile"
);
if
(
res
->
ullman
>=
UINF
)
{
dump
(
"fncalls"
,
n
);
fatal
(
"cgen: node and result functions"
);
tempname
(
&
n1
,
n
->
type
);
cgen
(
n
,
&
n1
);
cgen
(
&
n1
,
res
);
goto
ret
;
}
}
...
...
@@ -45,7 +47,7 @@ cgen(Node *n, Node *res)
cgen
(
n
,
&
n1
);
cgen
(
&
n1
,
res
);
regfree
(
&
n1
);
return
;
goto
ret
;
}
igen
(
res
,
&
n1
,
N
);
...
...
src/cmd/6g/gen.c
View file @
ca029d34
...
...
@@ -746,7 +746,12 @@ cgen_asop(Node *n)
nr
=
n
->
right
;
if
(
nr
->
ullman
>=
UINF
&&
nl
->
ullman
>=
UINF
)
{
fatal
(
"cgen_asop: both sides call"
);
tempname
(
&
n1
,
nr
->
type
);
cgen
(
nr
,
&
n1
);
n2
=
*
n
;
n2
.
right
=
&
n1
;
cgen_asop
(
&
n2
);
return
;
}
if
(
nr
->
ullman
>
nl
->
ullman
)
{
...
...
@@ -881,9 +886,6 @@ cgen_as(Node *nl, Node *nr, int op)
ullmancalc
(
nr
);
}
if
(
nr
->
ullman
>=
UINF
&&
nl
->
ullman
>=
UINF
)
{
fatal
(
"cgen_as both sides call"
);
}
cgen
(
nr
,
nl
);
ret:
...
...
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