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
38d8473f
Commit
38d8473f
authored
Dec 07, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(distribute_notes): If can't find place for REG_DEAD note, add an INSN
with a USE to hold it. From-SVN: r8625
parent
61314cb4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
gcc/combine.c
+14
-2
No files found.
gcc/combine.c
View file @
38d8473f
...
@@ -10515,9 +10515,10 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
...
@@ -10515,9 +10515,10 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
reg_n_refs
[
REGNO
(
XEXP
(
note
,
0
))]
=
3
;
reg_n_refs
[
REGNO
(
XEXP
(
note
,
0
))]
=
3
;
if
(
place
==
0
)
if
(
place
==
0
)
{
for
(
tem
=
prev_nonnote_insn
(
i3
);
for
(
tem
=
prev_nonnote_insn
(
i3
);
tem
&&
(
GET_CODE
(
tem
)
==
INSN
place
==
0
&&
tem
||
GET_CODE
(
tem
)
==
CALL_INSN
);
&&
(
GET_CODE
(
tem
)
==
INSN
||
GET_CODE
(
tem
)
==
CALL_INSN
);
tem
=
prev_nonnote_insn
(
tem
))
tem
=
prev_nonnote_insn
(
tem
))
{
{
/* If the register is being set at TEM, see if that is all
/* If the register is being set at TEM, see if that is all
...
@@ -10569,6 +10570,17 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
...
@@ -10569,6 +10570,17 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
}
}
}
}
/* If we haven't found an insn for the death note and it
is still a REG_DEAD note, but we have hit a CODE_LABEL,
insert a USE insn for the register at that label and
put the death node there. This prevents problems with
call-state tracking in caller-save.c. */
if
(
REG_NOTE_KIND
(
note
)
==
REG_DEAD
&&
place
==
0
&&
tem
!=
0
)
place
=
emit_insn_after
(
gen_rtx
(
USE
,
VOIDmode
,
XEXP
(
note
,
0
)),
tem
);
}
/* If the register is set or already dead at PLACE, we needn't do
/* If the register is set or already dead at PLACE, we needn't do
anything with this note if it is still a REG_DEAD note.
anything with this note if it is still a REG_DEAD note.
...
...
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