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
f0c51a1e
Commit
f0c51a1e
authored
Apr 06, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_function_start): Delay copying static chain.
From-SVN: r6979
parent
8b0f9101
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
gcc/function.c
+16
-1
No files found.
gcc/function.c
View file @
f0c51a1e
...
...
@@ -4860,7 +4860,13 @@ expand_function_start (subr, parms_have_cleanups)
if
(
current_function_needs_context
)
{
last_ptr
=
assign_stack_local
(
Pmode
,
GET_MODE_SIZE
(
Pmode
),
0
);
emit_move_insn
(
last_ptr
,
static_chain_incoming_rtx
);
#ifdef SMALL_REGISTER_CLASSES
/* Delay copying static chain if it is not a register to avoid
conflicts with regs used for parameters. */
if
(
GET_CODE
(
static_chain_incoming_rtx
)
==
REG
)
#endif
emit_move_insn
(
last_ptr
,
static_chain_incoming_rtx
);
}
/* If the parameters of this function need cleaning up, get a label
...
...
@@ -4976,6 +4982,15 @@ expand_function_start (subr, parms_have_cleanups)
assign_parms
(
subr
,
0
);
#ifdef SMALL_REGISTER_CLASSES
/* Copy the static chain now if it wasn't a register. The delay is to
avoid conflicts with the parameter passing registers. */
if
(
current_function_needs_context
)
if
(
GET_CODE
(
static_chain_incoming_rtx
)
!=
REG
)
emit_move_insn
(
last_ptr
,
static_chain_incoming_rtx
);
#endif
/* The following was moved from init_function_start.
The move is supposed to make sdb output more accurate. */
/* Indicate the beginning of the function body,
...
...
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