[RFC PATCH] LoongArch: Add parameters to DWARF2_USE_FIXED_ADVANCE_PC macro

Project / Subsystem

binutils / loongarch

Date

2026-07-22

Proposer

mengqinggang <mengqinggang@loongson.cn>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Increased complexity in DWARF line number generation logic.
  • Potential for more accurate or compact DWARF information.
  • Added control for specific architectures like LoongArch.

All attributes

project
binutils
subsystem
loongarch
patch_id
discussion_id
20260722032330.1310277-1-mengqinggang@loongson.cn
source_type
public_inbox
title
[RFC PATCH] LoongArch: Add parameters to DWARF2_USE_FIXED_ADVANCE_PC macro
headline
LoongArch: Add parameters to DWARF2_USE_FIXED_ADVANCE_PC macro
tldr
Patch adds FROM and TO symbol parameters to DWARF2_USE_FIXED_ADVANCE_PC macro for LoongArch for finer DWARF debug info control.
proposer
mengqinggang <mengqinggang@loongson.cn>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Increased complexity in DWARF line number generation logic.
  • Potential for more accurate or compact DWARF information.
  • Added control for specific architectures like LoongArch.
series_id
series_role
standalone
series_parts
[]
tags
  • binutils
  • gas
  • dwarf
  • loongarch
  • debugging
bugzilla_url
date
2026-07-22T00:00:00.000Z

[RFC PATCH] LoongArch: Add parameters to DWARF2_USE_FIXED_ADVANCE_PC macro

This RFC patch for binutils’ LoongArch support introduces parameters to the DWARF2_USE_FIXED_ADVANCE_PC macro. The goal is to allow finer-grained control over DWARF debug information generation, specifically by deciding whether to use the DW_LNS_fixed_advance_pc opcode or special opcodes based on the presence of linker-relaxable instructions between symbols.