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
efbde2a2
Commit
efbde2a2
authored
Sep 29, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(i960_setup_incoming_varargs): Store parameter registers
at proper offset in argument block. From-SVN: r8168
parent
7a9a00be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
gcc/config/i960/i960.c
+10
-5
No files found.
gcc/config/i960/i960.c
View file @
efbde2a2
...
...
@@ -2190,6 +2190,8 @@ i960_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl)
if
(
!
(
no_rtl
)
&&
first_reg_offset
!=
NPARM_REGS
)
{
rtx
label
=
gen_label_rtx
();
rtx
regblock
;
emit_insn
(
gen_cmpsi
(
arg_pointer_rtx
,
const0_rtx
));
emit_jump_insn
(
gen_bne
(
label
));
emit_insn
(
gen_rtx
(
SET
,
VOIDmode
,
arg_pointer_rtx
,
...
...
@@ -2199,11 +2201,14 @@ i960_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl)
plus_constant
(
stack_pointer_rtx
,
48
))));
emit_label
(
label
);
move_block_from_reg
(
first_reg_offset
,
gen_rtx
(
MEM
,
BLKmode
,
virtual_incoming_args_rtx
),
NPARM_REGS
-
first_reg_offset
,
(
NPARM_REGS
-
first_reg_offset
)
*
UNITS_PER_WORD
);
regblock
=
gen_rtx
(
MEM
,
BLKmode
,
plus_constant
(
arg_pointer_rtx
,
first_reg_offset
*
4
));
move_block_from_reg
(
first_reg_offset
,
regblock
,
NPARM_REGS
-
first_reg_offset
,
((
NPARM_REGS
-
first_reg_offset
)
*
UNITS_PER_WORD
));
}
*
pretend_size
=
(
NPARM_REGS
-
first_reg_offset
)
*
UNITS_PER_WORD
;
}
...
...
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