Solution to issue 0032781 breaks Unix calling convention
Original Reporter info from Mantis: dicepd
-
Reporter name:
Original Reporter info from Mantis: dicepd
- Reporter name:
Description:
In welcome changes to x,y,zmm handling there is an unintended side effect that instances of Self are passed as pointers (to be expected) in RCX. Unix ABI prior to this uses RDI for Self pointer.
Steps to reproduce:
Look at .s output of the attached test program when compiled.
Additional information:
More background in forum thread
https://forum.lazarus.freepascal.org/index.php/topic,32741.msg276686/topicseen.html
Mantis conversion info:
- Mantis ID: 33184
- OS: Linux
- OS Build: Devuan Jessie
- Build: Post revision r38206
- Platform: X86_64
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 38663 (#25c5ee2f)
- Monitored by: » @CuriousKit (J. Gareth Moreton)