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
0dfa4517
Commit
0dfa4517
authored
Sep 16, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(global_alloc): Mark regs assigned to SCRATCH as used by more than
just local alloc. From-SVN: r8091
parent
2c793b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gcc/global.c
+12
-0
No files found.
gcc/global.c
View file @
0dfa4517
...
...
@@ -446,6 +446,18 @@ global_alloc (file)
if
(
regs_ever_live
[
i
])
local_reg_n_refs
[
i
]
=
0
;
/* Likewise for regs used in a SCRATCH. */
for
(
i
=
0
;
i
<
scratch_list_length
;
i
++
)
if
(
scratch_list
[
i
])
{
int
regno
=
REGNO
(
scratch_list
[
i
]);
int
lim
=
regno
+
HARD_REGNO_NREGS
(
regno
,
GET_MODE
(
scratch_list
[
i
]));
int
j
;
for
(
j
=
regno
;
j
<
lim
;
j
++
)
local_reg_n_refs
[
j
]
=
0
;
}
/* Allocate the space for the conflict and preference tables and
initialize them. */
...
...
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