Skip to content

Commit 96a83a0

Browse files
committed
Clarify that omitting nostack is a promise from the compiler to the programmer
1 parent d01f991 commit 96a83a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inline-assembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ let _: () = unsafe {
11841184

11851185
r[asm.options.supported-options.nostack]
11861186
- `nostack`: The assembly code does not push data to the stack, or write to the stack red-zone (if supported by the target).
1187-
If this option is *not* used then the stack pointer is guaranteed to be suitably aligned (according to the target ABI) for a function call.
1187+
If this option is *not* used then the stack pointer is guaranteed by the compiler to be suitably aligned (according to the target ABI) for a function call at the start of the assembly code.
11881188

11891189
<!-- no_run: Test has undefined behavior at runtime -->
11901190
```rust,no_run

0 commit comments

Comments
 (0)