* m68k: don't attempt to copy less than 1 byte in g_concatcopy, this fixes tdfa7.pp on 68000 and removes some superfluous address processing on 68020+ in the same test

This commit is contained in:
Karoly Balogh 2022-02-08 03:04:28 +01:00
parent 8f083f6342
commit 077a3f1892

View File

@ -1772,6 +1772,9 @@ unit cgcpu;
srcrefp,dstrefp : treference;
srcref,dstref : treference;
begin
if (len < 1) then
exit;
if (len = 1) or
((len in [2,4]) and
not needs_unaligned(source.alignment,lentocgsize[len]) and