summaryrefslogtreecommitdiffstats
path: root/gnu/gcc34
diff options
context:
space:
mode:
authorEric Sandall2010-04-07 10:15:33 -0700
committerEric Sandall2010-04-07 10:16:02 -0700
commit00dcae95a0a4635cd2e295241668a0b766582797 (patch)
tree1b3e381c3e343a4c1a95fe97dcd8b7b16371bfaa /gnu/gcc34
parentcd3cecfb7b34a5bb5c281201f41b50daaef97722 (diff)
gcc34: Doesn't know native -march nor -mtune (GCC 4.2+)
Diffstat (limited to 'gnu/gcc34')
-rwxr-xr-xgnu/gcc34/BUILD12
-rw-r--r--gnu/gcc34/HISTORY3
2 files changed, 15 insertions, 0 deletions
diff --git a/gnu/gcc34/BUILD b/gnu/gcc34/BUILD
index b37a065d7c..b4846e0a25 100755
--- a/gnu/gcc34/BUILD
+++ b/gnu/gcc34/BUILD
@@ -1,10 +1,22 @@
# Doesn't know core2, replace with nocona, nor does it no -mssse3, remove it
+# Doesn't know native -march nor -mtune (GCC 4.2+)
# See http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/i386-and-x86_002d64-Options.html
CFLAGS=${CFLAGS/core2/nocona} &&
CXXFLAGS=${CFLAGS/core2/nocona} &&
CFLAGS=${CFLAGS/-mssse3/} &&
CXXFLAGS=${CXXFLAGS/-mssse3/} &&
+case $ARCHITECTURE in
+ native-x86_64-64)
+ CFLAGS=${CFLAGS/-march=native -mtune=native/-march=x86-64 -fPIC -DPIC} &&
+ CXXFLAGS=${CXXFLAGS/-march=native -mtune=native/-march=x86-64 -fPIC -DPIC}
+ ;;
+ cative-x86_64-32)
+ CFLAGS=${CFLAGS/-march=native -mtune=native/-march=i486 -m32} &&
+ CXXFLAGS=${CXXFLAGS/-march=native -mtune=native/-march=i486 -m32}
+ ;;
+esac &&
+
cd $SOURCE_DIRECTORY.bld &&
$SOURCE_DIRECTORY/configure \
--host=$HOST \
diff --git a/gnu/gcc34/HISTORY b/gnu/gcc34/HISTORY
index 20d876a816..6fc46a4d3b 100644
--- a/gnu/gcc34/HISTORY
+++ b/gnu/gcc34/HISTORY
@@ -1,3 +1,6 @@
+2010-04-06 Eric Sandall <sandalle@sourcemage.org>
+ * BUILD: Doesn't know native -march nor -mtune (GCC 4.2+)
+
2009-05-30 Eric Sandall <sandalle@sourcemage.org>
* BUILD: Use profiledbootstrap to generate a more optimized compiler
This uses more diskspace, but unlike 4.x we have no