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
cd1db108
Commit
cd1db108
authored
Jun 26, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_assignment): If FROM is scalar function call,
expand_expr FROM before TO. From-SVN: r4759
parent
fff26804
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
gcc/expr.c
+16
-0
No files found.
gcc/expr.c
View file @
cd1db108
...
@@ -2205,6 +2205,22 @@ expand_assignment (to, from, want_value, suggest_reg)
...
@@ -2205,6 +2205,22 @@ expand_assignment (to, from, want_value, suggest_reg)
:
result
);
:
result
);
}
}
/* If the rhs is a function call and its value is not an aggregate,
call the function before we start to compute the lhs.
This is needed for correct code for cases such as
val = setjmp (buf) on machines where reference to val
requires loading up part of an address in a separate insn. */
if
(
TREE_CODE
(
from
)
==
CALL_EXPR
&&
!
aggregate_value_p
(
from
))
{
rtx
value
=
expand_expr
(
from
,
NULL_RTX
,
VOIDmode
,
0
);
if
(
to_rtx
==
0
)
to_rtx
=
expand_expr
(
to
,
NULL_RTX
,
VOIDmode
,
0
);
emit_move_insn
(
to_rtx
,
value
);
preserve_temp_slots
(
to_rtx
);
free_temp_slots
();
return
to_rtx
;
}
/* Ordinary treatment. Expand TO to get a REG or MEM rtx.
/* Ordinary treatment. Expand TO to get a REG or MEM rtx.
Don't re-expand if it was expanded already (in COMPONENT_REF case). */
Don't re-expand if it was expanded already (in COMPONENT_REF case). */
...
...
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