diff options
Diffstat (limited to 'lib/alloca86_64.S')
-rw-r--r-- | lib/alloca86_64.S | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/alloca86_64.S b/lib/alloca86_64.S index 4a74104..ae3c97d 100644 --- a/lib/alloca86_64.S +++ b/lib/alloca86_64.S @@ -5,7 +5,7 @@ alloca: pop %rdx -#ifdef TCC_TARGET_PE +#ifdef _WIN32 mov %rcx,%rax #else mov %rdi,%rax @@ -14,7 +14,7 @@ alloca: and $-16,%rax jz p3 -#ifdef TCC_TARGET_PE +#ifdef _WIN32 p1: cmp $4096,%rax jbe p2 @@ -27,16 +27,8 @@ p2: sub %rax,%rsp mov %rsp,%rax -#ifdef TCC_TARGET_PE - add $32,%rax -#endif - p3: push %rdx ret -/* mark stack as nonexecutable */ -#if defined __ELF__ && defined __linux__ - .section .note.GNU-stack,"",@progbits -#endif /* ---------------------------------------------- */ |