On 11 April 2013, at 14:11, Nilesh Govindrajan wrote:
> ...Also it is a gcc/qemu bug that the CPU is detected as pentium m. As 
> someone posted earlier, gcc 4.4 gives core2.
> But actually, even that's wrong. I changed the flag and ended up getting 
> illegal instruction for many.

This seems to be not so rare.

I had a bug (filed upstream, now fixed) with AMD K6-2+ being detected as an 
Athlon by -march=native.

In my case this was easily detectable because -march=native would produce a 
binary of nano which would crash immediately on launch with an "illegal 
instruction" error.

Setting -march=i586 or -march=k6-2 would compile a nano which works just fine. 
So I found this easy to test, once I knew what to look for. 

This turned out to be a one or two line fix in gcc, but I wouldn't have known 
where to start with the fix. I was very glad of the gcc devs' help, but it took 
months for them to get around to it.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48743

Stroller


Reply via email to