Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master archspecs by Eric Sandall (c3c0de02e5aea37548c10b01b1e080b28f671fc1)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master archspecs by Eric Sandall (c3c0de02e5aea37548c10b01b1e080b28f671fc1)
  • Date: Wed, 7 Apr 2010 22:30:23 -0500

GIT changes to master archspecs by Eric Sandall <sandalle AT sourcemage.org>:

32/ia32/native-x86_64-32 | 16 ++++++++++++++++
64/x86_64/native-x86_64-64 | 16 ++++++++++++++++
2 files changed, 32 insertions(+)

New commits:
commit c3c0de02e5aea37548c10b01b1e080b28f671fc1
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

64/x86_64/native-x86_64-64: Native architecture selection for x86_64

For GCC 4.2+, use '-march=native -mtune=native', or all but GCC2,
use '-march=x86_64", and for GCC2 use '-march=i486"

march=i486 was chosen as this is the lowest the ISO goes and the
lowest required for NPTL in glibc.

commit 9c7e7944f4d132d18242b6bbba4fddb5ed7cf31f
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

32/ia32/native-x86_64-32: Native architecture selection for x86/x86_64

For GCC 4.2+, use '-march=native -mtune=native', for everything else,
use '-march=i486".

march=i486 was chosen as this is the lowest the ISO goes and the lowest
required for NPTL in glibc.

diff --git a/32/ia32/native-x86_64-32 b/32/ia32/native-x86_64-32
new file mode 100755
index 0000000..3964c2c
--- /dev/null
+++ b/32/ia32/native-x86_64-32
@@ -0,0 +1,16 @@
+CPUNAME="Auto-detected x86/x86_64 architecture 32-bit mode"
+
+if use_gcc 3.3. || use_gcc 3.4. || use_gcc 4.0. || use_gcc 4.1. ; then
+ CFLAGS="-march=i486 -m32"
+ HOST="i486-pc-linux-gnu"
+elif use_gcc2 ; then
+ CFLAGS="-march=i486"
+ HOST="i486-pc-linux-gnu"
+else
+ CFLAGS="-march=native -mtune=native -m32"
+ HOST="i686-pc-linux-gnu"
+fi
+
+FAST="-O3"
+SMALL="-Os"
+
diff --git a/64/x86_64/native-x86_64-64 b/64/x86_64/native-x86_64-64
new file mode 100755
index 0000000..ed72691
--- /dev/null
+++ b/64/x86_64/native-x86_64-64
@@ -0,0 +1,16 @@
+CPUNAME="Auto-detected x86_64 architecture 64-bit mode"
+
+if use_gcc 3.3. || use_gcc 3.4. || use_gcc 4.0. || use_gcc 4.1. ; then
+ CFLAGS="-march=x86-64 -fPIC -DPIC -m64"
+ HOST="x86_64-pc-linux-gnu"
+elif use_gcc2 ; then
+ CFLAGS="-march=i486"
+ HOST="i486-pc-linux-gnu"
+else
+ CFLAGS="-march=native -mtune=native -m64"
+ HOST="x86_64-pc-linux-gnu"
+fi
+
+FAST="-O3"
+SMALL="-Os"
+



  • [SM-Commit] GIT changes to master archspecs by Eric Sandall (c3c0de02e5aea37548c10b01b1e080b28f671fc1), Eric Sandall, 04/07/2010

Archive powered by MHonArc 2.6.24.

Top of Page