2
0
Эх сурвалжийг харах

- rm the ifdef cpu16bitalu and cpu64bitalu from thlcgobj.a_load_ref_cgpara,
because they:
- worsen readability (especially if we add cpu8bitalu as well, for
completeness)
- are not needed, because the else clause of the previous if ensures that we
have (sizeleft<=sizeof(aint)) and sizeof(aint) follows the target cpu alu
size

git-svn-id: trunk@27664 -

nickysn 11 жил өмнө
parent
commit
9758a53fa6

+ 1 - 1
compiler/hlcgobj.pas

@@ -870,7 +870,7 @@ implementation
                  { we're at the end of the data, and it can be loaded into
                  { we're at the end of the data, and it can be loaded into
                    the current location's register with a single regular
                    the current location's register with a single regular
                    load }
                    load }
-                 else if (sizeleft in [1,2{$ifndef cpu16bitalu},4{$endif}{$ifdef cpu64bitalu},8{$endif}]) then
+                 else if sizeleft in [1,2,4,8] then
                    begin
                    begin
                      { don't use cgsize_orddef(int_cgsize(sizeleft)) as fromdef,
                      { don't use cgsize_orddef(int_cgsize(sizeleft)) as fromdef,
                        because that may be larger than location^.register in
                        because that may be larger than location^.register in