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.

classification
Title: configure incorrectly adds -OPT:Olimit=0 for clang
Type: Stage:
Components: Build Versions: Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Vladimir.Timofeev
Priority: normal Keywords:

Created on 2012-12-18 22:08 by Vladimir.Timofeev, last changed 2022-04-11 14:57 by admin.

Messages (2)
msg177722 - (view) Author: Vladimir Timofeev (Vladimir.Timofeev) Date: 2012-12-18 22:08
Similar to http://bugs.python.org/issue1162001

But some differences, issue exposed only when first -OPT:Olimit=0 followed by correct -On option. clang simple do not check correctness of first occurences of -O:

$ clang -OPT:Olimit=0 test.c; echo $?
error: invalid integral value 'PT:Olimit=0' in '-OPT:Olimit=0'
error: invalid integral value 'PT:Olimit=0' in '-OPT:Olimit=0'
1

$ clang -OPT:Olimit=0 -O2 test.c; echo $?                                                                                                                                                                
0

This leads to normal compilation of python itself, but some dependant software built by gcc fails (see http://www.freebsd.org/cgi/query-pr.cgi?pr=174525 )
msg177770 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2012-12-19 18:35
If Irix support is the reason for the Olimit test, perhaps we can limit
the check to Irix?

http://www.gossamer-threads.com/lists/python/dev/689524?do=post_view_threaded#689524
History
Date User Action Args
2022-04-11 14:57:39adminsetgithub: 60925
2020-01-29 00:36:33brett.cannonsetnosy: - brett.cannon
2014-05-13 21:56:59skrahsetnosy: - skrah
2012-12-19 18:36:05skrahsetnosy: + skrah
messages: + msg177770
2012-12-18 22:09:50pitrousetnosy: + brett.cannon
2012-12-18 22:08:17Vladimir.Timofeevcreate