[PATCH] lto: Don't check format of IR dummy file
Project / Subsystem
binutils / lto
Date
2026-08-28
Proposer
"H.J. Lu" <hjl.tools@gmail.com>
Source type
public_inbox
Consensus
Needs Revision
Sentiment
4/10
Technical tradeoffs
- • Removes a potentially unnecessary format check for LTO IR dummy files.
- • Increases robustness by allowing empty destination lists in internal functions.
All attributes
- project
- binutils
- subsystem
- lto
- patch_id
- —
- discussion_id
- CAMe9rOooyG9+Uh7Ga=ZiA2nhUzEO8sBZT3vb1Bd5pTMAoxWWag@mail.gmail.com
- source_type
- public_inbox
- title
- [PATCH] lto: Don't check format of IR dummy file
- headline
- lto: Skip IR dummy file format check
- tldr
- Patch to prevent the linker from checking the format of an IR dummy file during LTO processing, fixing PR ld/34572.
- proposer
- "H.J. Lu" <hjl.tools@gmail.com>
- consensus
- Needs Revision
- outcome
- needs_revision
- sentiment_score
- 4
- technical_tradeoffs
-
- • Removes a potentially unnecessary format check for LTO IR dummy files.
- • Increases robustness by allowing empty destination lists in internal functions.
- series_id
- —
- series_role
- reply
- series_parts
- []
- tags
-
- • lto
- • linker
- • binutils
- • compiler
- bugzilla_url
- —
- date
- 2026-08-28T00:00:00.000Z
[PATCH] lto: Don't check format of IR dummy file
H.J. Lu submits a patch to address PR ld/34572, which involves Link-Time Optimization (LTO). The patch modifies ldlang.c to avoid checking the format of an Intermediate Representation (IR) dummy file within the lang_check function. Additionally, it allows for an empty DESTLIST in lang_list_remove_tail. The changes aim to resolve testsuite failures observed on specific platforms like x86_64-w64-mingw32.