Skip to content

Commit 19d2434

Browse files
committed
Fix illumos compile error in coreclr/runtime/amd64/AllocFast.S
on illumos with gcc 13.3 cross copmiler coreclr/runtime/amd64/AllocFast.S: Assembler messages: coreclr/runtime/amd64/AllocFast.S:237: Error: missing ')'
1 parent 52d934e commit 19d2434

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/coreclr/runtime/amd64/AllocFast.S

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,11 @@ LEAF_END RhpNewArrayFast, _TEXT
233233
LEAF_ENTRY RhpNewPtrArrayFast, _TEXT
234234

235235
// Delegate overflow handling to the generic helper conservatively
236+
// The constant 0x8000000 is (0x40000000 / sizeof(void*))
237+
// Some assemblers don't like an expression here, so the
238+
// constant expression is reduced to it's simple form.
236239

237-
cmp rsi, (0x40000000 / 8) // sizeof(void*)
240+
cmp rsi, 0x8000000 // (0x40000000 / 8)
238241
jae C_FUNC(RhpNewArrayFast)
239242

240243
// In this case we know the element size is sizeof(void *), or 8 for x64

0 commit comments

Comments
 (0)