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
7657bf2f
Commit
7657bf2f
authored
Feb 20, 1997
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reload): Move assign_stack_local call into main loop.
From-SVN: r13671
parent
44cfd512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
gcc/reload1.c
+9
-6
No files found.
gcc/reload1.c
View file @
7657bf2f
...
@@ -747,11 +747,6 @@ reload (first, global, dumpfile)
...
@@ -747,11 +747,6 @@ reload (first, global, dumpfile)
for
(
i
=
LAST_VIRTUAL_REGISTER
+
1
;
i
<
max_regno
;
i
++
)
for
(
i
=
LAST_VIRTUAL_REGISTER
+
1
;
i
<
max_regno
;
i
++
)
alter_reg
(
i
,
-
1
);
alter_reg
(
i
,
-
1
);
/* Round size of stack frame to BIGGEST_ALIGNMENT. This must be done here
because the stack size may be a part of the offset computation for
register elimination. */
assign_stack_local
(
BLKmode
,
0
,
0
);
/* If we have some registers we think can be eliminated, scan all insns to
/* If we have some registers we think can be eliminated, scan all insns to
see if there is an insn that sets one of these registers to something
see if there is an insn that sets one of these registers to something
other than itself plus a constant. If so, the register cannot be
other than itself plus a constant. If so, the register cannot be
...
@@ -861,7 +856,7 @@ reload (first, global, dumpfile)
...
@@ -861,7 +856,7 @@ reload (first, global, dumpfile)
rtx
max_groups_insn
[
N_REG_CLASSES
];
rtx
max_groups_insn
[
N_REG_CLASSES
];
rtx
max_nongroups_insn
[
N_REG_CLASSES
];
rtx
max_nongroups_insn
[
N_REG_CLASSES
];
rtx
x
;
rtx
x
;
HOST_WIDE_INT
starting_frame_size
=
get_frame_size
()
;
HOST_WIDE_INT
starting_frame_size
;
int
previous_frame_pointer_needed
=
frame_pointer_needed
;
int
previous_frame_pointer_needed
=
frame_pointer_needed
;
static
char
*
reg_class_names
[]
=
REG_CLASS_NAMES
;
static
char
*
reg_class_names
[]
=
REG_CLASS_NAMES
;
...
@@ -883,6 +878,14 @@ reload (first, global, dumpfile)
...
@@ -883,6 +878,14 @@ reload (first, global, dumpfile)
changes from 0 to 1 in this pass. */
changes from 0 to 1 in this pass. */
new_basic_block_needs
=
0
;
new_basic_block_needs
=
0
;
/* Round size of stack frame to BIGGEST_ALIGNMENT. This must be done
here because the stack size may be a part of the offset computation
for register elimination, and there might have been new stack slots
created in the last iteration of this loop. */
assign_stack_local
(
BLKmode
,
0
,
0
);
starting_frame_size
=
get_frame_size
();
/* Reset all offsets on eliminable registers to their initial values. */
/* Reset all offsets on eliminable registers to their initial values. */
#ifdef ELIMINABLE_REGS
#ifdef ELIMINABLE_REGS
for
(
ep
=
reg_eliminate
;
ep
<
&
reg_eliminate
[
NUM_ELIMINABLE_REGS
];
ep
++
)
for
(
ep
=
reg_eliminate
;
ep
<
&
reg_eliminate
[
NUM_ELIMINABLE_REGS
];
ep
++
)
...
...
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