x64 compiler hangs at 100% CPU and high memory usage
Original Reporter info from Mantis: lifepower
-
Reporter name: lifepower
Original Reporter info from Mantis: lifepower
- Reporter name: lifepower
Description:
The following code (a portion for calculating MD5 checksums, I've left minimal parts that are just enough to reproduce the problem):
type
TMD5DigestHelper = record
public type
TMD5Buffer = array[0..63] of Byte;
TMD5Context = record
Buffer: TMD5Buffer;
end;
private
function Func_F(const X, Y, Z: LongWord): LongWord;
public
Context: TMD5Context;
end;
function TMD5DigestHelper.Func_F(const X, Y, Z: LongWord): LongWord;
begin
Result := (X and Y) or ((not X) and Z);
end;
When cross-compiled to "Win64 for x64" target, the compiler hangs saying "Compiling test.pp", using 100% of CPU (one core fully used) and 200 Mb of memory used and increasing.
This issue happens both on Windows with 32-bit FPC cross-compiling to x64 and on Linux (Ubuntu 15.04) 64-bit when cross-compiling to Windows. The command line in both cases is the same:
fpc -TWin64 -Px86_64 -Mdelphi test.pp
Mantis conversion info:
- Mantis ID: 28641
- OS: Windows / Linux
- Build: trunk rev 31579
- Platform: Win64
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 32618 (#0b4f3f01)
- Monitored by: » Vincent (Vincent Snijders)