Landing: eaf619a0f552

Project / Subsystem

gcc / avr

Date

2026-05-28

Author

Georg-Johann Lay

Commit

eaf619a0f552d73068a06d959ea6a4b8a19ff674

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
avr
patch_id
commit_hash
eaf619a0f552d73068a06d959ea6a4b8a19ff674
source_type
github
headline
AVR: Supports [[len=<words>]] notes in inline asm to specify its size.
tldr
GCC now supports `[[len=<words>]]` notes in AVR inline assembly to specify the size of the assembly code.
author
Georg-Johann Lay
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • avr
  • inline assembly
  • optimization
  • code generation
discussion_id_link
bugzilla_pr
date
2026-05-28T00:00:00.000Z

This commit adds support for [[len=<words>]] notes in AVR inline assembly constructs. This feature allows developers to specify the size of inline assembly code, which is essential for correct jump offset calculations and better code generation, especially when jumps cross assembly blocks. It is implemented in ADJUST_INSN_LENGTH.