Browse Source

* remove usage of makeregsize on avr

git-svn-id: branches/avr@17027 -
florian 14 years ago
parent
commit
4bb9407f72
1 changed files with 7 additions and 0 deletions
  1. 7 0
      compiler/ncgutil.pas

+ 7 - 0
compiler/ncgutil.pas

@@ -489,7 +489,14 @@ implementation
               { load a smaller size to OS_64 }
               if l.loc=LOC_REGISTER then
                begin
+{$ifdef AVR}
+                 { on avr, we cannot change the size of a register
+                   due to the nature how register with size > OS8 are handled
+                 }
+                 hregister:=cg.getintregister(list,OS_32);
+{$else AVR}
                  hregister:=cg.makeregsize(list,l.register64.reglo,OS_32);
+{$endif AVR}
                  cg.a_load_reg_reg(list,l.size,OS_32,l.register64.reglo,hregister);
                end
               else