Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
3d5c883b
Commit
3d5c883b
authored
Aug 09, 1996
by
Stan Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_stdcall_suffix): Round parameter size up to
PARM_BOUNDARY. From-SVN: r12608
parent
a1a478c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
gcc/config/i386/winnt.c
+12
-6
No files found.
gcc/config/i386/winnt.c
View file @
3d5c883b
...
...
@@ -44,13 +44,19 @@ gen_stdcall_suffix (decl)
if
(
TREE_VALUE
(
tree_last
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
decl
))))
==
void_type_node
)
{
tree
formal_type
=
TYPE_ARG_TYPES
(
TREE_TYPE
(
decl
));
tree
formal_type
=
TYPE_ARG_TYPES
(
TREE_TYPE
(
decl
));
while
(
TREE_VALUE
(
formal_type
)
!=
void_type_node
)
{
total
+=
TREE_INT_CST_LOW
(
TYPE_SIZE
(
TREE_VALUE
(
formal_type
)));
formal_type
=
TREE_CHAIN
(
formal_type
);
}
while
(
TREE_VALUE
(
formal_type
)
!=
void_type_node
)
{
int
parm_size
=
TREE_INT_CST_LOW
(
TYPE_SIZE
(
TREE_VALUE
(
formal_type
)));
/* Must round up to include padding. This is done the same
way as in store_one_arg. */
parm_size
=
((
parm_size
+
PARM_BOUNDARY
-
1
)
/
PARM_BOUNDARY
*
PARM_BOUNDARY
);
total
+=
parm_size
;
formal_type
=
TREE_CHAIN
(
formal_type
);
}
}
newsym
=
xmalloc
(
strlen
(
asmname
)
+
10
);
...
...
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