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
54c40e68
Commit
54c40e68
authored
Oct 20, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reload): Cope when inherited register is larger than one word.
(choose_reload_regs): Ditto. From-SVN: r5820
parent
14aceb29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
gcc/reload1.c
+8
-3
No files found.
gcc/reload1.c
View file @
54c40e68
...
...
@@ -4971,6 +4971,7 @@ choose_reload_regs (insn, avoid_return_reg)
reload_override_in
[
r
]
=
reg_last_reload_reg
[
regno
];
else
{
int
k
;
/* We can use this as a reload reg. */
/* Mark the register as in use for this part of
the insn. */
...
...
@@ -4983,8 +4984,9 @@ choose_reload_regs (insn, avoid_return_reg)
reload_inheritance_insn
[
r
]
=
reg_reloaded_insn
[
i
];
reload_spill_index
[
r
]
=
i
;
SET_HARD_REG_BIT
(
reload_reg_used_for_inherit
,
spill_regs
[
i
]);
for
(
k
=
0
;
k
<
nr
;
k
++
)
SET_HARD_REG_BIT
(
reload_reg_used_for_inherit
,
spill_regs
[
i
+
k
]);
}
}
}
...
...
@@ -5073,10 +5075,13 @@ choose_reload_regs (insn, avoid_return_reg)
i
=
spill_reg_order
[
regno
];
if
(
i
>=
0
)
{
int
nr
=
HARD_REGNO_NREGS
(
regno
,
reload_mode
[
r
]);
int
k
;
mark_reload_reg_in_use
(
regno
,
reload_opnum
[
r
],
reload_when_needed
[
r
],
reload_mode
[
r
]);
SET_HARD_REG_BIT
(
reload_reg_used_for_inherit
,
regno
);
for
(
k
=
0
;
k
<
nr
;
k
++
)
SET_HARD_REG_BIT
(
reload_reg_used_for_inherit
,
regno
+
k
);
}
}
}
...
...
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