Landing: 11cbe94d245c
Project / Subsystem
binutils / risc-v
Date
2026-06-05
Author
Jan Beulich <jbeulich@sourceware.org>
Commit
11cbe94d245c06313541e4e4c87745f74856d5dd
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- 11cbe94d245c06313541e4e4c87745f74856d5dd
- source_type
- public_inbox
- headline
- Improve error handling for subset parsing
- tldr
- RISC-V ISA extension parsing now uses a transactional approach for error handling, preserving prior state on failure.
- author
- Jan Beulich <jbeulich@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • error-handling
- • parser
- • robustness
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-05T00:00:00.000Z
The RISC-V ISA extension parsing in Binutils now employs improved error handling, ensuring that if parsing fails, the previous configuration remains intact. This is critical for scenarios like .option arch, ..., where an invalid option should not corrupt the current architectural settings. For -march=, a failed parse now correctly reverts to default extensions. The change introduces a copy-on-write mechanism for architectural state during parsing, preventing partial updates and ensuring consistency.