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
bf79bbd4
Commit
bf79bbd4
authored
Jun 10, 2014
by
Tobias Rapp
Browse files
amd64: Fix segfault for functions with variable arguments
(printf now works with floating point)
parent
c99e3533
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_cconv.c
View file @
bf79bbd4
...
...
@@ -198,6 +198,11 @@ amd64_cconv_t *amd64_decide_calling_convention(ir_type *function_type,
}
}
/* vararg calls need additional stack space */
if
(
get_method_variadicity
(
function_type
)
==
variadicity_variadic
)
{
stack_offset
+=
AMD64_REGISTER_SIZE
;
}
amd64_cconv_t
*
cconv
=
XMALLOCZ
(
amd64_cconv_t
);
cconv
->
parameters
=
params
;
cconv
->
param_stack_size
=
stack_offset
;
...
...
Write
Preview
Supports
Markdown
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