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
c816db88
Commit
c816db88
authored
Jun 14, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_builtin_apply_args): Put back original register save and
restore order. From-SVN: r9952
parent
bacbde18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
gcc/expr.c
+4
-12
No files found.
gcc/expr.c
View file @
c816db88
...
@@ -8156,14 +8156,8 @@ expand_builtin_apply_args ()
...
@@ -8156,14 +8156,8 @@ expand_builtin_apply_args ()
if
(
struct_value_rtx
)
if
(
struct_value_rtx
)
size
+=
GET_MODE_SIZE
(
Pmode
);
size
+=
GET_MODE_SIZE
(
Pmode
);
/* Save each register used in calling a function to the block.
/* Save each register used in calling a function to the block. */
Doing this in reverse order makes for much more compact code
for
(
regno
=
0
;
regno
<
FIRST_PSEUDO_REGISTER
;
regno
++
)
for i386 and family. If we do this in reverse order, a simple
series of pops and stores will be generated. If we do this
in ascending order, the pops and stores will be littered with
stack swaps as well. Since the order is largely irrelevant for
all other architectures, we use the optimal order for the i386. */
for
(
regno
=
FIRST_PSEUDO_REGISTER
;
regno
--
;)
if
((
mode
=
apply_args_mode
[
regno
])
!=
VOIDmode
)
if
((
mode
=
apply_args_mode
[
regno
])
!=
VOIDmode
)
{
{
rtx
tem
;
rtx
tem
;
...
@@ -8263,10 +8257,8 @@ expand_builtin_apply (function, arguments, argsize)
...
@@ -8263,10 +8257,8 @@ expand_builtin_apply (function, arguments, argsize)
size
+=
GET_MODE_SIZE
(
Pmode
);
size
+=
GET_MODE_SIZE
(
Pmode
);
/* Restore each of the registers previously saved. Make USE insns
/* Restore each of the registers previously saved. Make USE insns
for each of these registers for use in making the call.
for each of these registers for use in making the call. */
Doing this in reverse order makes for much more compact code
for
(
regno
=
0
;
regno
<
FIRST_PSEUDO_REGISTER
;
regno
++
)
for i386 and family. */
for
(
regno
=
FIRST_PSEUDO_REGISTER
;
regno
--
;
)
if
((
mode
=
apply_args_mode
[
regno
])
!=
VOIDmode
)
if
((
mode
=
apply_args_mode
[
regno
])
!=
VOIDmode
)
{
{
align
=
GET_MODE_ALIGNMENT
(
mode
)
/
BITS_PER_UNIT
;
align
=
GET_MODE_ALIGNMENT
(
mode
)
/
BITS_PER_UNIT
;
...
...
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