>>>>> "NG" == Nilesh Govindrajan <m...@nileshgr.com> writes:

NG> I have two Gentoo VMs at Hetzner and the CPU supports 64 bit (grep lm
NG> /proc/cpuinfo = true).

NG> model name      : QEMU Virtual CPU version 1.0

march=native does not work on a QEMU virtual.

In the past I had success doing this on such VMs:

gcc -dM -E - </dev/null |sort >/tmp/arch-none
gcc -march=native -dM -E - </dev/null |sort >/tmp/arch-native
diff -U0 /tmp/arch-none /tmp/arch-native 

gcc-4.4 and gcc-4.5 provide useful results from the formula;
4.6 and newer do not.

-JimC
-- 
James Cloos <cl...@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


Reply via email to