Landing: 8bfe91366809

Project / Subsystem

gcc / avr

Date

2026-08-15

Author

Georg-Johann Lay

Commit

8bfe9136680918608fe0c4af0fdf6f5fd759d0e5

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
avr
patch_id
—
commit_hash
8bfe9136680918608fe0c4af0fdf6f5fd759d0e5
source_type
github
headline
AVR: Use named constants instead of magic numbers in avr-fixed.md
tldr
Replaces magic numbers with named constants in AVR fixed-point instruction definitions.
author
Georg-Johann Lay
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • avr
  • • maintainability
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-08-15T00:00:00.000Z

This commit improves the readability and maintainability of the AVR backend’s fixed-point instruction definitions. It replaces hardcoded “magic numbers” in the avr-fixed.md file with symbolic constants, such as REG_24. This change makes the code easier to understand and less prone to errors caused by unclear numerical values.