gcc-4.8.0: march=amdfam10 vs march=native on a k10
James Cloos
cloos@jhcloos.com
Mon Apr 29 22:13:00 GMT 2013
On a box where amdfam10 is the native arch, 4.8 #defines two symbols
with march=native which it does not with march=amdfam10:
:; gcc-4.8.0 -march=amdfam10 -E -dM - </dev/null |sort >/tmp/amdfam10
:; gcc-4.8.0 -march=native -E -dM - </dev/null |sort >/tmp/native
:; diff -U0 /tmp/amdfam10 /tmp/native
--- /tmp/amdfam10 2013-04-29 18:07:22.435553711 -0400
+++ /tmp/native 2013-04-29 18:07:14.987605897 -0400
@@ -76,0 +77 @@
+#define __FXSR__ 1
@@ -156,0 +158 @@
+#define __PRFCHW__ 1
Should -march=amdfam10 then also set -mfxsr and -mprfchw?
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
More information about the Gcc
mailing list