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
37c0e55f
Commit
37c0e55f
authored
Sep 23, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reload): Initialize the previous_offset fields in reg_eliminate
before calling setup_save_areas. From-SVN: r12781
parent
c7d13c76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
gcc/reload1.c
+9
-2
No files found.
gcc/reload1.c
View file @
37c0e55f
...
@@ -1460,8 +1460,14 @@ reload (first, global, dumpfile)
...
@@ -1460,8 +1460,14 @@ reload (first, global, dumpfile)
/* If we have caller-saves, set up the save areas and see if caller-save
/* If we have caller-saves, set up the save areas and see if caller-save
will need a spill register. */
will need a spill register. */
if
(
caller_save_needed
if
(
caller_save_needed
)
&&
!
setup_save_areas
(
&
something_changed
)
{
/* Set the offsets for setup_save_areas. */
for
(
ep
=
reg_eliminate
;
ep
<
&
reg_eliminate
[
NUM_ELIMINABLE_REGS
];
ep
++
)
ep
->
previous_offset
=
ep
->
max_offset
;
if
(
!
setup_save_areas
(
&
something_changed
)
&&
caller_save_spill_class
==
NO_REGS
)
&&
caller_save_spill_class
==
NO_REGS
)
{
{
/* The class we will need depends on whether the machine
/* The class we will need depends on whether the machine
...
@@ -1474,6 +1480,7 @@ reload (first, global, dumpfile)
...
@@ -1474,6 +1480,7 @@ reload (first, global, dumpfile)
=
CLASS_MAX_NREGS
(
caller_save_spill_class
,
Pmode
);
=
CLASS_MAX_NREGS
(
caller_save_spill_class
,
Pmode
);
something_changed
=
1
;
something_changed
=
1
;
}
}
}
/* See if anything that happened changes which eliminations are valid.
/* See if anything that happened changes which eliminations are valid.
For example, on the Sparc, whether or not the frame pointer can
For example, on the Sparc, whether or not the frame pointer can
...
...
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