Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
468ae7e4
Commit
468ae7e4
authored
Sep 12, 2014
by
yb9976
Browse files
SPARC: Do not omit the frame pointer in case of compound returns.
This fixes backend/sparc_segfault.c.
parent
580889d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_cconv.c
View file @
468ae7e4
...
...
@@ -168,6 +168,13 @@ calling_convention_t *sparc_decide_calling_convention(ir_type *function_type,
* args 0-5 in it */
if
(
get_method_variadicity
(
function_type
)
==
variadicity_variadic
)
omit_fp
=
false
;
/* The pointer to the aggregate return value belongs to the 92 magic bytes.
* Thus, if the called functions increases the stack size,
* it must copy the value to the appropriate location.
* This is not implemented yet, so we forbid to omit the frame pointer.
*/
if
(
get_method_calling_convention
(
function_type
)
&
cc_compound_ret
)
omit_fp
=
false
;
if
(
omit_fp
==
true
)
{
irg_walk_graph
(
irg
,
check_omit_fp
,
NULL
,
&
omit_fp
);
}
...
...
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