Message 163378 - Python tracker
The patch has another flaw. The compiler may choose to fold and optimize code in _tscmp(). I'm going to declare the length of the right side and both char* as volatile. That should stop any compiler.
I could also add some pragmas:
MSVC:
#pragma optimize("", off)
code
#pragma optimize("", on)
GCC 4.4+:
#pragma GCC push_options
#pragma GCC optimize ("O0")
code
#pragma GCC pop_options