@@ -125,6 +125,9 @@ macro_rules! define_rust_probestack {
125
125
// Our goal here is to touch each page between %rsp+8 and %rsp+8-%rax,
126
126
// ensuring that if any pages are unmapped we'll make a page fault.
127
127
//
128
+ // FIXME(abi_custom): This function is unsafe because it uses a custom ABI,
129
+ // it does not actually match `extern "C"`.
130
+ //
128
131
// The ABI here is that the stack frame size is located in `%rax`. Upon
129
132
// return we're not supposed to modify `%rsp` or `%rax`.
130
133
//
@@ -260,6 +263,9 @@ core::arch::global_asm!(
260
263
// that on Unix we're expected to restore everything as it was, this
261
264
// function basically can't tamper with anything.
262
265
//
266
+ // FIXME(abi_custom): This function is unsafe because it uses a custom ABI,
267
+ // it does not actually match `extern "C"`.
268
+ //
263
269
// The ABI here is the same as x86_64, except everything is 32-bits large.
264
270
core:: arch:: global_asm!(
265
271
define_rust_probestack!(
@@ -303,6 +309,9 @@ core::arch::global_asm!(
303
309
// probestack function will also do things like _chkstk in MSVC.
304
310
// So we need to sub %ax %sp in probestack when arch is x86.
305
311
//
312
+ // FIXME(abi_custom): This function is unsafe because it uses a custom ABI,
313
+ // it does not actually match `extern "C"`.
314
+ //
306
315
// REF: Rust commit(74e80468347)
307
316
// rust\src\llvm-project\llvm\lib\Target\X86\X86FrameLowering.cpp: 805
308
317
// Comments in LLVM:
0 commit comments