Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-07

Need help for bug report

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Compiling lazarus with current fpc (since about a week) gives

synmacrorecorder.pas(618,43) Error: Asm: [mov ???,mem32] invalid combination
of opcode and operands

I tried to create a small example for a bug report, but was not able to reproduce it in a small example.

procedure TCustomSynMacroRecorder.SaveToStream(aDest: TStream);
var
  cEvent, eCnt : integer;
begin
  eCnt := EventCount;
  aDest.Write(eCnt, sizeof(eCnt));
  for cEvent := 0 to eCnt -1 do
    Events[ cEvent ].SaveToStream( aDest ); // line 618
end;
where Events is defined as
  property Events[aIndex: integer]: TSynMacroEvent read GetEvent;

Maybe someone can give me a hint or two, how to report this.

Mattias

Reply by email

Marco van de Voort
to Mattias Gaertner
Show quoted text 23 lines
Compiling lazarus with current fpc (since about a week) gives synmacrorecorder.pas(618,43) Error: Asm: [mov ???,mem32] invalid combination of opcode and operands I tried to create a small example for a bug report, but was not able to reproduce it in a small example. procedure TCustomSynMacroRecorder.SaveToStream(aDest: TStream); var cEvent, eCnt : integer; begin eCnt := EventCount; aDest.Write(eCnt, sizeof(eCnt)); for cEvent := 0 to eCnt -1 do Events[ cEvent ].SaveToStream( aDest ); // line 618 end; where Events is defined as property Events[aIndex: integer]: TSynMacroEvent read GetEvent; Maybe someone can give me a hint or two, how to report this.

Compile the file with -al. One then probably gets the error in the asm file.

Reply by email

Mattias Gaertner
to Marco van de Voort: Compile the file with -al. One then probably gets the error in the asm file.
Show quoted text 26 lines
> Compiling lazarus with current fpc (since about a week) gives > > synmacrorecorder.pas(618,43) Error: Asm: [mov ???,mem32] invalid > combination of opcode and operands > > I tried to create a small example for a bug report, but was not able to > reproduce it in a small example. > > procedure TCustomSynMacroRecorder.SaveToStream(aDest: TStream); > var > cEvent, eCnt : integer; > begin > eCnt := EventCount; > aDest.Write(eCnt, sizeof(eCnt)); > for cEvent := 0 to eCnt -1 do > Events[ cEvent ].SaveToStream( aDest ); // line 618 > end; > > where Events is defined as > property Events[aIndex: integer]: TSynMacroEvent read GetEvent; > > > Maybe someone can give me a hint or two, how to report this. Compile the file with -al. One then probably gets the error in the asm file.

../units/i386/linux/synmacrorecorder.s: Assembler messages: ../units/i386/linux/synmacrorecorder.s:3310: Error: bad register name `%ireg31d'
../units/i386/linux/synmacrorecorder.s:3312: Error: bad register name `%ireg31d'
../units/i386/linux/synmacrorecorder.s:3313: Error: bad register name `%ireg31d'

?

Mattias

Reply by email

Mattias Gaertner
to Jonas Maebe: I've just compiled Lazarus three times with the latest compiler (-O-1p3 -al, -O-1p3 and…
Show quoted text 11 lines
On 17 jul 2004, at 12:02, Mattias Gaertner wrote: > Compiling lazarus with current fpc (since about a week) gives > > synmacrorecorder.pas(618,43) Error: Asm: [mov ???,mem32] invalid > combination > of opcode and operands I've just compiled Lazarus three times with the latest compiler (-O-1p3 -al, -O-1p3 and -O-2p3u) and it worked fine in all cases.

Thanks, that was the hint I need.
Stupid me. I compiled with -Cr. Now I'm able to reproduce it. I will create a report.

Mattias

Reply by email