Landing: 613ade639ab8

Project / Subsystem

gcc / diagnostics

Date

2026-07-11

Author

Lewis Hyatt

Commit

613ade639ab886f853f3713b1ef4587fdcebe6d8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
diagnostics
patch_id
commit_hash
613ade639ab886f853f3713b1ef4587fdcebe6d8
source_type
github
headline
Diagnostics interface prepared for LTO pragmas
tldr
Minor changes to diagnostics API support upcoming LTO diagnostic pragmas.
author
Lewis Hyatt
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • diagnostics
  • lto
  • compiler internals
discussion_id_link
bugzilla_pr
date
2026-07-11T00:00:00.000Z

This commit makes preparatory changes to the GCC diagnostics interface to enable support for #pragma GCC diagnostic within the LTO streaming code. It involves making a type name public, adding a range indicator to an enum for LTO’s convenience, and removing unused, potentially incorrect logic from a diagnostic classification function. These adjustments facilitate LTO’s ability to manage diagnostic settings across compilation units.