On Sun, 29 Dec 2024, Jacek Caban wrote:

> We may need to revert use of register keyword for TEB access or make it
> conditional if that's indeed problematic for C++. I couldn't reproduce the
> warning with Clang.

I did some playing with godbolt.org.  It seems OK with `register` with
`__asm__`: https://godbolt.org/z/xrdn3rG45
but gives an error without:
error: ISO C++17 does not allow 'register' storage class specifier
[-Wregister]
https://godbolt.org/z/cMbhhffhs
(of course, it also gives an error for file-scoped register variable too).


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to