[Boost-bugs] [Boost C++ Libraries] #9791: [libs/program_options] winmain.cpp fails to compile with -O3, ok with -O0 (gcc-5666.3)

Subject: [Boost-bugs] [Boost C++ Libraries] #9791: [libs/program_options] winmain.cpp fails to compile with -O3, ok with -O0 (gcc-5666.3)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-18 16:07:47


#9791: [libs/program_options] winmain.cpp fails to compile with -O3, ok with -O0
(gcc-5666.3)
-------------------------------------+-----------------------------
 Reporter: class101 <ad@…> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+-----------------------------
 Hello

 I have identified a problem when cross-compiling
 libs\program_options\src\winmain.cpp with Apple's gcc-5666.3 (4.2.1) and
 the -O3/2/1 switches, it works fine with -O0

 {{{
 "X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/g++.exe" -ftemplate-
 depth-128 -O3 -finline-functions -Wno-inline -Wall -m32 -w -m32
 -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o
 "bin.v2\libs\program_options\build\gcc-4.2.1\release\abi-sysv\address-
 model-32\binary-format-mach-o\link-static\strip-on\target-os-darwin
 \threadapi-pthread\threading-multi\winmain.o"
 "libs\program_options\src\winmain.cpp"
 }}}

 Unfortunately I don't have any more logs but I have uploaded the
 gcc-5666.3-x86_64-apple-darwin10.tar.xz on my googledrive if you want to
 give a shot by yourself
 https://drive.google.com/folderview?id=0B4dcRcayW88VNmRtZDEybEZoLTQ&usp=sharing

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9791>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC