aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-06 19:45:19 +0000
committerlloyd <[email protected]>2009-11-06 19:45:19 +0000
commitd5ff7674397e76373398ce6007adf9b18a43bcd1 (patch)
tree567d9ea8462f413555c9d73432959317e99a2fe6
parent1546ceb99d37def92f51564362898ec4bde4252c (diff)
GCC doesn't know what Nehalem or Westmere are, though it does know about
the AES and PCLMUL instructions. Oddness. For the time being, compile Nehalem and Westmere as Core2 + extras, probably close enough.
-rw-r--r--src/build-data/cc/gcc.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index 370bb84d7..f25f81048 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -52,6 +52,9 @@ sparc64-ultra3 -> "-mcpu=v9 -mtune=ultrasparc3"
em64t -> "-march=nocona -momit-leaf-frame-pointer"
cellppu -> ""
+nehalem -> "-march=core2 -msse4.1 -msse4.2"
+westmere -> "-march=core2 -maes -msse4.1 -msse4.2"
+
# Default family options (SUBMODEL is substitued with the real submodel)
# Anything after the quotes is what should be *removed* from the submodel name
# before it's put into SUBMODEL.