Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56180 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2009-09-14 05:32:37


Author: vladimir_prus
Date: 2009-09-14 05:32:36 EDT (Mon, 14 Sep 2009)
New Revision: 56180
URL: http://svn.boost.org/trac/boost/changeset/56180

Log:
Add 'native' and 'core2' architectures.

Patch from Serhat Şevki Dinçer.

Text files modified:
   trunk/tools/build/v2/tools/builtin.jam | 4 ++--
   trunk/tools/build/v2/tools/gcc.jam | 4 ++++
   2 files changed, 6 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/tools/builtin.jam
==============================================================================
--- trunk/tools/build/v2/tools/builtin.jam (original)
+++ trunk/tools/build/v2/tools/builtin.jam 2009-09-14 05:32:36 EDT (Mon, 14 Sep 2009)
@@ -264,8 +264,8 @@
 # The specific instruction set in an architecture to compile.
 feature.feature instruction-set :
     # x86 and x86-64
- i386 i486 i586 i686 pentium pentium-mmx pentiumpro pentium2 pentium3
- pentium3m pentium-m pentium4 pentium4m prescott nocona conroe conroe-xe
+ native i386 i486 i586 i686 pentium pentium-mmx pentiumpro pentium2 pentium3
+ pentium3m pentium-m pentium4 pentium4m prescott nocona core2 conroe conroe-xe
     conroe-l allendale mermon mermon-xe kentsfield kentsfield-xe penryn wolfdale
     yorksfield nehalem k6 k6-2 k6-3 athlon athlon-tbird athlon-4 athlon-xp
     athlon-mp k8 opteron athlon64 athlon-fx winchip-c6 winchip2 c3 c3-2

Modified: trunk/tools/build/v2/tools/gcc.jam
==============================================================================
--- trunk/tools/build/v2/tools/gcc.jam (original)
+++ trunk/tools/build/v2/tools/gcc.jam 2009-09-14 05:32:36 EDT (Mon, 14 Sep 2009)
@@ -936,6 +936,9 @@
 # Set architecture/instruction-set options.
 #
 # x86 and compatible
+# The 'native' option appeared in gcc 4.2 so we cannot safely use it
+# as default. Use conservative i386 instead.
+cpu-flags gcc OPTIONS : x86 : native : -march=native ;
 cpu-flags gcc OPTIONS : x86 : i386 : -march=i386 : default ;
 cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ;
 cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ;
@@ -951,6 +954,7 @@
 cpu-flags gcc OPTIONS : x86 : pentium4m : -march=pentium4m ;
 cpu-flags gcc OPTIONS : x86 : prescott : -march=prescott ;
 cpu-flags gcc OPTIONS : x86 : nocona : -march=nocona ;
+cpu-flags gcc OPTIONS : x86 : core2 : -march=core2 ;
 cpu-flags gcc OPTIONS : x86 : k6 : -march=k6 ;
 cpu-flags gcc OPTIONS : x86 : k6-2 : -march=k6-2 ;
 cpu-flags gcc OPTIONS : x86 : k6-3 : -march=k6-3 ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk