Landing: 413cf36d8e81

Project / Subsystem

binutils / risc-v

Date

2026-06-05

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

413cf36d8e816f8fbbe30d73e118416281c231e4

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
risc-v
patch_id
commit_hash
413cf36d8e816f8fbbe30d73e118416281c231e4
source_type
public_inbox
headline
Make riscv_parse_subset_t's isa_spec only parser input
tldr
The `isa_spec` field in RISC-V subset parsing is now read-only, clarifying its role as input.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • code-quality
  • readability
discussion_id_link
bugzilla_pr
date
2026-06-05T00:00:00.000Z

This commit clarifies the purpose of the isa_spec field within the riscv_parse_subset_t structure by converting it to a pointer-to-const. This modification, along with removing an indirection in riscv_get_default_ext_version(), ensures that the parsing logic treats isa_spec strictly as input and cannot inadvertently alter its value. This improves code clarity and reinforces the immutability of the specification class during parsing, preventing potential side effects.