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
6491dbbb
Commit
6491dbbb
authored
Jun 26, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reload): Use reg_equiv_address for invalid addresses
of the form (mem (reg)). From-SVN: r4761
parent
73ebbfdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/reload1.c
+4
-1
No files found.
gcc/reload1.c
View file @
6491dbbb
...
@@ -819,7 +819,8 @@ reload (first, global, dumpfile)
...
@@ -819,7 +819,8 @@ reload (first, global, dumpfile)
and constant, it is probably not addressable because the constant is
and constant, it is probably not addressable because the constant is
out of range, in that case record the address; we will generate
out of range, in that case record the address; we will generate
hairy code to compute the address in a register each time it is
hairy code to compute the address in a register each time it is
needed.
needed. Similarly if it is a hard register, but one that is not
valid as an address register.
If the location is not addressable, but does not have one of the
If the location is not addressable, but does not have one of the
above forms, assign a stack slot. We have to do this to avoid the
above forms, assign a stack slot. We have to do this to avoid the
...
@@ -839,6 +840,8 @@ reload (first, global, dumpfile)
...
@@ -839,6 +840,8 @@ reload (first, global, dumpfile)
XEXP
(
x
,
0
)))
XEXP
(
x
,
0
)))
reg_equiv_mem
[
i
]
=
x
,
reg_equiv_address
[
i
]
=
0
;
reg_equiv_mem
[
i
]
=
x
,
reg_equiv_address
[
i
]
=
0
;
else
if
(
CONSTANT_P
(
XEXP
(
x
,
0
))
else
if
(
CONSTANT_P
(
XEXP
(
x
,
0
))
||
(
GET_CODE
(
XEXP
(
x
,
0
))
==
REG
&&
REGNO
(
XEXP
(
x
,
0
))
<
FIRST_PSEUDO_REGISTER
)
||
(
GET_CODE
(
XEXP
(
x
,
0
))
==
PLUS
||
(
GET_CODE
(
XEXP
(
x
,
0
))
==
PLUS
&&
GET_CODE
(
XEXP
(
XEXP
(
x
,
0
),
0
))
==
REG
&&
GET_CODE
(
XEXP
(
XEXP
(
x
,
0
),
0
))
==
REG
&&
(
REGNO
(
XEXP
(
XEXP
(
x
,
0
),
0
))
&&
(
REGNO
(
XEXP
(
XEXP
(
x
,
0
),
0
))
...
...
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