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".
* If an asm statement writes memory that is not passed with "m", it shall
both be `volatile` and clobber "memory".
The conclusion is basing on the following experiment:
https://gcc.godbolt.org/z/chMa3GMda
The explanations around the volatile changes seem good to me now, and I
trust you on the rest of the x86 specific details here.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public