Re: [fpc-devel] Regarding issue/patch 0032637

2017-11-29 Thread J. Gareth Moreton
Would code like this be correct? Procedure FillWord(var x; count: SizeInt; value: Word); assembler; nostackframe; asm { win64: rcx dest, rdx count, r8w value linux: rdi dest, rsi count, dx value } {$ifdef win64} push%rdi .seh_pushreg %rdi .seh_endprologue cmp $0x0, %rdx ..

Re: [fpc-devel] Regarding issue/patch 0032637

2017-11-29 Thread J. Gareth Moreton
Ooh right, okay. Thanks for that Sergei. I just put it in somewhat blindly because the compiler inserts it for Pascal code after the normal prologue after creating a stack frame, but complained and threw an error if I used .seh_pushreg but then neglected to use .seh_endprologue. I agree that

Re: [fpc-devel] AVR - assembler error when compiling large files

2017-11-29 Thread Christo
On Tue, 2017-11-28 at 20:08 +0100, Florian Klämpfl wrote: > Am 25.11.2017 um 22:19 schrieb Christo: > > > > On Sat, 2017-11-25 at 18:27 +0100, Florian Klämpfl wrote: > > > > > > What happens if you compile them with -CX? > > Same problem. > > > > > > > > > > > > >  Is there a way to instruct t

Re: [fpc-devel] Regarding issue/patch 0032637

2017-11-29 Thread Sergei Gorelkin via fpc-devel
29.11.2017 15:12, J. Gareth Moreton wrote: Thanks Christo. Apologies for 4 messages coming in at once. I think there were a few technical glitches with the mailing list. Either way, I have submitted an updated patch to the bug report in question that corrects the stack unwinding for Window

Re: [fpc-devel] Regarding issue/patch 0032637

2017-11-29 Thread J. Gareth Moreton
Thanks Christo. Apologies for 4 messages coming in at once. I think there were a few technical glitches with the mailing list. Either way, I have submitted an updated patch to the bug report in question that corrects the stack unwinding for Windows. Any testing would be greatly appreciated