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
9d790a4f
Commit
9d790a4f
authored
Oct 09, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(aggregate_value_p): Return 1 if regs we would use are not all call-clobbered.
From-SVN: r2384
parent
6ed1d6c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
gcc/function.c
+10
-0
No files found.
gcc/function.c
View file @
9d790a4f
...
@@ -2543,6 +2543,8 @@ int
...
@@ -2543,6 +2543,8 @@ int
aggregate_value_p
(
exp
)
aggregate_value_p
(
exp
)
tree
exp
;
tree
exp
;
{
{
int
i
,
regno
,
nregs
;
rtx
reg
;
if
(
TYPE_MODE
(
TREE_TYPE
(
exp
))
==
BLKmode
)
if
(
TYPE_MODE
(
TREE_TYPE
(
exp
))
==
BLKmode
)
return
1
;
return
1
;
if
(
RETURN_IN_MEMORY
(
TREE_TYPE
(
exp
)))
if
(
RETURN_IN_MEMORY
(
TREE_TYPE
(
exp
)))
...
@@ -2551,6 +2553,14 @@ aggregate_value_p (exp)
...
@@ -2551,6 +2553,14 @@ aggregate_value_p (exp)
&&
(
TREE_CODE
(
TREE_TYPE
(
exp
))
==
RECORD_TYPE
&&
(
TREE_CODE
(
TREE_TYPE
(
exp
))
==
RECORD_TYPE
||
TREE_CODE
(
TREE_TYPE
(
exp
))
==
UNION_TYPE
))
||
TREE_CODE
(
TREE_TYPE
(
exp
))
==
UNION_TYPE
))
return
1
;
return
1
;
/* Make sure we have suitable call-clobbered regs to return
the value in; if not, we must return it in memory. */
reg
=
hard_function_value
(
TREE_TYPE
(
exp
),
0
);
regno
=
REGNO
(
reg
);
nregs
=
HARD_REGNO_NREGS
(
regno
,
TYPE_MODE
(
TREE_TYPE
(
exp
)));
for
(
i
=
0
;
i
<
nregs
;
i
++
)
if
(
!
call_used_regs
[
regno
+
i
])
return
1
;
return
0
;
return
0
;
}
}
...
...
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