[Boost-bugs] [Boost C++ Libraries] #2773: Sun toolset uses -fast by default

Subject: [Boost-bugs] [Boost C++ Libraries] #2773: Sun toolset uses -fast by default
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-17 21:03:44

#2773: Sun toolset uses -fast by default
 Reporter: g_sauthoff_at_[hidden] | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: None
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
 With --toolset=sun, -fast is enabled by default.

 The -fast option of the Sun CC enables optimized codegen for all the
 hardware features, which are available for the CPU, where the CC process
 is currently running.

 For example if you compile with -fast on an Solaris/Opteron systems, you
 code very likely will contain 3dnow-instruction. If you want to share the
 binaries with Solaris/Intel-Xeon-64-bit systems you have a problem.

 Thus, I suggest a default optimization level of '-O' for the Sun CC (e.g.
 with --toolset=sun). Or '-xOsomething' if you will.

 The situation is comparable to using -O or -O2 with gcc, and not

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