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
45f4e385
Commit
45f4e385
authored
Oct 03, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silence gcc warnings
R=ken OCL=16449 CL=16466
parent
b8babed7
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
21 deletions
+13
-21
src/cmd/6g/gen.c
src/cmd/6g/gen.c
+3
-7
src/cmd/6g/gg.h
src/cmd/6g/gg.h
+1
-0
src/cmd/6g/gsubr.c
src/cmd/6g/gsubr.c
+1
-1
src/cmd/6g/list.c
src/cmd/6g/list.c
+3
-3
src/cmd/6g/obj.c
src/cmd/6g/obj.c
+1
-0
src/cmd/gc/const.c
src/cmd/gc/const.c
+0
-1
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+1
-4
src/cmd/gc/go.h
src/cmd/gc/go.h
+2
-0
src/cmd/gc/lex.c
src/cmd/gc/lex.c
+0
-1
src/cmd/gc/mparith2.c
src/cmd/gc/mparith2.c
+1
-1
src/cmd/gc/subr.c
src/cmd/gc/subr.c
+0
-3
No files found.
src/cmd/6g/gen.c
View file @
45f4e385
...
...
@@ -117,8 +117,6 @@ void
allocparams
(
void
)
{
Dcl
*
d
;
Iter
list
;
Type
*
t
;
Node
*
n
;
uint32
w
;
...
...
@@ -153,7 +151,6 @@ gen(Node *n, Label *labloop)
int32
lno
;
Prog
*
scontin
,
*
sbreak
;
Prog
*
p1
,
*
p2
,
*
p3
;
Sym
*
s
;
Node
*
l
;
Label
*
lab
;
...
...
@@ -723,7 +720,7 @@ void
cgen_call
(
Node
*
n
,
int
proc
)
{
Type
*
t
;
Node
nod
,
afun
,
regax
;
Node
nod
,
afun
;
if
(
n
==
N
)
return
;
...
...
@@ -823,7 +820,7 @@ cgen_callret(Node *n, Node *res)
void
cgen_aret
(
Node
*
n
,
Node
*
res
)
{
Node
nod1
,
nod2
;
Node
nod1
;
Type
*
fp
,
*
t
;
Iter
flist
;
...
...
@@ -858,7 +855,6 @@ cgen_asop(Node *n)
{
Node
n1
,
n2
,
n3
,
n4
;
Node
*
nl
,
*
nr
;
int32
lno
;
nl
=
n
->
left
;
nr
=
n
->
right
;
...
...
@@ -1069,7 +1065,7 @@ void
cgen_div
(
int
op
,
Node
*
nl
,
Node
*
nr
,
Node
*
res
)
{
Node
ax
,
dx
,
n3
,
tmpax
,
tmpdx
;
int
a
,
rax
,
rdx
;
int
rax
,
rdx
;
rax
=
reg
[
D_AX
];
rdx
=
reg
[
D_DX
];
...
...
src/cmd/6g/gg.h
View file @
45f4e385
...
...
@@ -159,6 +159,7 @@ void gmove(Node*, Node*);
Prog
*
gins
(
int
,
Node
*
,
Node
*
);
int
samaddr
(
Node
*
,
Node
*
);
void
naddr
(
Node
*
,
Addr
*
);
void
cgen_aret
(
Node
*
,
Node
*
);
/*
* gsubr.c
...
...
src/cmd/6g/gsubr.c
View file @
45f4e385
...
...
@@ -836,7 +836,7 @@ nodconst(&nodc, types[TUINT64], 1);
if
(
a
==
AMOVQ
||
a
==
AMOVSD
||
a
==
AMOVSS
||
a
==
AMOVL
&&
f
->
type
->
width
==
t
->
type
->
width
)
/* TO DO: check AMOVL */
(
a
==
AMOVL
&&
f
->
type
->
width
==
t
->
type
->
width
)
)
/* TO DO: check AMOVL */
if
(
samaddr
(
f
,
t
))
return
;
gins
(
a
,
f
,
t
);
...
...
src/cmd/6g/list.c
View file @
45f4e385
...
...
@@ -316,9 +316,9 @@ Yconv(Fmt *fp)
p
=
str
;
for
(
i
=
0
;
i
<
sconsize
;
i
++
)
{
c
=
a
[
i
]
&
0xff
;
if
(
c
>=
'a'
&&
c
<=
'z'
||
c
>=
'A'
&&
c
<=
'Z'
||
c
>=
'0'
&&
c
<=
'9'
)
{
if
(
(
c
>=
'a'
&&
c
<=
'z'
)
||
(
c
>=
'A'
&&
c
<=
'Z'
)
||
(
c
>=
'0'
&&
c
<=
'9'
)
)
{
*
p
++
=
c
;
continue
;
}
...
...
src/cmd/6g/obj.c
View file @
45f4e385
...
...
@@ -163,6 +163,7 @@ dumpobj(void)
Bterm
(
bout
);
}
void
Bputdot
(
Biobuf
*
b
)
{
// put out middle dot ·
...
...
src/cmd/gc/const.c
View file @
45f4e385
...
...
@@ -9,7 +9,6 @@ void
convlit
(
Node
*
n
,
Type
*
t
)
{
int
et
;
Node
*
n1
;
if
(
n
==
N
||
t
==
T
)
return
;
...
...
src/cmd/gc/dcl.c
View file @
45f4e385
...
...
@@ -640,8 +640,6 @@ addvar(Node *n, Type *t, int ctxt)
{
Dcl
*
r
,
*
d
;
Sym
*
s
;
Type
*
ot
;
Node
*
on
;
int
gen
;
if
(
n
==
N
||
n
->
sym
==
S
||
n
->
op
!=
ONAME
||
t
==
T
)
...
...
@@ -965,9 +963,8 @@ mixed:
void
fninit
(
Node
*
n
)
{
Node
*
done
,
*
any
;
Node
*
done
;
Node
*
a
,
*
fn
,
*
r
;
Iter
iter
;
uint32
h
;
Sym
*
s
;
...
...
src/cmd/gc/go.h
View file @
45f4e385
...
...
@@ -591,6 +591,8 @@ Type* ptrto(Type*);
Node
*
cleanidlist
(
Node
*
);
Node
*
syslook
(
char
*
,
int
);
Node
*
treecopy
(
Node
*
);
int
isselect
(
Node
*
);
void
tempname
(
Node
*
,
Type
*
);
Type
**
getthis
(
Type
*
);
Type
**
getoutarg
(
Type
*
);
...
...
src/cmd/gc/lex.c
View file @
45f4e385
...
...
@@ -200,7 +200,6 @@ importfile(Val *f)
Biobuf
*
imp
;
char
*
file
;
int32
c
;
char
*
p
;
int
len
;
if
(
f
->
ctype
!=
CTSTR
)
{
...
...
src/cmd/gc/mparith2.c
View file @
45f4e385
...
...
@@ -484,7 +484,7 @@ mpmovecfix(Mpint *a, vlong c)
void
mpdivmodfixfix
(
Mpint
*
q
,
Mpint
*
r
,
Mpint
*
n
,
Mpint
*
d
)
{
int
i
,
nn
,
dn
;
int
i
;
mpmovefixfix
(
r
,
n
);
mpmovecfix
(
q
,
0
);
...
...
src/cmd/gc/subr.c
View file @
45f4e385
...
...
@@ -780,7 +780,6 @@ Lconv(Fmt *fp)
if
(
n
==
0
)
strcat
(
str
,
"<epoch>"
);
ret:
return
fmtstrcpy
(
fp
,
str
);
}
...
...
@@ -1458,8 +1457,6 @@ signame(Type *t)
{
Sym
*
s
,
*
ss
;
char
*
e
;
Type
*
t1
;
int
n
;
char
buf
[
NSYMB
];
if
(
t
==
T
)
...
...
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