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
efb07da7
Commit
efb07da7
authored
Aug 14, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(life_analysis, propagate_block, dump_flow_info): Add more missing
casts to REGSET_ELT_TYPE. From-SVN: r1826
parent
858a47b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
gcc/flow.c
+9
-6
No files found.
gcc/flow.c
View file @
efb07da7
...
...
@@ -853,10 +853,10 @@ life_analysis (f, nregs)
consider the stack pointer live at the end of the function. */
basic_block_live_at_end
[
n_basic_blocks
-
1
]
[
STACK_POINTER_REGNUM
/
REGSET_ELT_BITS
]
|=
1
<<
(
STACK_POINTER_REGNUM
%
REGSET_ELT_BITS
);
|=
(
REGSET_ELT_TYPE
)
1
<<
(
STACK_POINTER_REGNUM
%
REGSET_ELT_BITS
);
basic_block_new_live_at_end
[
n_basic_blocks
-
1
]
[
STACK_POINTER_REGNUM
/
REGSET_ELT_BITS
]
|=
1
<<
(
STACK_POINTER_REGNUM
%
REGSET_ELT_BITS
);
|=
(
REGSET_ELT_TYPE
)
1
<<
(
STACK_POINTER_REGNUM
%
REGSET_ELT_BITS
);
}
/* Mark all global registers as being live at the end of the function
...
...
@@ -867,9 +867,11 @@ life_analysis (f, nregs)
if
(
global_regs
[
i
])
{
basic_block_live_at_end
[
n_basic_blocks
-
1
]
[
i
/
REGSET_ELT_BITS
]
|=
1
<<
(
i
%
REGSET_ELT_BITS
);
[
i
/
REGSET_ELT_BITS
]
|=
(
REGSET_ELT_TYPE
)
1
<<
(
i
%
REGSET_ELT_BITS
);
basic_block_new_live_at_end
[
n_basic_blocks
-
1
]
[
i
/
REGSET_ELT_BITS
]
|=
1
<<
(
i
%
REGSET_ELT_BITS
);
[
i
/
REGSET_ELT_BITS
]
|=
(
REGSET_ELT_TYPE
)
1
<<
(
i
%
REGSET_ELT_BITS
);
}
/* Propagate life info through the basic blocks
...
...
@@ -1430,7 +1432,7 @@ propagate_block (old, first, last, final, significant, bnum)
register
struct
sometimes
*
p
=
regs_sometimes_live
;
for
(
i
=
0
;
i
<
sometimes_max
;
i
++
,
p
++
)
if
(
old
[
p
->
offset
]
&
(
1
<<
p
->
bit
))
if
(
old
[
p
->
offset
]
&
(
(
REGSET_ELT_TYPE
)
1
<<
p
->
bit
))
reg_n_calls_crossed
[
p
->
offset
*
REGSET_ELT_BITS
+
p
->
bit
]
+=
1
;
}
}
...
...
@@ -2639,7 +2641,8 @@ dump_flow_info (file)
for
(
regno
=
0
;
regno
<
max_regno
;
regno
++
)
{
register
int
offset
=
regno
/
REGSET_ELT_BITS
;
register
int
bit
=
1
<<
(
regno
%
REGSET_ELT_BITS
);
register
REGSET_ELT_TYPE
bit
=
(
REGSET_ELT_TYPE
)
1
<<
(
regno
%
REGSET_ELT_BITS
);
if
(
basic_block_live_at_start
[
i
][
offset
]
&
bit
)
fprintf
(
file
,
" %d"
,
regno
);
}
...
...
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