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
02db8dd0
Commit
02db8dd0
authored
May 31, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(alter_reg): Clean up setting of RTX_UNCHANGING_P when making a MEM.
From-SVN: r9861
parent
8eae5ed6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
gcc/reload1.c
+11
-15
No files found.
gcc/reload1.c
View file @
02db8dd0
...
...
@@ -2349,13 +2349,13 @@ alter_reg (i, from_reg)
/* No known place to spill from => no slot to reuse. */
x
=
assign_stack_local
(
GET_MODE
(
regno_reg_rtx
[
i
]),
total_size
,
-
1
);
if
(
BYTES_BIG_ENDIAN
)
{
/* Cancel the big-endian correction done in assign_stack_local
.
Get the address of the beginning of the slot.
This is so we can do a big-endian correction unconditionally
below. */
adjust
=
inherent_size
-
total_size
;
}
/* Cancel the big-endian correction done in assign_stack_local.
Get the address of the beginning of the slot
.
This is so we can do a big-endian correction unconditionally
below. */
adjust
=
inherent_size
-
total_size
;
RTX_UNCHANGING_P
(
x
)
=
RTX_UNCHANGING_P
(
regno_reg_rtx
[
i
]);
}
/* Reuse a stack slot if possible. */
else
if
(
spill_stack_slot
[
from_reg
]
!=
0
...
...
@@ -2389,14 +2389,10 @@ alter_reg (i, from_reg)
below. */
adjust
=
GET_MODE_SIZE
(
mode
)
-
total_size
;
if
(
adjust
)
{
stack_slot
=
gen_rtx
(
MEM
,
mode_for_size
(
total_size
*
BITS_PER_UNIT
,
MODE_INT
,
1
),
plus_constant
(
XEXP
(
x
,
0
),
adjust
));
RTX_UNCHANGING_P
(
stack_slot
)
=
RTX_UNCHANGING_P
(
regno_reg_rtx
[
i
]);
}
stack_slot
=
gen_rtx
(
MEM
,
mode_for_size
(
total_size
*
BITS_PER_UNIT
,
MODE_INT
,
1
),
plus_constant
(
XEXP
(
x
,
0
),
adjust
));
}
spill_stack_slot
[
from_reg
]
=
stack_slot
;
spill_stack_slot_width
[
from_reg
]
=
total_size
;
...
...
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