Landing: b3b1b80477c2
Project / Subsystem
gcc / diagnostics
Date
2026-09-06
Author
linden
Commit
b3b1b80477c25b6ed74c2c5d3a54a6d7a15c9a09
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- diagnostics
- patch_id
- —
- commit_hash
- b3b1b80477c25b6ed74c2c5d3a54a6d7a15c9a09
- source_type
- github
- headline
- diagnostics: take HTML tag names as const char * in source-printing
- tldr
- Optimizes HTML generation in GCC diagnostics by using const char* for tag names, avoiding unnecessary string copies.
- author
- linden
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • diagnostics
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-06T00:00:00.000Z
GCC’s diagnostics module now accepts HTML tag and class names as const char* instead of std::string by value in its source-printing functions. This change avoids creating temporary std::string objects when passing string literals, improving performance for the to_text path and removing no-op std::move calls.