Landing: 7b350a051058

Project / Subsystem

gcc / avr

Date

2026-07-08

Author

Georg-Johann Lay

Commit

7b350a051058e95bb2640469bd040daab671f26c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
avr
patch_id
commit_hash
7b350a051058e95bb2640469bd040daab671f26c
source_type
github
headline
AVR: Add R18:SI = neg R18:SI to libgcc.
tldr
AVR libgcc gains a factored-out negation function for R18:SI and a conditional call macro.
author
Georg-Johann Lay
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • avr
  • libgcc
  • optimization
discussion_id_link
bugzilla_pr
date
2026-07-08T00:00:00.000Z

The AVR version of libgcc now includes a new function, _negsi2_r18, which factors out common code for negating the R18:SI register. Additionally, a new macro, .call_if_neg, is introduced to conditionally call a label based on a register’s value. These changes improve code reuse and convenience in libgcc’s AVR implementation.