Commit 7af4a072 authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: use 128bit long double even for softfloat

We can't handle 128bit long double in softfloat yet, but most libraries
are compiled like this. It's better to have the compiler fail than to
produce code with a mismatching ABI in the default setting.
parent 9216d89f
......@@ -546,16 +546,11 @@ static const backend_params *sparc_get_backend_params(void)
p.type_long_long = type_long_long;
p.type_unsigned_long_long = type_unsigned_long_long;
if (sparc_isa_template.fpu_arch == SPARC_FPU_ARCH_SOFTFLOAT) {
p.mode_float_arithmetic = NULL;
p.type_long_double = NULL;
} else {
ir_type *type_long_double = new_type_primitive(mode_Q);
ir_type *type_long_double = new_type_primitive(mode_Q);
set_type_alignment_bytes(type_long_double, 8);
set_type_size_bytes(type_long_double, 16);
p.type_long_double = type_long_double;
}
set_type_alignment_bytes(type_long_double, 8);
set_type_size_bytes(type_long_double, 16);
p.type_long_double = type_long_double;
return &p;
}
......
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