This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Jon.Oberheide, alex, christian.heimes, fijall, georg.brandl, hynek, loewis, ncoghlan, petri.lehtinen, pitrou, python-dev, serhiy.storchaka
Date 2012-06-21.23:26:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340321178.97.0.93843340546.issue15061@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-06-21 23:26:19christian.heimessetrecipients: + christian.heimes, loewis, georg.brandl, ncoghlan, pitrou, alex, fijall, python-dev, petri.lehtinen, hynek, serhiy.storchaka, Jon.Oberheide
2012-06-21 23:26:18christian.heimessetmessageid: <1340321178.97.0.93843340546.issue15061@psf.upfronthosting.co.za>
2012-06-21 23:26:18christian.heimeslinkissue15061 messages
2012-06-21 23:26:17christian.heimescreate