[Boost-bugs] [Boost C++ Libraries] #12044: Passing -Ofast to pathscale toolchain is unsafe and break stuff

Subject: [Boost-bugs] [Boost C++ Libraries] #12044: Passing -Ofast to pathscale toolchain is unsafe and break stuff
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-06 17:29:39


#12044: Passing -Ofast to pathscale toolchain is unsafe and break stuff
-------------------------------------+---------------------------
 Reporter: MichaÅ‚ Górny <mgorny@…> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: build
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+---------------------------
 When attempting to bootstrap boost-build with pathscale toolset, the build
 fails with internal compiler problem. It turns out it happens because of
 `-Ofast` being passed to the compiler.

 It is unclear to me why `-Ofast -O3` is being used there (no other toolset
 does that) but it sounds like a really bad idea. Besides to triggering
 compiler bugs like the one mentioned there, it also enables various
 insecure optimizations.

 Please consider 'lowering' the flags down to regular `-O3`. I'm attaching
 a bootstrap.log with the failure and a proposed patch.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12044>
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:19 UTC