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
e16c591a
Commit
e16c591a
authored
May 15, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r985
parent
611314a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
gcc/function.c
+19
-0
No files found.
gcc/function.c
View file @
e16c591a
...
...
@@ -2710,6 +2710,21 @@ assign_parms (fndecl, second_time)
if
(
second_time
)
continue
;
/* If we can't trust the parm stack slot to be aligned enough
for its ultimate type, don't use that slot after entry.
We'll make another stack slot, if we need one. */
{
#ifdef FUNCTION_ARG_BOUNDARY
int
thisparm_boundary
=
FUNCTION_ARG_BOUNDARY
(
passed_mode
,
passed_type
);
#else
int
thisparm_boundary
=
PARM_BOUNDARY
;
#endif
if
(
GET_MODE_ALIGNMENT
(
nominal_mode
)
>
thisparm_boundary
)
stack_parm
=
0
;
}
/* Now adjust STACK_PARM to the mode and precise location
where this parameter should live during execution,
if we discover that it must live in the stack during execution.
...
...
@@ -2856,6 +2871,7 @@ assign_parms (fndecl, second_time)
as we make here would screw up life analysis for it. */
if
(
nominal_mode
==
passed_mode
&&
GET_CODE
(
entry_parm
)
==
MEM
&&
entry_parm
==
stack_parm
&&
stack_offset
.
var
==
0
&&
reg_mentioned_p
(
virtual_incoming_args_rtx
,
XEXP
(
entry_parm
,
0
)))
...
...
@@ -3088,6 +3104,9 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
#endif
/* ARGS_GROW_DOWNWARD */
}
/* Round the stack offset in *OFFSET_PTR up to a multiple of BOUNDARY.
BOUNDARY is measured in bits, but must be a multiple of a storage unit. */
static
void
pad_to_arg_alignment
(
offset_ptr
,
boundary
)
struct
args_size
*
offset_ptr
;
...
...
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