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
69688f1e
Commit
69688f1e
authored
Feb 24, 1999
by
J"orn Rennecke
Committed by
Joern Rennecke
Feb 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* unroll.c (unroll_loop): Avoid out-of-bounds index for local_regno.
From-SVN: r25399
parent
d2ae3ff5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/ChangeLog
+4
-0
gcc/unroll.c
+6
-2
No files found.
gcc/ChangeLog
View file @
69688f1e
Wed
Feb
24
19
:
17
:
11
1999
J
"orn Rennecke <amylaar@cygnus.co.uk>
* unroll.c (unroll_loop): Avoid out-of-bounds index for local_regno.
Wed Feb 24 11:26:41 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
* config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Don't use
...
...
gcc/unroll.c
View file @
69688f1e
...
...
@@ -238,6 +238,7 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
struct
inline_remap
*
map
;
char
*
local_label
;
char
*
local_regno
;
int
max_local_regnum
;
int
maxregnum
;
rtx
exit_label
=
0
;
rtx
start_label
;
...
...
@@ -755,6 +756,9 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
/* The preconditioning code may allocate two new pseudo registers. */
maxregnum
=
max_reg_num
();
/* local_regno is only valid for regnos < max_local_regnum. */
max_local_regnum
=
maxregnum
;
/* Allocate and zero out the splittable_regs and addr_combined_regs
arrays. These must be zeroed here because they will be used if
loop preconditioning is performed, and must be zero for that case.
...
...
@@ -1051,7 +1055,7 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
if
(
local_label
[
j
])
set_label_in_map
(
map
,
j
,
gen_label_rtx
());
for
(
j
=
FIRST_PSEUDO_REGISTER
;
j
<
maxregnum
;
j
++
)
for
(
j
=
FIRST_PSEUDO_REGISTER
;
j
<
max
_local_
regnum
;
j
++
)
if
(
local_regno
[
j
])
{
map
->
reg_map
[
j
]
=
gen_reg_rtx
(
GET_MODE
(
regno_reg_rtx
[
j
]));
...
...
@@ -1199,7 +1203,7 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
if
(
local_label
[
j
])
set_label_in_map
(
map
,
j
,
gen_label_rtx
());
for
(
j
=
FIRST_PSEUDO_REGISTER
;
j
<
maxregnum
;
j
++
)
for
(
j
=
FIRST_PSEUDO_REGISTER
;
j
<
max
_local_
regnum
;
j
++
)
if
(
local_regno
[
j
])
{
map
->
reg_map
[
j
]
=
gen_reg_rtx
(
GET_MODE
(
regno_reg_rtx
[
j
]));
...
...
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