Landing: 6342dc8a7f9d
Project / Subsystem
gcc / gccrs
Date
2026-08-17
Author
Philip Herron
Commit
6342dc8a7f9dcce8d960b45bca27c33da9911ede
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 6342dc8a7f9dcce8d960b45bca27c33da9911ede
- source_type
- github
- headline
- Wrap debug output calls in gccrs to reduce compile time when disabled
- tldr
- gccrs optimizes compile times by wrapping debug output calls, preventing argument evaluation when debugging is off.
- author
- Philip Herron
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • rust
- • compiler
- • optimization
- • compile time
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-17T00:00:00.000Z
Compile times in gccrs are improved by refactoring debug output calls into a do-while wrapper. This change ensures that arguments to debug functions are only evaluated when debugging is actually enabled, preventing unnecessary computation and speeding up compilation when debug output is turned off. The changes affect rust-diagnostics.cc and rust-diagnostics.h.