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
bb1b857a
Commit
bb1b857a
authored
27 years ago
by
Gavin Koch
Committed by
Jeff Law
27 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* calls.c (expand_call): Implement LOAD_ARGS_REVERSED.
From-SVN: r17133
parent
02531345
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
gcc/ChangeLog
+2
-0
gcc/calls.c
+4
-0
gcc/tm.texi
+8
-0
No files found.
gcc/ChangeLog
View file @
bb1b857a
...
...
@@ -4,6 +4,8 @@ Thu Dec 18 14:51:12 1997 Jason Merrill <jason@yorick.cygnus.com>
Thu Dec 18 14:57:29 1997 Gavin Koch <gavin@cygnus.com>
* calls.c (expand_call): Implement LOAD_ARGS_REVERSED.
* dwarf2out.c (dwarf2out_frame_debug): Handle adjustments of the
frame pointer in the prologue.
...
...
This diff is collapsed.
Click to expand it.
gcc/calls.c
View file @
bb1b857a
...
...
@@ -1884,7 +1884,11 @@ expand_call (exp, target, ignore)
Mark all register-parms as living through the call, putting these USE
insns in the CALL_INSN_FUNCTION_USAGE field. */
#ifdef LOAD_ARGS_REVERSED
for
(
i
=
num_actuals
-
1
;
i
>=
0
;
i
--
)
#else
for
(
i
=
0
;
i
<
num_actuals
;
i
++
)
#endif
{
rtx
reg
=
args
[
i
].
reg
;
int
partial
=
args
[
i
].
partial
;
...
...
This diff is collapsed.
Click to expand it.
gcc/tm.texi
View file @
bb1b857a
...
...
@@ -2848,6 +2848,14 @@ register in which function arguments are sometimes passed. This does
the
structure
-
value
address
.
On
many
machines
,
no
registers
can
be
used
for
this
purpose
since
all
function
arguments
are
pushed
on
the
stack
.
@findex
LOAD_ARGS_REVERSED
@item
LOAD_ARGS_REVERSED
If
defined
,
the
order
in
which
arguments
are
loaded
into
their
respective
argument
registers
is
reversed
so
that
the
last
argument
is
loaded
first
.
This
macro
only
effects
arguments
passed
in
registers
.
@end
table
@node
Scalar
Return
...
...
This diff is collapsed.
Click to expand it.
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