mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 23:09:40 +02:00
* changed the ifndef avr to ifdef avr in GetNextReg
git-svn-id: branches/z80@44522 -
This commit is contained in:
parent
71cadc0a3e
commit
4b281dd6c9
@ -742,15 +742,15 @@ implementation
|
||||
{$if defined(cpu8bitalu) or defined(cpu16bitalu)}
|
||||
function tcg.GetNextReg(const r: TRegister): TRegister;
|
||||
begin
|
||||
{$ifndef AVR}
|
||||
{$ifdef AVR}
|
||||
{ the AVR code generator depends on the fact that it can do GetNextReg also on physical registers }
|
||||
if (getsupreg(r)>=first_int_imreg) and not(has_next_reg[getsupreg(r)]) then
|
||||
internalerror(2017091103);
|
||||
{$else AVR}
|
||||
if getsupreg(r)<first_int_imreg then
|
||||
internalerror(2013051401);
|
||||
if not has_next_reg[getsupreg(r)] then
|
||||
internalerror(2017091103);
|
||||
{$else AVR}
|
||||
{ the AVR code generator depends on the fact that it can do GetNextReg also on physical registers }
|
||||
if (getsupreg(r)>=first_int_imreg) and not(has_next_reg[getsupreg(r)]) then
|
||||
internalerror(2017091103);
|
||||
{$endif AVR}
|
||||
if getregtype(r)<>R_INTREGISTER then
|
||||
internalerror(2017091101);
|
||||
|
Loading…
Reference in New Issue
Block a user