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
aff2c2d3
Commit
aff2c2d3
authored
Sep 15, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Sep 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid copying libcall results directly to user variables.
From-SVN: r36433
parent
4eaa189a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
gcc/ChangeLog
+5
-0
gcc/optabs.c
+8
-0
No files found.
gcc/ChangeLog
View file @
aff2c2d3
2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
* optabs.c (emit_libcall_block): If target is a user variable,
copy to a temporary first.
2000-09-15 Richard Henderson <rth@cygnus.com>
* expmed.c (store_bit_field): Consider naturally aligned
...
...
gcc/optabs.c
View file @
aff2c2d3
...
...
@@ -2756,8 +2756,14 @@ emit_libcall_block (insns, target, result, equiv)
rtx
result
;
rtx
equiv
;
{
rtx
final_dest
=
target
;
rtx
prev
,
next
,
first
,
last
,
insn
;
/* If this is a reg with REG_USERVAR_P set, then it could possibly turn
into a MEM later. Protect the libcall block from this change. */
if
(
!
REG_P
(
target
)
||
REG_USERVAR_P
(
target
))
target
=
gen_reg_rtx
(
GET_MODE
(
target
));
/* look for any CALL_INSNs in this sequence, and attach a REG_EH_REGION
reg note to indicate that this call cannot throw or execute a nonlocal
goto. (Unless there is already a REG_EH_REGION note, in which case
...
...
@@ -2833,6 +2839,8 @@ emit_libcall_block (insns, target, result, equiv)
remove_note
(
last
,
find_reg_note
(
last
,
REG_EQUAL
,
NULL_RTX
));
}
emit_move_insn
(
final_dest
,
target
);
if
(
prev
==
0
)
first
=
get_insns
();
else
...
...
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