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
e3a77161
Commit
e3a77161
authored
Mar 21, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(preserve_temp_slots): If argument is REG, see if it is address of a
temp slot we know about. From-SVN: r6843
parent
987c71d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
gcc/function.c
+15
-1
No files found.
gcc/function.c
View file @
e3a77161
...
...
@@ -946,9 +946,23 @@ preserve_temp_slots (x)
{
struct
temp_slot
*
p
;
if
(
x
==
0
)
return
;
/* If X is a register that is being used as a pointer, see if we have
a temporary slot we know it points to. To be consistent with
the code below, we really should preserve all non-kept slots
if we can't find a match, but that seems to be much too costly. */
if
(
GET_CODE
(
x
)
==
REG
&&
REGNO_POINTER_FLAG
(
REGNO
(
x
))
&&
(
p
=
find_temp_slot_from_address
(
x
))
!=
0
)
{
p
->
level
--
;
return
;
}
/* If X is not in memory or is at a constant address, it cannot be in
a temporary slot. */
if
(
x
==
0
||
GET_CODE
(
x
)
!=
MEM
||
CONSTANT_P
(
XEXP
(
x
,
0
)))
if
(
GET_CODE
(
x
)
!=
MEM
||
CONSTANT_P
(
XEXP
(
x
,
0
)))
return
;
/* First see if we can find a match. */
...
...
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