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
422c8f63
Commit
422c8f63
authored
Jan 10, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(preserve_rtl_expr_result): New function.
From-SVN: r6367
parent
a18730e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletions
+29
-1
gcc/function.c
+29
-1
No files found.
gcc/function.c
View file @
422c8f63
/* Expands front end tree to back end RTL for GNU C-Compiler
Copyright (C) 1987, 88, 89, 91, 92,
1993
Free Software Foundation, Inc.
Copyright (C) 1987, 88, 89, 91, 92,
93, 1994
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -912,6 +912,34 @@ preserve_temp_slots (x)
p
->
level
--
;
}
/* X is the result of an RTL_EXPR. If it is a temporary slot associated
with that RTL_EXPR, promote it into a temporary slot at the present
level so it will not be freed when we free slots made in the
RTL_EXPR. */
void
preserve_rtl_expr_result
(
x
)
rtx
x
;
{
struct
temp_slot
*
p
;
/* 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
)))
return
;
/* If we can find a match, move it to our level. */
for
(
p
=
temp_slots
;
p
;
p
=
p
->
next
)
if
(
p
->
in_use
&&
rtx_equal_p
(
x
,
p
->
slot
))
{
p
->
level
=
temp_slot_level
;
p
->
rtl_expr
=
0
;
return
;
}
return
;
}
/* Free all temporaries used so far. This is normally called at the end
of generating code for a statement. Don't free any temporaries
currently in use for an RTL_EXPR that hasn't yet been emitted.
...
...
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