Commit 39503e51 authored by Christoph Mallon's avatar Christoph Mallon

be: Restore be_set_va_list_type_pointer().

It was accidentally removed in ec7cfdce.
parent 10cf7232
......@@ -65,3 +65,8 @@ ir_entity *be_make_va_start_entity(ir_type *const frame_type, int const offset)
set_entity_offset(va_start, offset);
return va_start;
}
void be_set_va_list_type_pointer(backend_params *const p)
{
p->va_list_type = new_type_pointer(get_type_for_mode(mode_ANY));
}
......@@ -37,4 +37,6 @@ void be_set_va_list_type_pointer(backend_params *p);
ir_entity *be_make_va_start_entity(ir_type *frame_type, int offset);
void be_set_va_list_type_pointer(backend_params *p);
#endif
......@@ -1374,9 +1374,7 @@ static void ia32_init(void)
ia32_mode_float32 = new_float_mode("fp32", irma_ieee754, 8, 23,
ir_overflow_indefinite);
// va_list is a void pointer
ir_type *type_va_list = new_type_pointer(get_type_for_mode(mode_ANY));
ia32_backend_params.va_list_type = type_va_list;
be_set_va_list_type_pointer(&ia32_backend_params);
if (ia32_cg_config.use_sse2 || ia32_cg_config.use_softfloat) {
ia32_backend_params.mode_float_arithmetic = NULL;
......
......@@ -558,7 +558,7 @@ static const backend_params *sparc_get_backend_params(void)
.float_int_overflow = ir_overflow_min_max,
};
p.va_list_type = new_type_pointer(get_type_for_mode(mode_ANY));
be_set_va_list_type_pointer(&p);
sparc_mode_Q
= new_float_mode("Q", irma_ieee754, 15, 112, ir_overflow_min_max);
......
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