Assembler (Intel) inconsistencies in 2.0.x, Was: Re: [fpc-devel]Bug: compilation loop in 2.0.2 when using -So
Tomas Hajny
XHajT03 at mbox.vol.cz
Fri Aug 18 17:46:47 CEST 2006
Konstantin Münning wrote:
> Jonas Maebe wrote:
>> On 18 aug 2006, at 14:56, Konstantin Münning wrote:
.
.
>>> PROCEDURE Test(l:LongInt);ASSEMBLER;
>>> ASM
>>> mov eax,[l]
>>> END;
>>>
>>> PROCEDURE Test;ASSEMBLER;
>>> VAR l:LongInt;
>>> ASM
>>> mov eax,[l]
>>> END;
BTW, putting the lines above into a file, adding the following four lines
at the bottom:
begin
Test(123);
Test;
end.
and trying to compile (with -Mtp parameter to ensure asmmode intel)
results in:
---
Free Pascal Compiler version 2.0.4-rc3 [2006/08/13] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
x.pas(7,12) Error: overloaded functions have the same parameter list
x.pas(16) Fatal: There were 1 errors compiling module, stopping
x.pas(16) Fatal: Compilation aborted
===
I don't think this is correct...
Tomas
More information about the fpc-devel
mailing list