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
518e5ce8
Commit
518e5ce8
authored
31 years ago
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mips_expand_prologue): Handle structure return values as
the first argument if necessary. From-SVN: r5619
parent
b206a757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gcc/config/mips/mips.c
+12
-0
No files found.
gcc/config/mips/mips.c
View file @
518e5ce8
...
...
@@ -4313,6 +4313,18 @@ mips_expand_prologue ()
tree
cur_arg
;
CUMULATIVE_ARGS
args_so_far
;
/* If struct value address is treated as the first argument, make it so. */
if
(
aggregate_value_p
(
DECL_RESULT
(
fndecl
))
&&
!
current_function_returns_pcc_struct
&&
struct_value_incoming_rtx
==
0
)
{
tree
type
=
build_pointer_type
(
fntype
);
tree
function_result_decl
=
build_decl
(
PARM_DECL
,
NULL_TREE
,
type
);
DECL_ARG_TYPE
(
function_result_decl
)
=
type
;
TREE_CHAIN
(
function_result_decl
)
=
fnargs
;
fnargs
=
function_result_decl
;
}
/* Determine the last argument, and get its name. */
INIT_CUMULATIVE_ARGS
(
args_so_far
,
fntype
,
(
rtx
)
0
);
...
...
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