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
9e148ceb
Commit
9e148ceb
authored
Apr 24, 1997
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use push_operand to check for changes to the stack pointer
From-SVN: r13975
parent
173cd503
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
gcc/reload1.c
+19
-2
No files found.
gcc/reload1.c
View file @
9e148ceb
...
...
@@ -7600,7 +7600,7 @@ reload_cse_invalidate_regno (regno, mode, clobber)
for
(
x
=
reg_values
[
i
];
x
;
x
=
XEXP
(
x
,
1
))
{
if
(
XEXP
(
x
,
0
)
!=
0
&&
refers_to_regno_p
(
regno
,
endregno
,
XEXP
(
x
,
0
),
NULL_
RTX
))
&&
refers_to_regno_p
(
regno
,
endregno
,
XEXP
(
x
,
0
),
NULL_
PTR
))
{
/* If this is the only entry on the list, clear
reg_values[i]. Otherwise, just clear this entry on
...
...
@@ -8186,7 +8186,7 @@ reload_cse_record_set (set, body)
rtx
set
;
rtx
body
;
{
rtx
dest
,
src
;
rtx
dest
,
src
,
x
;
int
dreg
,
sreg
;
enum
machine_mode
dest_mode
;
...
...
@@ -8196,6 +8196,23 @@ reload_cse_record_set (set, body)
sreg
=
true_regnum
(
src
);
dest_mode
=
GET_MODE
(
dest
);
/* Some machines don't define AUTO_INC_DEC, but they still use push
instructions. We need to catch that case here in order to
invalidate the stack pointer correctly. Note that invalidating
the stack pointer is different from invalidating DEST. */
x
=
dest
;
while
(
GET_CODE
(
x
)
==
SUBREG
||
GET_CODE
(
x
)
==
ZERO_EXTRACT
||
GET_CODE
(
x
)
==
SIGN_EXTRACT
||
GET_CODE
(
x
)
==
STRICT_LOW_PART
)
x
=
XEXP
(
x
,
0
);
if
(
push_operand
(
x
,
GET_MODE
(
x
)))
{
reload_cse_invalidate_rtx
(
stack_pointer_rtx
,
NULL_RTX
);
reload_cse_invalidate_rtx
(
dest
,
NULL_RTX
);
return
;
}
/* We can only handle an assignment to a register, or a store of a
register to a memory location. For other cases, we just clobber
the destination. We also have to just clobber if there are side
...
...
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