summaryrefslogtreecommitdiff
path: root/compiler/hlcgobj.pas
diff options
context:
space:
mode:
authornickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-04-26 13:46:36 +0000
committernickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-04-26 13:46:36 +0000
commit174d6526bf3d9d436a0f55f7a5a395d062f28afe (patch)
treec921e4b29b671556afd0c261c05c9834557b32e2 /compiler/hlcgobj.pas
parent3672a75afc4a9ea342dc34cbdc8a65b520014f9f (diff)
downloadfpc-174d6526bf3d9d436a0f55f7a5a395d062f28afe.tar.gz
- 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: http://svn.freepascal.org/svn/fpc/trunk@27664 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/hlcgobj.pas')
-rw-r--r--compiler/hlcgobj.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/hlcgobj.pas b/compiler/hlcgobj.pas
index de60c9909a..cfc0e51392 100644
--- a/compiler/hlcgobj.pas
+++ b/compiler/hlcgobj.pas
@@ -870,7 +870,7 @@ implementation
{ we're at the end of the data, and it can be loaded into
the current location's register with a single regular
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
{ don't use cgsize_orddef(int_cgsize(sizeleft)) as fromdef,
because that may be larger than location^.register in