Re: [PATCH 19/19] RISC-V/gas: .attribute vs .insn

Project / Subsystem

binutils / risc-v/gas

Date

2026-04-29

Proposer

Jiawei <jiawei@iscas.ac.cn>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Stricter enforcement of `.attribute` placement may break existing assembly code.
  • Adding warnings for conflicting or invalid attribute values may increase the complexity of the assembler.
  • Relaxing the `start_assemble` restriction could introduce ABI compatibility issues.

All attributes

project
binutils
subsystem
risc-v/gas
patch_id
discussion_id
fb7e7090-c67f-46c1-bb39-fd91b03d0bf3@iscas.ac.cn
source_type
public_inbox
title
Re: [PATCH 19/19] RISC-V/gas: .attribute vs .insn
headline
RISC-V/gas: .attribute vs .insn
tldr
The `.attribute` directive must precede any instruction, including those emitted by `.insn`; related improvements are suggested.
proposer
Jiawei <jiawei@iscas.ac.cn>
consensus
Proposed
outcome
ready
sentiment_score
technical_tradeoffs
  • Stricter enforcement of `.attribute` placement may break existing assembly code.
  • Adding warnings for conflicting or invalid attribute values may increase the complexity of the assembler.
  • Relaxing the `start_assemble` restriction could introduce ABI compatibility issues.
series_id
binutils:risc-v/gas: .attribute vs .insn
series_role
reply
series_parts
[]
tags
  • risc-v
  • assembler
  • attributes
  • abi
  • gas
bugzilla_url
date
2026-04-29T00:00:00.000Z

Re: [PATCH 19/19] RISC-V/gas: .attribute vs .insn

Jiawei agrees that .attribute directives in RISC-V assembly should be enforced before any instruction, including those generated by .insn. They also suggest improvements like warning about conflicting attribute values and invalid values for unaligned_access, but recommends a separate discussion for relaxing the start_assemble restriction due to potential ABI compatibility issues.