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
600a5d88
Commit
600a5d88
authored
Aug 02, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_rtx, case REG): Don't use frame_pointer_rtx or arg_pointer_rtx if
reload is in progress. From-SVN: r1758
parent
0782cd71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
gcc/emit-rtl.c
+10
-4
No files found.
gcc/emit-rtl.c
View file @
600a5d88
...
...
@@ -271,15 +271,21 @@ gen_rtx (va_alist)
If we have eliminated the frame pointer or arg pointer, we will
be using it as a normal register, for example as a spill register.
In such cases, we might be accessing it in a mode that is not
Pmode and therefore cannot use the pre-allocated rtx.
*/
Pmode and therefore cannot use the pre-allocated rtx.
if
(
frame_pointer_rtx
&&
regno
==
FRAME_POINTER_REGNUM
&&
mode
==
Pmode
)
Also don't do this when we are making new REGs in reload,
since we don't want to get confused with the real pointers. */
if
(
frame_pointer_rtx
&&
regno
==
FRAME_POINTER_REGNUM
&&
mode
==
Pmode
&&
!
reload_in_progress
)
return
frame_pointer_rtx
;
#if FRAME_POINTER_REGNUM != ARG_POINTER_REGNUM
if
(
arg_pointer_rtx
&&
regno
==
ARG_POINTER_REGNUM
&&
mode
==
Pmode
)
if
(
arg_pointer_rtx
&&
regno
==
ARG_POINTER_REGNUM
&&
mode
==
Pmode
&&
!
reload_in_progress
)
return
arg_pointer_rtx
;
#endif
if
(
stack_pointer_rtx
&&
regno
==
STACK_POINTER_REGNUM
&&
mode
==
Pmode
)
if
(
stack_pointer_rtx
&&
regno
==
STACK_POINTER_REGNUM
&&
mode
==
Pmode
&&
!
reload_in_progress
)
return
stack_pointer_rtx
;
else
{
...
...
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