Commit 5f96b99f authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: va_arg functions may not use omit-fp

parent e6e3d7a3
......@@ -196,7 +196,13 @@ calling_convention_t *sparc_decide_calling_convention(ir_type *function_type,
if (irg != NULL) {
const be_options_t *options = be_get_irg_options(irg);
omit_fp = options->omit_fp;
irg_walk_graph(irg, check_omit_fp, NULL, &omit_fp);
/* our current vaarg handling needs the standard space to store the
* args 0-5 in it */
if (get_method_variadicity(function_type) == variadicity_variadic)
omit_fp = false;
if (omit_fp == true) {
irg_walk_graph(irg, check_omit_fp, NULL, &omit_fp);
}
}
caller_saves = rbitset_malloc(N_SPARC_REGISTERS);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment