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
76e0d211
Commit
76e0d211
authored
Jul 17, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reload): If checking stack, verify frame small enough.
From-SVN: r14471
parent
11044f66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
gcc/reload1.c
+14
-0
No files found.
gcc/reload1.c
View file @
76e0d211
...
...
@@ -2162,6 +2162,20 @@ reload (first, global, dumpfile)
}
#endif
/* If we are doing stack checking, give a warning if this function's
frame size is larger than we expect. */
if
(
flag_stack_check
&&
!
STACK_CHECK_BUILTIN
)
{
HOST_WIDE_INT
size
=
get_frame_size
()
+
STACK_CHECK_FIXED_FRAME_SIZE
;
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
if
(
regs_ever_live
[
i
]
&&
!
fixed_regs
[
i
]
&&
call_used_regs
[
i
])
size
+=
UNITS_PER_WORD
;
if
(
size
>
STACK_CHECK_MAX_FRAME_SIZE
)
warning
(
"frame size too large for reliable stack checking"
);
}
/* Indicate that we no longer have known memory locations or constants. */
reg_equiv_constant
=
0
;
reg_equiv_memory_loc
=
0
;
...
...
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