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
d4b0a7a0
Commit
d4b0a7a0
authored
30 years ago
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(locate_and_pad_parm): Do padding before rounding
so pad_below knows how much is needed. From-SVN: r8622
parent
b0c312a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
gcc/function.c
+5
-4
No files found.
gcc/function.c
View file @
d4b0a7a0
...
...
@@ -4015,15 +4015,16 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
sizetree
=
size_int
(
PUSH_ROUNDING
(
TREE_INT_CST_LOW
(
sizetree
)));
#endif
/* Pad_below needs the pre-rounded size to know how much to pad below
so this must be done before rounding up. */
if
(
where_pad
==
downward
)
pad_below
(
offset_ptr
,
passed_mode
,
sizetree
);
if
(
where_pad
!=
none
&&
(
TREE_CODE
(
sizetree
)
!=
INTEGER_CST
||
((
TREE_INT_CST_LOW
(
sizetree
)
*
BITS_PER_UNIT
)
%
PARM_BOUNDARY
)))
sizetree
=
round_up
(
sizetree
,
PARM_BOUNDARY
/
BITS_PER_UNIT
);
/* This must be done after rounding sizetree, so that it will subtract
the same value that we explicitly add below. */
if
(
where_pad
==
downward
)
pad_below
(
offset_ptr
,
passed_mode
,
sizetree
);
ADD_PARM_SIZE
(
*
arg_size_ptr
,
sizetree
);
#endif
/* ARGS_GROW_DOWNWARD */
}
...
...
This diff is collapsed.
Click to expand it.
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