rust/compiler/rustc_codegen_ssa/src
Stuart Cook 92ea947c78
Rollup merge of #146793 - folkertdev:naked-asm-func-end, r=Amanieu
naked_asm: emit a label starting with `func_end`

The `cargo asm` tool (`cargo install cargo-show-asm`) pattern matches on such labels to figure out where functions end: normal functions generated by LLVM always do have such a label. We don't guarantee that naked functions emit such a label, but having `cargo asm` work is convenient.

be45f67454/src/asm/statements.rs (L897-L901)

To make the label name unique it's suffixed with the name of the current symbol.

r? ```@Amanieu```
2025-09-21 14:42:35 +10:00
..
back Add --print target-spec-json-schema 2025-09-12 20:53:28 +02:00
debuginfo Flatten ifs in rustc_codegen_ssa 2025-03-17 18:56:52 +00:00
mir Rollup merge of #146793 - folkertdev:naked-asm-func-end, r=Amanieu 2025-09-21 14:42:35 +10:00
traits Update the FIXME comments in the generic three_way_compare 2025-09-16 11:49:21 -07:00
assert_module_sources.rs Print CGU reuse statistics when -Zprint-mono-items is enabled 2025-08-04 15:43:50 +02:00
base.rs Remove DynKind 2025-09-17 04:46:46 +02:00
codegen_attrs.rs initial implementation of the darwin_objc unstable feature 2025-09-13 16:06:22 -07:00
common.rs Move NativeLibKind from rustc_session to rustc_hir 2025-08-27 20:24:59 +02:00
errors.rs Set lto="fat" automatically when compiling with RUSTFLAGS="-Zautodiff=Enable". 2025-09-18 15:26:14 +08:00
lib.rs Ensure fat LTO doesn't merge everything into the allocator module 2025-09-06 13:31:41 +00:00
meth.rs Remove DynKind 2025-09-17 04:46:46 +02:00
mono_item.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
size_of_val.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
target_features.rs Add an experimental unsafe(force_target_feature) attribute. 2025-08-22 01:26:26 +02:00