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
80599fd9
Commit
80599fd9
authored
Dec 14, 1998
by
Nick Clifton
Committed by
Nick Clifton
Dec 14, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete REG_RETVAL and REG_LIBCALL notes after completeing reload
From-SVN: r24310
parent
8c2dfb32
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
gcc/ChangeLog
+8
-0
gcc/reload1.c
+6
-2
gcc/rtl.texi
+6
-0
No files found.
gcc/ChangeLog
View file @
80599fd9
Mon
Dec
14
14
:
09
:
34
1998
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
reload1
.
c
(
reload
)
:
Delete
REG_RETVAL
and
REG_LIBCALL
notes
after
completeing
reload
.
*
rtl
.
texi
:
Document
that
REG_RETVAL
and
REG_LIBCALL
are
deleted
after
reload
.
Mon
Dec
14
01
:
39
:
28
1998
Jeffrey
A
Law
(
law
@cygnus
.
com
)
*
rtl
.
h
(
multiple_sets
)
:
Fix
prototype
.
...
...
gcc/reload1.c
View file @
80599fd9
...
...
@@ -1118,7 +1118,9 @@ reload (first, global, dumpfile)
/* Make a pass over all the insns and delete all USEs which we inserted
only to tag a REG_EQUAL note on them. Remove all REG_DEAD and REG_UNUSED
notes. Delete all CLOBBER insns and simplify (subreg (reg)) operands. */
notes. Delete all CLOBBER insns and simplify (subreg (reg)) operands.
Also remove all REG_RETVAL and REG_LIBCALL notes since they are no longer
useful or accurate. */
for
(
insn
=
first
;
insn
;
insn
=
NEXT_INSN
(
insn
))
if
(
GET_RTX_CLASS
(
GET_CODE
(
insn
))
==
'i'
)
...
...
@@ -1139,7 +1141,9 @@ reload (first, global, dumpfile)
while
(
*
pnote
!=
0
)
{
if
(
REG_NOTE_KIND
(
*
pnote
)
==
REG_DEAD
||
REG_NOTE_KIND
(
*
pnote
)
==
REG_UNUSED
)
||
REG_NOTE_KIND
(
*
pnote
)
==
REG_UNUSED
||
REG_NOTE_KIND
(
*
pnote
)
==
REG_RETVAL
||
REG_NOTE_KIND
(
*
pnote
)
==
REG_LIBCALL
)
*
pnote
=
XEXP
(
*
pnote
,
1
);
else
pnote
=
&
XEXP
(
*
pnote
,
1
);
...
...
gcc/rtl.texi
View file @
80599fd9
...
...
@@ -2664,11 +2664,17 @@ delete such sequences whose results are dead.
A
@code{
REG_EQUAL
}
note
will
also
usually
be
attached
to
this
insn
to
provide
the
expression
being
computed
by
the
sequence
.
These
notes
will
be
deleted
after
reload
,
since
they
are
no
longer
accurate
or
useful
.
@findex
REG_LIBCALL
@item
REG_LIBCALL
This
is
the
inverse
of
@code{
REG_RETVAL
}
:
it
is
placed
on
the
first
insn
of
a
multi
-
insn
sequence
,
and
it
points
to
the
last
one
.
These
notes
are
deleted
after
reload
,
since
they
are
no
longer
useful
or
accurate
.
@findex
REG_CC_SETTER
@findex
REG_CC_USER
@item
REG_CC_SETTER
...
...
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