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
8b4f9969
Commit
8b4f9969
authored
Jan 24, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(used_spill_regs): New variable.
(reload): Set it. From-SVN: r11092
parent
c170c8c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
gcc/reload1.c
+11
-0
No files found.
gcc/reload1.c
View file @
8b4f9969
...
@@ -170,6 +170,13 @@ static HARD_REG_SET bad_spill_regs;
...
@@ -170,6 +170,13 @@ static HARD_REG_SET bad_spill_regs;
elements that are actually valid; new ones are added at the end. */
elements that are actually valid; new ones are added at the end. */
static
short
spill_regs
[
FIRST_PSEUDO_REGISTER
];
static
short
spill_regs
[
FIRST_PSEUDO_REGISTER
];
/* This reg set indicates those registers that have been used a spill
registers. This information is used in reorg.c, to help figure out
what registers are live at any point. It is assumed that all spill_regs
are dead at every CODE_LABEL. */
HARD_REG_SET
used_spill_regs
;
/* Index of last register assigned as a spill register. We allocate in
/* Index of last register assigned as a spill register. We allocate in
a round-robin fashion. */
a round-robin fashion. */
...
@@ -2026,6 +2033,10 @@ reload (first, global, dumpfile)
...
@@ -2026,6 +2033,10 @@ reload (first, global, dumpfile)
free
(
scratch_block
);
free
(
scratch_block
);
scratch_block
=
0
;
scratch_block
=
0
;
CLEAR_HARD_REG_SET
(
used_spill_regs
);
for
(
i
=
0
;
i
<
n_spills
;
i
++
)
SET_HARD_REG_BIT
(
used_spill_regs
,
spill_regs
[
i
]);
return
failure
;
return
failure
;
}
}
...
...
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