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
b41310e2
Commit
b41310e2
authored
Sep 23, 2008
by
Steve Ellcey
Committed by
Steve Ellcey
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regrename.c (do_replace): Copy REG_POINTER value to new reg.
From-SVN: r140616
parent
8569b2d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
gcc/ChangeLog
+4
-0
gcc/regrename.c
+2
-0
No files found.
gcc/ChangeLog
View file @
b41310e2
2008
-
08
-
23
Steve
Ellcey
<
sje
@cup
.
hp
.
com
>
*
regrename
.
c
(
do_replace
)
:
Copy
REG_POINTER
value
to
new
reg
.
2008
-
09
-
23
Richard
Sandiford
<
rdsandiford
@googlemail
.
com
>
*
alias
.
c
(
find_base_value
)
:
Use
FIND_BASE_TERM
.
...
...
gcc/regrename.c
View file @
b41310e2
...
...
@@ -357,11 +357,13 @@ do_replace (struct du_chain *chain, int reg)
{
unsigned
int
regno
=
ORIGINAL_REGNO
(
*
chain
->
loc
);
struct
reg_attrs
*
attr
=
REG_ATTRS
(
*
chain
->
loc
);
int
reg_ptr
=
REG_POINTER
(
*
chain
->
loc
);
*
chain
->
loc
=
gen_raw_REG
(
GET_MODE
(
*
chain
->
loc
),
reg
);
if
(
regno
>=
FIRST_PSEUDO_REGISTER
)
ORIGINAL_REGNO
(
*
chain
->
loc
)
=
regno
;
REG_ATTRS
(
*
chain
->
loc
)
=
attr
;
REG_POINTER
(
*
chain
->
loc
)
=
reg_ptr
;
df_insn_rescan
(
chain
->
insn
);
chain
=
chain
->
next_use
;
}
...
...
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