Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 29288f2

Browse files
committed
work around msvc bug where .model must be on its own line or it forgets about it
1 parent da8e71c commit 29288f2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

deps/openlibm

Submodule openlibm updated from 995c70e to 5f4979e

src/support/_longjmp.win32.S

+4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151
* The previous signal state is NOT restored.
5252
*/
5353

54+
#ifndef _MSC_VER
5455
.intel_syntax
56+
#else
57+
.model small,C
58+
#endif
5559
ENTRY(jl_longjmp)
5660
mov edx,DWORD PTR [esp+4]
5761
mov eax,DWORD PTR [esp+8]

src/support/_longjmp.win64.S

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "../../deps/openlibm/amd64/bsd_asm.h"
22

3+
#ifndef _MSC_VER
34
.intel_syntax noprefix
5+
#endif
46
ENTRY(jl_longjmp)
57
mov rbx,QWORD PTR [rcx+8]
68
mov rsp,QWORD PTR [rcx+16]
@@ -24,8 +26,8 @@ ENTRY(jl_longjmp)
2426
movaps xmm15,XMMWORD PTR [rcx+240]
2527
mov eax,edx
2628
test eax,eax
27-
jne 1f
29+
jne a
2830
inc eax
29-
1: mov QWORD PTR [rsp],r8
31+
a: mov QWORD PTR [rsp],r8
3032
ret
3133
END(jl_longjmp)

0 commit comments

Comments
 (0)