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
84c0bb63
Commit
84c0bb63
authored
Mar 26, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r591
parent
9987501f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
gcc/config/sparc/sparc.c
+19
-2
No files found.
gcc/config/sparc/sparc.c
View file @
84c0bb63
...
...
@@ -1832,6 +1832,20 @@ compute_frame_size (size, leaf_function)
return
actual_fsize
;
}
/* If this were a leaf function, how far would we have to reach
from the stack pointer to the last arg on the stack?
If we don't know, return 4096 (i.e., "too far".) */
int
compute_last_arg_offset
()
{
if
(
GET_CODE
(
current_function_arg_offset_rtx
)
==
CONST_INT
)
return
(
compute_frame_size
(
get_frame_size
(),
1
)
+
INTVAL
(
current_function_arg_offset_rtx
));
return
4096
;
}
void
output_function_prologue
(
file
,
size
,
leaf_function
)
FILE
*
file
;
...
...
@@ -1863,11 +1877,14 @@ output_function_prologue (file, size, leaf_function)
}
else
{
/* The rest of the support for this case hasn't been implemented,
but FRAME_POINTER_REQUIRED is supposed to prevent it from arising,
by checking the frame size. */
abort
();
/* Put pointer to parameters into %g4, and allocate
frame space using result computed into %g1. actual_fsize
used instead of apparent_fsize for reasons stated above. */
abort
();
fprintf
(
file
,
"
\t
sethi %%hi(%d),%%g1
\n\t
or %%g1,%%lo(%d),%%g1
\n
"
,
-
actual_fsize
,
-
actual_fsize
);
fprintf
(
file
,
"
\t
add %%sp,64,%%g4
\n\t
add %%sp,%%g1,%%sp
\n
"
);
...
...
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