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
11044f66
Commit
11044f66
authored
Jul 17, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_function_end): If function is non-leaf and stack checking is
requested, emit needed probes. From-SVN: r14470
parent
edff2491
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
gcc/function.c
+20
-0
No files found.
gcc/function.c
View file @
11044f66
...
...
@@ -5494,6 +5494,26 @@ expand_function_end (filename, line, end_bindings)
emit_insns_before
(
seq
,
tail_recursion_reentry
);
}
/* If we are doing stack checking and this function makes calls,
do a stack probe at the start of the function to ensure we have enough
space for another stack frame. */
if
(
flag_stack_check
&&
!
STACK_CHECK_BUILTIN
)
{
rtx
insn
,
seq
;
for
(
insn
=
get_insns
();
insn
;
insn
=
NEXT_INSN
(
insn
))
if
(
GET_CODE
(
insn
)
==
CALL_INSN
)
{
start_sequence
();
probe_stack_range
(
STACK_CHECK_PROTECT
,
GEN_INT
(
STACK_CHECK_MAX_FRAME_SIZE
));
seq
=
get_insns
();
end_sequence
();
emit_insns_before
(
seq
,
tail_recursion_reentry
);
break
;
}
}
/* Warn about unused parms if extra warnings were specified. */
if
(
warn_unused
&&
extra_warnings
)
{
...
...
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