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
494bcc80
Commit
494bcc80
authored
Feb 11, 2010
by
Kai Backman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop the 5c optimizer from clobbering extern static registers.
R=rsc, ken2 CC=golang-dev
https://golang.org/cl/204064
parent
22a7f2a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
reg.c
src/cmd/5c/reg.c
+6
-2
No files found.
src/cmd/5c/reg.c
View file @
494bcc80
...
...
@@ -79,6 +79,10 @@ regopt(Prog *p)
Reg
*
p
;
}
log5
[
6
],
*
lp
;
// TODO(kaib): optimizer disabled because it smashes R8 when running out of registers
// the disable is unconventionally here because the call is in common code shared by 5c/6c/8c
return
;
firstr
=
R
;
lastr
=
R
;
nvar
=
0
;
...
...
@@ -1147,7 +1151,7 @@ int32
RtoB
(
int
r
)
{
if
(
r
<
2
||
r
>=
REGTMP
)
if
(
r
<
2
||
r
>=
REGTMP
-
2
)
// excluded R9 and R10 for m and g
return
0
;
return
1L
<<
r
;
}
...
...
@@ -1155,7 +1159,7 @@ RtoB(int r)
int
BtoR
(
int32
b
)
{
b
&=
0x0
7fcL
;
b
&=
0x0
1fcL
;
// excluded R9 and R10 for m and g
if
(
b
==
0
)
return
0
;
return
bitno
(
b
);
...
...
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