rust/compiler/rustc_codegen_ssa/src/back
Guillaume Gomez 526c67f37b
Rollup merge of #131829 - Zalathar:goodbye-zprofile, r=chenyukang
Remove support for `-Zprofile` (gcov-style coverage instrumentation)

Tracking issue: #42524

MCP: https://github.com/rust-lang/compiler-team/issues/798

---

This PR removes the unstable `-Zprofile` flag, which enables ”gcov-style” coverage instrumentation, along with its associated `-Zprofile-emit` configuration flag.

(The profile flag predates and is almost entirely separate from the stable `-Cinstrument-coverage` flag.)

Notably, the `-Zprofile` flag:
- Is largely untested in-tree, having only one run-make test that does not check whether its output is correct or useful.
- Has no known maintainer.
- Has seen no push towards stabilization.
- Has at least one severe regression reported in 2022 that apparently remains unaddressed.
  - #100125
- Is confusingly named, since it appears to be more about coverage than performance profiling, and has nothing to do with PGO.
- Is fundamentally limited by relying on counters auto-inserted by LLVM, with no knowledge of Rust beyond debuginfo.
2024-11-02 03:08:49 +08:00
..
rpath Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
archive.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
command.rs Minimize visibilities. 2024-09-17 16:24:33 +10:00
link.rs Fix hardcoded strip path when cross-compiling from Linux to Darwin 2024-10-10 04:03:48 +02:00
linker.rs Avoid redundant -Wl,-dylib flag when linking 2024-10-10 03:51:11 +02:00
lto.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
metadata.rs Remove "" case from RISC-V llvm_abiname match statement 2024-10-31 19:17:07 +00:00
mod.rs Minimize visibilities. 2024-09-17 16:24:33 +10:00
rpath.rs Minimize visibilities. 2024-09-17 16:24:33 +10:00
symbol_export.rs Effects cleanup 2024-10-26 10:19:07 +08:00
write.rs Remove support for -Zprofile (gcov-style coverage instrumentation) 2024-10-31 09:09:25 +11:00