mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
stage1: fix type mapping for integers and c_longdouble on nvptx
This commit is contained in:
parent
d2cdfb9490
commit
b24e475717
@ -8901,6 +8901,10 @@ static void define_builtin_types(CodeGen *g) {
|
|||||||
case ZigLLVM_bpfeb:
|
case ZigLLVM_bpfeb:
|
||||||
add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);
|
add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);
|
||||||
break;
|
break;
|
||||||
|
case ZigLLVM_nvptx:
|
||||||
|
case ZigLLVM_nvptx64:
|
||||||
|
add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
zig_panic("TODO implement mapping for c_longdouble");
|
zig_panic("TODO implement mapping for c_longdouble");
|
||||||
}
|
}
|
||||||
|
@ -680,6 +680,8 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
|
|||||||
case OsSolaris:
|
case OsSolaris:
|
||||||
case OsEmscripten:
|
case OsEmscripten:
|
||||||
case OsPlan9:
|
case OsPlan9:
|
||||||
|
case OsCUDA:
|
||||||
|
case OsNVCL:
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case CIntTypeShort:
|
case CIntTypeShort:
|
||||||
case CIntTypeUShort:
|
case CIntTypeUShort:
|
||||||
@ -741,8 +743,6 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
|
|||||||
case OsRTEMS:
|
case OsRTEMS:
|
||||||
case OsNaCl:
|
case OsNaCl:
|
||||||
case OsAIX:
|
case OsAIX:
|
||||||
case OsCUDA:
|
|
||||||
case OsNVCL:
|
|
||||||
case OsAMDHSA:
|
case OsAMDHSA:
|
||||||
case OsPS4:
|
case OsPS4:
|
||||||
case OsELFIAMCU:
|
case OsELFIAMCU:
|
||||||
|
Loading…
Reference in New Issue
Block a user