Landing: de7a82d53376

Project / Subsystem

binutils / risc-v

Date

2026-06-05

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

de7a82d53376d4652996e38090eccb0dcb9ad01a

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
risc-v
patch_id
commit_hash
de7a82d53376d4652996e38090eccb0dcb9ad01a
source_type
public_inbox
headline
Drop dead code from subset parsing
tldr
Binutils removes dead code and redundant checks from RISC-V ISA extension parsing, simplifying the code.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • code-quality
  • parser
discussion_id_link
bugzilla_pr
date
2026-06-05T00:00:00.000Z

This commit cleans up the RISC-V ISA extension parsing logic by removing unreachable code and redundant checks. Specifically, it addresses conditions where errmsg_internal would be an empty string, negating the need to pass it to the error handler, and eliminates unnecessary NULL checks for riscv_parsing_subset_version() which is guaranteed to return a valid result. This streamlines the code, making it more efficient and easier to understand without altering user-visible behavior.