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
73620b82
Commit
73620b82
authored
Oct 31, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(preserve_temp_slots): Preserve anything whose address was taken when
X is zero. From-SVN: r8363
parent
7a0b7b9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
gcc/function.c
+10
-2
No files found.
gcc/function.c
View file @
73620b82
...
...
@@ -1028,8 +1028,16 @@ preserve_temp_slots (x)
{
struct
temp_slot
*
p
=
0
;
/* If there is no result, we still might have some objects whose address
were taken, so we need to make sure they stay around. */
if
(
x
==
0
)
return
;
{
for
(
p
=
temp_slots
;
p
;
p
=
p
->
next
)
if
(
p
->
in_use
&&
p
->
level
==
temp_slot_level
&&
p
->
addr_taken
)
p
->
level
--
;
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
...
...
@@ -1051,7 +1059,7 @@ preserve_temp_slots (x)
}
/* First see if we can find a match. */
if
(
p
==
0
)
if
(
p
==
0
)
p
=
find_temp_slot_from_address
(
XEXP
(
x
,
0
));
if
(
p
!=
0
)
...
...
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