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
2d310a00
Commit
2d310a00
authored
May 16, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5c, 5g: another attempt at silencing gcc
R=ken2 CC=golang-dev
https://golang.org/cl/4535074
parent
40745a57
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
gc.h
src/cmd/5c/gc.h
+2
-2
peep.c
src/cmd/5c/peep.c
+2
-2
gg.h
src/cmd/5g/gg.h
+2
-2
peep.c
src/cmd/5g/peep.c
+2
-2
No files found.
src/cmd/5c/gc.h
View file @
2d310a00
...
...
@@ -69,7 +69,7 @@ struct Adr
Sym
*
sym
;
char
type
;
char
reg
;
u
char
reg
;
char
name
;
char
etype
;
};
...
...
@@ -83,7 +83,7 @@ struct Prog
Prog
*
link
;
int32
lineno
;
char
as
;
char
reg
;
u
char
reg
;
uchar
scond
;
};
#define P ((Prog*)0)
...
...
src/cmd/5c/peep.c
View file @
2d310a00
...
...
@@ -1100,7 +1100,7 @@ copyu(Prog *p, Adr *v, Adr *s)
if
(
v
->
type
==
D_REG
)
{
if
(
v
->
reg
<=
REGEXT
&&
v
->
reg
>
exregoffset
)
return
2
;
if
(
v
->
reg
==
REGARG
)
if
(
v
->
reg
==
(
uchar
)
REGARG
)
return
2
;
}
if
(
v
->
type
==
D_FREG
)
...
...
@@ -1118,7 +1118,7 @@ copyu(Prog *p, Adr *v, Adr *s)
case
ATEXT
:
/* funny */
if
(
v
->
type
==
D_REG
)
if
(
v
->
reg
==
REGARG
)
if
(
v
->
reg
==
(
uchar
)
REGARG
)
return
3
;
return
0
;
}
...
...
src/cmd/5g/gg.h
View file @
2d310a00
...
...
@@ -26,7 +26,7 @@ struct Addr
int
width
;
uchar
type
;
char
name
;
char
reg
;
u
char
reg
;
char
pun
;
uchar
etype
;
};
...
...
@@ -41,7 +41,7 @@ struct Prog
Addr
to
;
// dst address
Prog
*
link
;
// next instruction in this func
void
*
regp
;
// points to enclosing Reg struct
char
reg
;
// doubles as width in DATA op
u
char
reg
;
// doubles as width in DATA op
uchar
scond
;
};
...
...
src/cmd/5g/peep.c
View file @
2d310a00
...
...
@@ -1134,7 +1134,7 @@ copyu(Prog *p, Adr *v, Adr *s)
if
(
v
->
type
==
D_REG
)
{
if
(
v
->
reg
<=
REGEXT
&&
v
->
reg
>
exregoffset
)
return
2
;
if
(
v
->
reg
==
REGARG
)
if
(
v
->
reg
==
(
uchar
)
REGARG
)
return
2
;
}
if
(
v
->
type
==
D_FREG
)
...
...
@@ -1152,7 +1152,7 @@ copyu(Prog *p, Adr *v, Adr *s)
case
ATEXT
:
/* funny */
if
(
v
->
type
==
D_REG
)
if
(
v
->
reg
==
REGARG
)
if
(
v
->
reg
==
(
uchar
)
REGARG
)
return
3
;
return
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