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
9175051c
Commit
9175051c
authored
30 years ago
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_inline_function): Don't fall down trying to
pass things by invisible reference. From-SVN: r7842
parent
02cc38b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
gcc/integrate.c
+6
-1
No files found.
gcc/integrate.c
View file @
9175051c
...
...
@@ -1235,6 +1235,7 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
tree
arg
=
convert
(
TREE_TYPE
(
formal
),
TREE_VALUE
(
actual
));
/* Mode of the variable used within the function. */
enum
machine_mode
mode
=
TYPE_MODE
(
TREE_TYPE
(
formal
));
int
invisiref
=
0
;
/* Make sure this formal has some correspondence in the users code
* before emitting any line notes for it. */
...
...
@@ -1263,6 +1264,7 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
store_expr
(
arg
,
stack_slot
,
0
);
arg_vals
[
i
]
=
XEXP
(
stack_slot
,
0
);
invisiref
=
1
;
}
else
if
(
GET_CODE
(
loc
)
!=
MEM
)
{
...
...
@@ -1288,8 +1290,11 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
be two different pseudos, and `safe_from_p' will make all
sorts of smart assumptions about their not conflicting.
But if ARG_VALS[I] overlaps TARGET, these assumptions are
wrong, so put ARG_VALS[I] into a fresh register. */
wrong, so put ARG_VALS[I] into a fresh register.
Don't worry about invisible references, since their stack
temps will never overlap the target. */
||
(
target
!=
0
&&
!
invisiref
&&
(
GET_CODE
(
arg_vals
[
i
])
==
REG
||
GET_CODE
(
arg_vals
[
i
])
==
SUBREG
||
GET_CODE
(
arg_vals
[
i
])
==
MEM
)
...
...
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