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
b453cb0b
Commit
b453cb0b
authored
29 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reload): For special CONST_CALL_P NOTE_INSN_SETJMP, mark all
call-saved regs as used. From-SVN: r11341
parent
0dddb42d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/reload1.c
+9
-1
No files found.
gcc/reload1.c
View file @
b453cb0b
...
...
@@ -551,12 +551,20 @@ reload (first, global, dumpfile)
/* Look for REG_EQUIV notes; record what each pseudo is equivalent to.
Also find all paradoxical subregs and find largest such for each pseudo.
On machines with small register classes, record hard registers that
are used for user variables. These can never be used for spills. */
are used for user variables. These can never be used for spills.
Also look for a "constant" NOTE_INSN_SETJMP. This means that all
caller-saved registers must be marked live. */
for
(
insn
=
first
;
insn
;
insn
=
NEXT_INSN
(
insn
))
{
rtx
set
=
single_set
(
insn
);
if
(
GET_CODE
(
insn
)
==
NOTE
&&
CONST_CALL_P
(
insn
)
&&
NOTE_LINE_NUMBER
(
insn
)
==
NOTE_INSN_SETJMP
)
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
if
(
!
call_used_regs
[
i
])
regs_ever_live
[
i
]
=
1
;
if
(
set
!=
0
&&
GET_CODE
(
SET_DEST
(
set
))
==
REG
)
{
rtx
note
=
find_reg_note
(
insn
,
REG_EQUIV
,
NULL_RTX
);
...
...
This diff is collapsed.
Click to expand it.
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