Bug 1274196 - Turn on SSE2 autovectorization and SSE2-based floating-point math for 32-bit Linux. r=glandium.
authorHenri Sivonen <hsivonen@hsivonen.fi>
Wed, 05 Oct 2016 18:59:12 +0300
changeset 324316 f1b7ef2430dac82e557590e51c38f56241366751
parent 324315 0ed01739297a91281878a5ce1a4f8c0329b0d0da
child 324317 dec2a039683fe1c0588bbee14817c5416d692fa1
push id30999
push userphilringnalda@gmail.com
push dateSun, 27 Nov 2016 01:56:56 +0000
treeherdermozilla-central@2a0abcff5cfc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1274196
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1274196 - Turn on SSE2 autovectorization and SSE2-based floating-point math for 32-bit Linux. r=glandium. MozReview-Commit-ID: K8CMfRxcLBH
build/unix/mozconfig.linux32
--- a/build/unix/mozconfig.linux32
+++ b/build/unix/mozconfig.linux32
@@ -1,12 +1,16 @@
 . "$topsrcdir/build/unix/mozconfig.linux"
 
 export PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/share/pkgconfig
 
+export MOZ_LINUX_32_SSE2_STARTUP_ERROR=1
+
+CFLAGS="$CFLAGS -msse -msse2 -mfpmath=sse"
+CXXFLAGS="$CXXFLAGS -msse -msse2 -mfpmath=sse"
+
 if test `uname -m` = "x86_64"; then
-  # -march=pentiumpro is what our 32-bit native toolchain defaults to
-  CC="$CC -m32 -march=pentiumpro"
-  CXX="$CXX -m32 -march=pentiumpro"
+  CC="$CC -m32 -march=pentium-m"
+  CXX="$CXX -m32 -march=pentium-m"
   ac_add_options --target=i686-pc-linux
   ac_add_options --host=i686-pc-linux
   ac_add_options --x-libraries=/usr/lib
 fi