On Tue, Jul 29, 2025 at 11:26:40PM +0200, Georg-Johann Lay wrote:
> Am 29.07.25 um 15:56 schrieb Stefan Schulze Frielinghaus:
> > From: Stefan Schulze Frielinghaus <stefa...@gcc.gnu.org>
> > 
> > Targets hppa, m68k, pdp11, rx, sh, vax do not default to LRA.  Since old
> > reload pass is still used, add option -mlra for those targets.
> > 
> > For hppa, register 0 cannot be used as a general register.  Therefore,
> > use temporary registers r20 and r21 instead.
> > 
> > gcc/testsuite/ChangeLog:
> > 
> >     * gcc.dg/asm-hard-reg-error-4.c: Add option -mlra for targets
> >     hppa, m68k, pdp11, rx, sh, vax. Use registers r20 and r21 for
> >     hppa.
> 
> Same for avr: r0 and r1 are fixed there.  All other regs 2..31 are fine.
> (notice that int starts in an even register).

I will include

#elif defined __AVR__
# define R0 "20"
# define R1 "24"

in order to tackle this.  Thanks for letting me know.

Cheers,
Stefan

Reply via email to