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
c9a1bf2e
Commit
c9a1bf2e
authored
Mar 29, 1995
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mark_referenced_resources): Make setjmp use all registers.
From-SVN: r9248
parent
ce79abf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
gcc/reorg.c
+14
-0
No files found.
gcc/reorg.c
View file @
c9a1bf2e
...
...
@@ -379,11 +379,13 @@ mark_referenced_resources (x, res, include_delayed_effects)
rtx
insn
=
PREV_INSN
(
x
);
rtx
sequence
=
0
;
int
seq_size
=
0
;
rtx
next
=
NEXT_INSN
(
x
);
int
i
;
/* If we are part of a delay slot sequence, point at the SEQUENCE. */
if
(
NEXT_INSN
(
insn
)
!=
x
)
{
next
=
NEXT_INSN
(
NEXT_INSN
(
insn
));
sequence
=
PATTERN
(
NEXT_INSN
(
insn
));
seq_size
=
XVECLEN
(
sequence
,
0
);
if
(
GET_CODE
(
sequence
)
!=
SEQUENCE
)
...
...
@@ -404,6 +406,18 @@ mark_referenced_resources (x, res, include_delayed_effects)
if
(
global_regs
[
i
])
SET_HARD_REG_BIT
(
res
->
regs
,
i
);
/* Check for a NOTE_INSN_SETJMP. If it exists, then we must
assume that this call can need any register.
This is done to be more conservative about how we handle setjmp.
We assume that they both use and set all registers. Using all
registers ensures that a register will not be considered dead
just because it crosses a setjmp call. A register should be
considered dead only if the setjmp call returns non-zero. */
if
(
next
&&
GET_CODE
(
next
)
==
NOTE
&&
NOTE_LINE_NUMBER
(
next
)
==
NOTE_INSN_SETJMP
)
SET_HARD_REG_SET
(
res
->
regs
);
{
rtx
link
;
...
...
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