Re: [Mingw-w64-public] [PATCH v4] headers/intrin-impl: Fix segment accessors

2024-11-12 Thread LIU Hao
在 2024-11-12 15:55, Martin Storsjö 写道: The explanations around the volatile changes seem good to me now, and I trust you on the rest of the x86 specific details here. Thank you very much for the trust! Pushed this one now. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP

Re: [Mingw-w64-public] [PATCH v4] headers/intrin-impl: Fix segment accessors

2024-11-12 Thread Martin Storsjö
On Sat, 9 Nov 2024, LIU Hao wrote: Add an explicit `volatile` qualifier for intrinsic functions that write to TEB; do not rely on the implicit volatile semantics, just because they have no output. * If an asm statement reads memory that is not passed with "m", it shall clobber "memory". * I

[Mingw-w64-public] [PATCH v4] headers/intrin-impl: Fix segment accessors

2024-11-08 Thread LIU Hao
Add an explicit `volatile` qualifier for intrinsic functions that write to TEB; do not rely on the implicit volatile semantics, just because they have no output. * If an asm statement reads memory that is not passed with "m", it shall clobber "memory". * If an asm statement writes memory that