Inline assembler (-Rintel) bug?
Original Reporter info from Mantis: tonyp
-
Reporter name: Tony Papadimitriou
Original Reporter info from Mantis: tonyp
- Reporter name: Tony Papadimitriou
Description:
Fails to compile CALL instruction with "Error: Invalid operand type"
See "Steps To Reproduce" for sample code to reproduce, and related compiler output.
This issue appeared right after upgrading to 2.4.2 from 2.4.0, and it's not mentioned in the list of changes, or possible compatibility issues.
Steps to reproduce:
procedure CallProc(p: pointer); assembler;
asm
call dword ptr p
end; { CallProc }
begin
end.
--------------------------------------------------------------------------------
C:\TEMP>fpc -Rintel bug.pas
Free Pascal Compiler version 2.4.2 [2010/11/10] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Win32 for i386
Compiling bug.pas
bug.pas(3,21) Error: Invalid operand type
bug.pas(8) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\pp\bin\i386-Win32\ppc386.exe returned an error exitcode (normal if you
did not specify a source file to be compiled)
Mantis conversion info:
- Mantis ID: 18225
- OS: Windows
- OS Build: WinXP
- Build: 2010/11/10
- Platform: i386
- Version: 2.4.2
- Fixed in version: 3.1.1
- Fixed in revision: 35572 (#ad557a1d)
- Monitored by: » tonyp (Tony Papadimitriou)