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
3eb8f14c
Commit
3eb8f14c
authored
Dec 21, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(replace_regs, case REG): Return copies of SUBREGs, to
avoid invalid sharing. From-SVN: r6253
parent
77541d4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
gcc/rtlanal.c
+8
-1
No files found.
gcc/rtlanal.c
View file @
3eb8f14c
...
...
@@ -1662,7 +1662,14 @@ replace_regs (x, reg_map, nregs, replace_dest)
case
REG
:
/* Verify that the register has an entry before trying to access it. */
if
(
REGNO
(
x
)
<
nregs
&&
reg_map
[
REGNO
(
x
)]
!=
0
)
return
reg_map
[
REGNO
(
x
)];
{
/* SUBREGs can't be shared. Always return a copy to ensure that if
this replacement occurs more than once then each instance will
get distinct rtx. */
if
(
GET_CODE
(
reg_map
[
REGNO
(
x
)])
==
SUBREG
)
return
copy_rtx
(
reg_map
[
REGNO
(
x
)]);
return
reg_map
[
REGNO
(
x
)];
}
return
x
;
case
SUBREG
:
...
...
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