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
39fa3485
Commit
39fa3485
authored
Sep 03, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(setup_save_areas): Don't look at WORDS_BIG_ENDIAN.
From-SVN: r2049
parent
f2a02c3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
gcc/caller-save.c
+6
-12
No files found.
gcc/caller-save.c
View file @
39fa3485
...
...
@@ -334,22 +334,16 @@ setup_save_areas (pchanged)
=
assign_stack_local
(
regno_save_mode
[
i
][
j
],
GET_MODE_SIZE
(
regno_save_mode
[
i
][
j
]),
0
);
/* Setup singe word save area just in case... */
/* Setup sing
l
e word save area just in case... */
for
(
k
=
0
;
k
<
j
;
k
++
)
{
int
offset
;
rtx
temp
;
/* This should not depend on WORDS_BIG_ENDIAN.
The order of words in regs is the same as in memory. */
rtx
temp
=
gen_rtx
(
MEM
,
regno_save_mode
[
i
+
k
][
1
],
XEXP
(
regno_save_mem
[
i
][
j
],
0
));
if
(
WORDS_BIG_ENDIAN
)
offset
=
k
*
UNITS_PER_WORD
;
else
offset
=
-
k
*
UNITS_PER_WORD
;
temp
=
gen_rtx
(
MEM
,
regno_save_mode
[
i
+
k
][
1
],
XEXP
(
regno_save_mem
[
i
][
j
],
0
));
regno_save_mem
[
i
+
k
][
1
]
=
adj_offsettable_operand
(
temp
,
offset
);
=
adj_offsettable_operand
(
temp
,
k
*
UNITS_PER_WORD
);
}
*
pchanged
=
1
;
}
...
...
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