InterlockedExchangeAdd64

Adriaan van Os via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
I have an arm64 (aarch64) test program on MacOS that calls InterlockedExchangeAdd64 with a target 
variable that is not 8-byte aligned. Running the test program emits "EBusError: Bus error or 
misaligned data access".

So far so good.

But now I install a system.ErrorProc and run the same program. It emits, instead of the EBusError, 
Runtime Error 214.

This puzzles me.

Of course, I can add a bug report.

Regards,

Adriaan van Os

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.