Landing: 4c85f7cf587f

Project / Subsystem

gcc / lto

Date

2026-07-11

Author

Lewis Hyatt

Commit

4c85f7cf587f0f62a5eb1884998d4ed30a39552a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
lto
patch_id
commit_hash
4c85f7cf587f0f62a5eb1884998d4ed30a39552a
source_type
github
headline
LTO front end now supports diagnostic pragmas
tldr
Link-Time Optimization front end can now process and stream diagnostic pragmas, improving build control.
author
Lewis Hyatt
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • lto
  • diagnostics
  • pragma
discussion_id_link
bugzilla_pr
date
2026-07-11T00:00:00.000Z

The LTO front end has been enhanced to support compiler diagnostic pragmas, such as #pragma GCC diagnostic. This change ensures that diagnostic settings are correctly streamed and reconstructed during the LTO process, even when functions are distributed across multiple LTO sections. New test cases verify this functionality.