Landing: df28012bc929
Project / Subsystem
gcc / avr
Date
2026-06-11
Author
Georg-Johann Lay
Commit
df28012bc9294aa76490d90498a2a55c6d92c688
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- avr
- patch_id
- —
- commit_hash
- df28012bc9294aa76490d90498a2a55c6d92c688
- source_type
- github
- headline
- Fixes too-short instruction lengths in AVR fractional output function.
- tldr
- GCC's AVR backend now correctly calculates instruction lengths in `avr_out_fract`, resolving a bug where sequences were too short.
- author
- Georg-Johann Lay
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • avr
- • bugfix
- • code-generation
- • assembly
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-11T00:00:00.000Z
This commit fixes a bug in the avr_out_fract function within GCC’s AVR backend where the calculated instruction lengths for fractional number output were too short. The function, located in config/avr/avr.cc, was incorrectly invoking avr_asm_len with insufficient sequence lengths, potentially leading to malformed assembly or incorrect code generation. Correcting these lengths ensures that the AVR compiler generates accurate and properly aligned assembly code for fractional operations, improving the reliability of embedded applications that rely on such arithmetic.