Commit 6af6c3c979

Andrew Kelley <andrew@ziglang.org>
2021-03-01 05:59:45
update i386 assembly to satisify llvm12
Without this, LLVM 12 says: error: ambiguous instructions require an explicit suffix (could be 'retw', or 'retl')
1 parent 4b1fe8e
Changed files (2)
lib
std
special
lib/std/special/compiler_rt/stack_probe.zig
@@ -53,7 +53,7 @@ pub fn zig_probe_stack() callconv(.Naked) void {
                 \\        orl    $0,8(%%esp)
                 \\        add    %%eax,%%esp
                 \\        pop    %%ecx
-                \\        ret
+                \\        retw
             );
         },
         else => {},
lib/std/special/c.zig
@@ -325,7 +325,7 @@ fn clone() callconv(.Naked) void {
                 \\  pop %%esi
                 \\  pop %%ebx
                 \\  pop %%ebp
-                \\  ret
+                \\  retw
             );
         },
         .x86_64 => {