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
29f63881
Commit
29f63881
authored
Aug 16, 1998
by
Richard Henderson
Committed by
Richard Henderson
Aug 16, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regclass.c (allocate_reg_info): Respect MIN when clearing data.
From-SVN: r21770
parent
295cd2ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
gcc/ChangeLog
+4
-0
gcc/regclass.c
+7
-6
No files found.
gcc/ChangeLog
View file @
29f63881
Mon Aug 17 02:03:55 1998 Richard Henderson <rth@cygnus.com>
* regclass.c (allocate_reg_info): Respect MIN when clearing data.
Sun Aug 16 17:37:06 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
* config/sparc/sparc.c (ultra_code_from_mask,
...
...
gcc/regclass.c
View file @
29f63881
...
...
@@ -1866,18 +1866,19 @@ allocate_reg_info (num_regs, new_p, renumber_p)
size_t
max_index
=
reg_data
->
max_index
;
reg_next
=
reg_data
->
next
;
if
(
min
_index
<=
regno_allocated
)
if
(
min
<=
max_index
)
{
size_t
max
=
max_index
;
if
(
max
>
regno_allocated
)
max
=
regno_allocated
;
size_t
local_min
=
min
-
min_index
;
if
(
min
<
min_index
)
local_min
=
0
;
if
(
!
reg_data
->
used_p
)
/* page just allocated with calloc */
reg_data
->
used_p
=
1
;
/* no need to zero */
else
bzero
((
char
*
)
&
reg_data
->
data
,
sizeof
(
reg_info
)
*
(
max
-
min_index
+
1
));
bzero
((
char
*
)
&
reg_data
->
data
[
local_min
]
,
sizeof
(
reg_info
)
*
(
max
-
min_index
-
local_min
+
1
));
for
(
i
=
min_index
;
i
<=
max
;
i
++
)
for
(
i
=
min_index
+
local_min
;
i
<=
max
;
i
++
)
{
VARRAY_REG
(
reg_n_info
,
i
)
=
&
reg_data
->
data
[
i
-
min_index
];
REG_BASIC_BLOCK
(
i
)
=
REG_BLOCK_UNKNOWN
;
...
...
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