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
9e481e29
Commit
9e481e29
authored
Mar 26, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spelling of align
R=rsc CC=golang-dev
https://golang.org/cl/778041
parent
dab40b58
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
src/cmd/5c/swt.c
src/cmd/5c/swt.c
+3
-3
src/cmd/6c/swt.c
src/cmd/6c/swt.c
+1
-1
src/cmd/8a/l.s
src/cmd/8a/l.s
+1
-1
src/cmd/8c/swt.c
src/cmd/8c/swt.c
+2
-2
src/cmd/cc/cc.h
src/cmd/cc/cc.h
+1
-1
src/cmd/cc/cc.y
src/cmd/cc/cc.y
+4
-4
src/cmd/cc/dcl.c
src/cmd/cc/dcl.c
+2
-2
No files found.
src/cmd/5c/swt.c
View file @
9e481e29
...
...
@@ -625,7 +625,7 @@ align(int32 i, Type *t, int op)
w
=
packflg
;
break
;
case
Ael1
:
/* initial al
l
ign of struct element */
case
Ael1
:
/* initial align of struct element */
for
(
v
=
t
;
v
->
etype
==
TARRAY
;
v
=
v
->
link
)
;
w
=
ewidth
[
v
->
etype
];
...
...
@@ -646,7 +646,7 @@ align(int32 i, Type *t, int op)
}
break
;
case
Aarg1
:
/* initial al
l
ign of parameter */
case
Aarg1
:
/* initial align of parameter */
w
=
ewidth
[
t
->
etype
];
if
(
w
<=
0
||
w
>=
SZ_LONG
)
{
w
=
SZ_LONG
;
...
...
@@ -660,7 +660,7 @@ align(int32 i, Type *t, int op)
w
=
SZ_LONG
;
break
;
case
Aaut3
:
/* total al
l
ign of automatic */
case
Aaut3
:
/* total align of automatic */
o
=
align
(
o
,
t
,
Ael2
);
o
=
align
(
o
,
t
,
Ael1
);
w
=
SZ_LONG
;
/* because of a pun in cc/dcl.c:contig() */
...
...
src/cmd/6c/swt.c
View file @
9e481e29
...
...
@@ -559,7 +559,7 @@ align(int32 i, Type *t, int op)
w
=
SZ_VLONG
;
break
;
case
Aaut3
:
/* total al
l
ign of automatic */
case
Aaut3
:
/* total align of automatic */
o
=
align
(
o
,
t
,
Ael1
);
o
=
align
(
o
,
t
,
Ael2
);
break
;
...
...
src/cmd/8a/l.s
View file @
9e481e29
...
...
@@ -251,7 +251,7 @@ TEXT mode32bit(SB),$0
*
16
meg
of
physical
memory
*/
LEAL
tpt
-
KZERO
(
SB
),
AX
/*
get
phys
addr
of
temporary
page
table
*/
ADDL
$
(
BY2PG
-
1
),
AX
/*
must
be
page
al
l
igned
*/
ADDL
$
(
BY2PG
-
1
),
AX
/*
must
be
page
aligned
*/
ANDL
$
(
~
(
BY2PG
-
1
)),
AX
/*
...
*/
MOVL
$
(
4
*
1024
),
CX
/*
pte
's per page */
MOVL
$
((((
4
*
1024
)-
1
)<<
PGSHIFT
)
|PTEVALID|PTEKERNEL
|
PTEWRITE
),
BX
...
...
src/cmd/8c/swt.c
View file @
9e481e29
...
...
@@ -520,7 +520,7 @@ align(int32 i, Type *t, int op)
w
=
packflg
;
break
;
case
Ael1
:
/* initial al
l
ign of struct element */
case
Ael1
:
/* initial align of struct element */
for
(
v
=
t
;
v
->
etype
==
TARRAY
;
v
=
v
->
link
)
;
w
=
ewidth
[
v
->
etype
];
...
...
@@ -557,7 +557,7 @@ align(int32 i, Type *t, int op)
w
=
SZ_LONG
;
break
;
case
Aaut3
:
/* total al
l
ign of automatic */
case
Aaut3
:
/* total align of automatic */
o
=
align
(
o
,
t
,
Ael1
);
o
=
align
(
o
,
t
,
Ael2
);
break
;
...
...
src/cmd/cc/cc.h
View file @
9e481e29
...
...
@@ -658,7 +658,7 @@ int rsametype(Type*, Type*, int, int);
int
sametype
(
Type
*
,
Type
*
);
uint32
sign
(
Sym
*
);
uint32
signature
(
Type
*
);
void
sual
l
ign
(
Type
*
);
void
sualign
(
Type
*
);
void
tmerge
(
Type
*
,
Sym
*
);
void
walkparam
(
Node
*
,
int
);
void
xdecl
(
int
,
Type
*
,
Sym
*
);
...
...
src/cmd/cc/cc.y
View file @
9e481e29
...
...
@@ -1034,7 +1034,7 @@ complex:
if($$->link != T)
diag(Z, "redeclare tag: %s", $2->name);
$$->link = $4;
sual
l
ign($$);
sualign($$);
}
| LSTRUCT sbody
{
...
...
@@ -1042,7 +1042,7 @@ complex:
sprint(symb, "_%d_", taggen);
$$ = dotag(lookup(), TSTRUCT, autobn);
$$->link = $2;
sual
l
ign($$);
sualign($$);
}
| LUNION ltag
{
...
...
@@ -1059,7 +1059,7 @@ complex:
if($$->link != T)
diag(Z, "redeclare tag: %s", $2->name);
$$->link = $4;
sual
l
ign($$);
sualign($$);
}
| LUNION sbody
{
...
...
@@ -1067,7 +1067,7 @@ complex:
sprint(symb, "_%d_", taggen);
$$ = dotag(lookup(), TUNION, autobn);
$$->link = $2;
sual
l
ign($$);
sualign($$);
}
| LENUM ltag
{
...
...
src/cmd/cc/dcl.c
View file @
9e481e29
...
...
@@ -549,7 +549,7 @@ newlist(Node *l, Node *r)
}
void
sual
l
ign
(
Type
*
t
)
sualign
(
Type
*
t
)
{
Type
*
l
;
int32
o
,
w
;
...
...
@@ -611,7 +611,7 @@ suallign(Type *t)
return
;
default:
diag
(
Z
,
"unknown type in sual
l
ign: %T"
,
t
);
diag
(
Z
,
"unknown type in sualign: %T"
,
t
);
break
;
}
}
...
...
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