[COMMITTED] ld: restore CC_FOR_TARGET if bailing out early for LTO tests
Project / Subsystem
binutils / ld
Date
2026-08-28
Proposer
Sam James <sam@gentoo.org>
Source type
public_inbox
Consensus
Committed
Sentiment
—/10
Technical tradeoffs
- • Ensures test environment consistency by properly restoring compiler variables.
- • Prevents potential test failures caused by lingering compiler settings.
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- discussion_id
- a376c787f1417abedb3c51516942c0077892313c.1787909218.git.sam@gentoo.org
- source_type
- public_inbox
- title
- [COMMITTED] ld: restore CC_FOR_TARGET if bailing out early for LTO tests
- headline
- ld testsuite: Restore CC_FOR_TARGET on early exit
- tldr
- Fix committed to ld testsuite to restore the CC_FOR_TARGET variable when exiting early during LTO tests, preventing potential issues if a non-Clang compiler wa…
- proposer
- Sam James <sam@gentoo.org>
- consensus
- Committed
- outcome
- committed
- sentiment_score
- —
- technical_tradeoffs
-
- • Ensures test environment consistency by properly restoring compiler variables.
- • Prevents potential test failures caused by lingering compiler settings.
- series_id
- —
- series_role
- cover
- series_parts
- []
- tags
-
- • linker
- • testsuite
- • CI
- • LTO
- • binutils
- bugzilla_url
- —
- date
- 2026-08-28T00:00:00.000Z
[COMMITTED] ld: restore CC_FOR_TARGET if bailing out early for LTO tests
Sam James reports the commitment of a fixup for a previous change in the GNU linker’s testsuite. The change ensures that the CC_FOR_TARGET variable is correctly restored to its saved value (CC_FOR_TARGET_saved) when the llvm_lto_tests procedure exits early due to missing objects. This prevents potential issues where CC_FOR_TARGET might incorrectly remain set to Clang if it was previously configured that way, even if a different compiler is intended for subsequent tests.