File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1220,7 +1220,7 @@ r[asm.rules.reg-not-output]
1220
1220
Code should not rely on this however since it depends on the results of register allocation.
1221
1221
1222
1222
r[ asm.rules.unwind]
1223
- - Behavior is undefined if execution unwinds out of an asm block.
1223
+ - Behavior is undefined if execution unwinds out of an ` asm! ` block.
1224
1224
- This also applies if the assembly code calls a function which then unwinds.
1225
1225
1226
1226
r[ asm.rules.mem-same-as-ffi]
@@ -1359,6 +1359,10 @@ r[asm.naked-rules.reg-not-output]
1359
1359
- Any callee-saved registers must have the same value upon return as they had on entry, otherwise behavior is undefined.
1360
1360
- Caller-saved registes may be used freely, even if they are not used for the return value.
1361
1361
1362
+ r[ asm.rules.unwind]
1363
+ - Unwinding out of a ` naked_asm! ` block is allowed.
1364
+ - For correct behavior, the appropriate assembler directives that emit unwinding metadata must be used.
1365
+
1362
1366
r[ asm.naked-rules.noreturn]
1363
1367
- Behavior is undefined if execution falls through to the end of the ` naked_asm! ` block.
1364
1368
- the assembly code is expected to contain a return instruction or to diverge
You can’t perform that action at this time.
0 commit comments