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 sanders_muc
Recipients loewis, sanders_muc
Date 2007-09-02.09:31:39
SpamBayes Score 0.24909343
Marked as misclassified No
Message-id <>
Martin, you are right: is is related to compiler optimization. I have
boiled it down to a call of stringlib_find (defined in
Python-2.5.1/Objects/stringlib/find.h) and this runs fine with 'icc -O2'
but incorrectly for 'icc -O3'. (The test code is attached.)

So, it seems that the lesson is simply once again: Do not use '-O3' with
Intel's C compiler. (At least, for me, it is not the first time that
this caused trouble.)

On the other hand, Python's ./configure script is quite clear in its
preference of GCC, anyway: It more or less ignores with option
'--without-gcc' and uses the content of the CC environment variable only
very occasionally.
File name Uploaded
findtest.c sanders_muc, 2007-09-02.09:31:39
Date User Action Args
2007-09-02 09:31:40sanders_mucsetspambayes_score: 0.249093 -> 0.24909343
recipients: + sanders_muc, loewis
2007-09-02 09:31:40sanders_mucsetspambayes_score: 0.249093 -> 0.249093
messageid: <>
2007-09-02 09:31:40sanders_muclinkissue1084 messages
2007-09-02 09:31:39sanders_muccreate