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
d4ad8e8c
Commit
d4ad8e8c
authored
Feb 09, 2010
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in 6c/8c/5c mis-aligned
function arguments. R=rsc CC=golang-dev
https://golang.org/cl/206054
parent
2b4a9fa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
src/cmd/cc/com.c
src/cmd/cc/com.c
+17
-16
No files found.
src/cmd/cc/com.c
View file @
d4ad8e8c
...
...
@@ -801,7 +801,19 @@ tcoma(Node *l, Node *n, Type *t, int f)
n
->
type
,
t
,
l
);
return
1
;
}
switch
(
t
->
etype
)
{
// switch(t->etype) {
// case TCHAR:
// case TSHORT:
// t = types[TINT];
// break;
//
// case TUCHAR:
// case TUSHORT:
// t = types[TUINT];
// break;
// }
}
else
{
switch
(
n
->
type
->
etype
)
{
case
TCHAR
:
case
TSHORT
:
t
=
types
[
TINT
];
...
...
@@ -811,23 +823,12 @@ tcoma(Node *l, Node *n, Type *t, int f)
case
TUSHORT
:
t
=
types
[
TUINT
];
break
;
}
}
else
switch
(
n
->
type
->
etype
)
{
case
TCHAR
:
case
TSHORT
:
t
=
types
[
TINT
];
break
;
case
TUCHAR
:
case
TUSHORT
:
t
=
types
[
TUINT
];
break
;
case
TFLOAT
:
t
=
types
[
TDOUBLE
];
case
TFLOAT
:
t
=
types
[
TDOUBLE
];
}
}
if
(
t
!=
T
&&
!
sametype
(
t
,
n
->
type
))
{
n1
=
new1
(
OXXX
,
Z
,
Z
);
*
n1
=
*
n
;
...
...
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