Landing: 2bb5e43f9c04
Project / Subsystem
gcc / diagnostics
Date
2026-03-12
Author
David Malcolm
Commit
2bb5e43f9c0444eab33a9201057fb1bae6b20e86
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- diagnostics
- patch_id
- —
- commit_hash
- 2bb5e43f9c0444eab33a9201057fb1bae6b20e86
- source_type
- github
- headline
- Diagnostics: Use label_text in diagnostics::option_id_manager
- tldr
- Improves memory management in the diagnostics subsystem by using label_text for option IDs.
- author
- David Malcolm
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • diagnostics
- • memory management
- • refactoring
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-03-12T00:00:00.000Z
This commit improves memory management within the GCC diagnostics subsystem. It replaces manual memory management for option names and URLs with label_text, leveraging standard containers to manage the set of rule IDs in SARIF output, which simplifies the code and reduces the risk of memory leaks. This change impacts the generation of diagnostic messages and SARIF reports.