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
59e2c378
Commit
59e2c378
authored
Aug 07, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(eliminate_regs, case SUBREG): Add USE of pseudo so we don't
improperly delete an output reload. From-SVN: r7869
parent
486d8509
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
gcc/reload1.c
+10
-1
No files found.
gcc/reload1.c
View file @
59e2c378
...
@@ -2886,11 +2886,20 @@ eliminate_regs (x, mem_mode, insn)
...
@@ -2886,11 +2886,20 @@ eliminate_regs (x, mem_mode, insn)
/* If we didn't change anything, we must retain the pseudo. */
/* If we didn't change anything, we must retain the pseudo. */
if
(
new
==
reg_equiv_memory_loc
[
REGNO
(
SUBREG_REG
(
x
))])
if
(
new
==
reg_equiv_memory_loc
[
REGNO
(
SUBREG_REG
(
x
))])
new
=
XEXP
(
x
,
0
);
new
=
SUBREG_REG
(
x
);
else
else
{
/* Otherwise, ensure NEW isn't shared in case we have to reload
/* Otherwise, ensure NEW isn't shared in case we have to reload
it. */
it. */
new
=
copy_rtx
(
new
);
new
=
copy_rtx
(
new
);
/* In this case, we must show that the pseudo is used in this
insn so that delete_output_reload will do the right thing. */
if
(
insn
!=
0
&&
GET_CODE
(
insn
)
!=
EXPR_LIST
&&
GET_CODE
(
insn
)
!=
INSN_LIST
)
emit_insn_before
(
gen_rtx
(
USE
,
VOIDmode
,
SUBREG_REG
(
x
)),
insn
);
}
}
}
else
else
new
=
eliminate_regs
(
SUBREG_REG
(
x
),
mem_mode
,
insn
);
new
=
eliminate_regs
(
SUBREG_REG
(
x
),
mem_mode
,
insn
);
...
...
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