diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-09-26 13:44:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-26 13:44:36 -0400 |
| commit | 4d65373a3d0f616cceb4bef67289d014f30d8ea4 (patch) | |
| tree | 3a3aa42808895a117240fd32a3bbecfe2a7ed78c /src/analyze.cpp | |
| parent | 2c8864f634cbb42bf45f4f6b7109e9129b357247 (diff) | |
| parent | a94372231ca3c4daab3cf2bc54d2de135ecdd5e8 (diff) | |
| download | zig-4d65373a3d0f616cceb4bef67289d014f30d8ea4.tar.gz zig-4d65373a3d0f616cceb4bef67289d014f30d8ea4.zip | |
Merge pull request #3311 from LemonBoy/mips
Initial support for mipsel architecture
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index bdb007a68a..e0ba82f9b5 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -918,6 +918,8 @@ bool want_first_arg_sret(CodeGen *g, FnTypeId *fn_type_id) { return abi_class == X64CABIClass_MEMORY; } else if (target_is_arm(g->zig_target)) { return type_size(g, fn_type_id->return_type) > 16; + } else if (g->zig_target->arch == ZigLLVM_mipsel) { + return false; } zig_panic("TODO implement C ABI for this architecture. See https://github.com/ziglang/zig/issues/1481"); } |
