authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-26 12:26:11-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-31 13:40:01-07:00
log551971b5c373c98b3cf111492bc8a2048e0e7130
tree73ab1ab80c982ae5387ff56b90364310cd94e985
parent5d08e2b5d8a127d02758c7bcd4cd1b60bc7aa827

stage1: add c_longdouble mapping for s390x


1 files changed, 3 insertions(+), 0 deletions(-)

src/stage1/codegen.cpp+3
...@@ -8749,6 +8749,9 @@ static void define_builtin_types(CodeGen *g) {...@@ -8749,6 +8749,9 @@ static void define_builtin_types(CodeGen *g) {
8749 case ZigLLVM_sparcv9:8749 case ZigLLVM_sparcv9:
8750 add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);8750 add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);
8751 break;8751 break;
8752 case ZigLLVM_systemz:
8753 add_fp_entry(g, "c_longdouble", 128, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);
8754 break;
8752 case ZigLLVM_avr:8755 case ZigLLVM_avr:
8753 // It's either a float or a double, depending on a toolchain switch8756 // It's either a float or a double, depending on a toolchain switch
8754 add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);8757 add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);