[fpc-devel] Vectorcall Fix

J. Gareth Moreton gareth at moreton-family.com
Sun Apr 1 03:07:06 CEST 2018


 Hi everyone,

 Sorry this took so long.  There was a bug in my "vectorcall" submission
in that if you specified "vectorcall" on a method under Linux (it might
have been specifically a virtual method), it stored Self in RCX instead of
RDI, rather than silently ignoring the Windows-only calling convention.

 Patch is here: https://bugs.freepascal.org/view.php?id=33542

 The fix was surprisingly simple - it was an oversight in the
"x86_64_use_ms_abi" function - all it took was the removal of a single
keyword.

 Compilation was tested under Ubuntu 16.04 (in VirtualBox) and Windows 10
and the vectorcall tests in "tests/test/cg" run without error.

 Gareth aka. Kit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180401/17dc8602/attachment.html>


More information about the fpc-devel mailing list