Skip to content

Commit 1664261

Browse files
WebKit ARM64 Builderclaude
andcommitted
Remove .previous directives from ARM64 StackPointer assembly
The .previous directive is not supported by LLVM ARM64 assembler on Windows. Remove all instances to fix compilation of StackPointer.cpp on ARM64 Windows. Fixes: <inline asm>(7,1): error: unknown directive .previous 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent cba4dc1 commit 1664261

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Source/WTF/wtf/StackPointer.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ asm (
5050
"movl %esp, %eax" "\n"
5151
"addl $4, %eax" "\n"
5252
"ret" "\n"
53-
".previous" "\n"
5453
);
5554

5655
#elif CPU(X86_64) && OS(WINDOWS)
@@ -80,7 +79,6 @@ asm (
8079
"movq %rsp, %rax" "\n"
8180
"addq $8, %rax" "\n" // Account for return address.
8281
"ret" "\n"
83-
".previous" "\n"
8482
);
8583

8684
#elif CPU(ARM64E)
@@ -93,7 +91,6 @@ asm (
9391
"pacibsp" "\n"
9492
"mov x0, sp" "\n"
9593
"retab" "\n"
96-
".previous" "\n"
9794
);
9895

9996
#elif CPU(ARM64)
@@ -105,7 +102,6 @@ asm (
105102

106103
"mov x0, sp" "\n"
107104
"ret" "\n"
108-
".previous" "\n"
109105
);
110106

111107
#elif CPU(ARM_THUMB2)
@@ -119,7 +115,6 @@ asm (
119115

120116
"mov r0, sp" "\n"
121117
"bx lr" "\n"
122-
".previous" "\n"
123118
);
124119

125120
#elif CPU(MIPS)
@@ -135,7 +130,6 @@ asm (
135130
"jr $ra" "\n"
136131
"nop" "\n"
137132
".set pop" "\n"
138-
".previous" "\n"
139133
);
140134

141135
#elif CPU(RISCV64)
@@ -146,8 +140,7 @@ asm (
146140

147141
"mv x10, sp" "\n"
148142
"ret" "\n"
149-
".previous" "\n"
150-
);
143+
);
151144

152145
#elif CPU(LOONGARCH64)
153146
asm (
@@ -157,8 +150,7 @@ asm (
157150

158151
"move $r4, $r3" "\n"
159152
"jr $r1" "\n"
160-
".previous" "\n"
161-
);
153+
);
162154

163155
#else
164156
#error "Unsupported platform: need implementation of currentStackPointer."

0 commit comments

Comments
 (0)