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
2a81034f
Commit
2a81034f
authored
Aug 03, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(block_alloc): Don't attempt to allocate a
SCRATCH if it will not fit in scratch_list. From-SVN: r5058
parent
cf0e292f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/local-alloc.c
+4
-1
No files found.
gcc/local-alloc.c
View file @
2a81034f
...
@@ -1099,6 +1099,9 @@ block_alloc (b)
...
@@ -1099,6 +1099,9 @@ block_alloc (b)
int
max_uid
=
get_max_uid
();
int
max_uid
=
get_max_uid
();
int
*
qty_order
;
int
*
qty_order
;
int
no_conflict_combined_regno
=
-
1
;
int
no_conflict_combined_regno
=
-
1
;
/* Counter to prevent allocating more SCRATCHes than can be stored
in SCRATCH_LIST. */
int
scratches_allocated
=
scratch_index
;
/* Count the instructions in the basic block. */
/* Count the instructions in the basic block. */
...
@@ -1341,7 +1344,7 @@ block_alloc (b)
...
@@ -1341,7 +1344,7 @@ block_alloc (b)
if
(
insn_code_number
>=
0
)
if
(
insn_code_number
>=
0
)
for
(
i
=
0
;
i
<
insn_n_operands
[
insn_code_number
];
i
++
)
for
(
i
=
0
;
i
<
insn_n_operands
[
insn_code_number
];
i
++
)
if
(
GET_CODE
(
recog_operand
[
i
])
==
SCRATCH
if
(
GET_CODE
(
recog_operand
[
i
])
==
SCRATCH
&&
scratch
_index
<
scratch_list_length
-
1
)
&&
scratch
es_allocated
++
<
scratch_list_length
)
alloc_qty_for_scratch
(
recog_operand
[
i
],
i
,
insn
,
alloc_qty_for_scratch
(
recog_operand
[
i
],
i
,
insn
,
insn_code_number
,
insn_number
);
insn_code_number
,
insn_number
);
...
...
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