[PATCH v4 08/12] RISC-V/gas: .attribute vs .insn

Project / Subsystem

binutils / risc-v/gas

Date

2026-07-24

Proposer

Jan Beulich <jbeulich@suse.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Centralizes initialization logic, improving code clarity and maintainability.
  • Maintains stricter checks for attribute settings, potentially impacting flexibility as noted in the RFC comment.

All attributes

project
binutils
subsystem
risc-v/gas
patch_id
discussion_id
79efa0c6-7c9a-4b95-8404-d983e62790ed@suse.com
source_type
public_inbox
title
[PATCH v4 08/12] RISC-V/gas: .attribute vs .insn
headline
RISC-V/gas: .attribute vs .insn
tldr
Align RISC-V assembler's .attribute directive handling with .insn instructions.
proposer
Jan Beulich <jbeulich@suse.com>
consensus
Proposed
outcome
ready
sentiment_score
technical_tradeoffs
  • Centralizes initialization logic, improving code clarity and maintainability.
  • Maintains stricter checks for attribute settings, potentially impacting flexibility as noted in the RFC comment.
series_id
binutils:risc-v/gas: .attribute vs .insn
series_role
reply
series_parts
[]
tags
  • binutils
  • risc-v
  • gas
  • attribute
  • instruction
bugzilla_url
date
2026-07-24T00:00:00.000Z

[PATCH v4 08/12] RISC-V/gas: .attribute vs .insn

This patch refactors the RISC-V GNU Assembler (gas) to ensure that directives like .attribute are processed correctly before instructions generated by .insn. A new helper function start_assembly is introduced to manage this initialization logic, ensuring consistency between attribute settings and instruction encoding.