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
d8c8b8e3
Commit
d8c8b8e3
authored
Aug 07, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mark_used_regs): Do recurse in setting of global hard reg.
Do set reg_next_use for global hard reg. From-SVN: r1778
parent
1f6fc4de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
gcc/flow.c
+9
-2
No files found.
gcc/flow.c
View file @
d8c8b8e3
...
...
@@ -1524,6 +1524,7 @@ insn_dead_p (x, needed, call_ok)
register
REGSET_ELT_TYPE
bit
=
(
REGSET_ELT_TYPE
)
1
<<
(
regno
%
REGSET_ELT_BITS
);
/* Don't delete insns to set global regs. */
if
((
regno
<
FIRST_PSEUDO_REGISTER
&&
global_regs
[
regno
])
/* Make sure insns to set frame pointer aren't deleted. */
||
regno
==
FRAME_POINTER_REGNUM
...
...
@@ -2167,7 +2168,11 @@ mark_used_regs (needed, live, x, final, insn)
/* No death notes for global register variables;
their values are live after this function exits. */
if
(
global_regs
[
regno
])
return
;
{
if
(
final
)
reg_next_use
[
regno
]
=
insn
;
return
;
}
n
=
HARD_REGNO_NREGS
(
regno
,
GET_MODE
(
x
));
while
(
--
n
>
0
)
...
...
@@ -2311,7 +2316,9 @@ mark_used_regs (needed, live, x, final, insn)
#if FRAME_POINTER_REGNUM != ARG_POINTER_REGNUM
&&
!
(
regno
==
ARG_POINTER_REGNUM
&&
fixed_regs
[
regno
])
#endif
&&
!
(
regno
<
FIRST_PSEUDO_REGISTER
&&
global_regs
[
regno
]))
)
/* We used to exclude global_regs here, but that seems wrong.
Storing in them is like storing in mem. */
{
mark_used_regs
(
needed
,
live
,
SET_SRC
(
x
),
final
,
insn
);
if
(
mark_dest
)
...
...
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