Skip to content

Conversation

@maribu
Copy link

@maribu maribu commented Nov 30, 2025

Compilation with GCC 15.2.0 failed with:

asm_avr.inc:915:5: error: cannot find a register in class 'POINTER_Y_REGS' while reloading 'asm'

This works around the issue by manually placing right into the Y register before the inline assembly.

The generated assembly from the function is almost perfectly identical. Here is a side-by-side comparison. Basically the old code prepared first the Z register, then the Y register, the new code swaps the order. Otherwise the generated code is identical.

Compilation with GCC 15.2.0 failed with:

    asm_avr.inc:915:5: error: cannot find a register in class 'POINTER_Y_REGS' while reloading 'asm'

This works around the issue by manually placing right into the Y
register before the inline assembly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant