This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/56068] -march=native creates Illegal instruction on KVM guests
- From: "jpyeron at pdinc dot us" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Jan 2013 20:14:10 +0000
- Subject: [Bug target/56068] -march=native creates Illegal instruction on KVM guests
- Auto-submitted: auto-generated
- References: <bug-56068-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56068
--- Comment #15 from Jason Pyeron <jpyeron at pdinc dot us> 2013-01-21 20:14:10 UTC ---
(In reply to comment #12)
> (In reply to comment #11)
> > I will try 4.6 to prove that. Off to build 4.6...
> ...
> If that prints 0 for OSXSAVE and non-zero for AVX then it's the same problem I
> had.
> Maybe GCC could work around it by checking both flags in the AVX detection
> logic.
mockbuild@centos6-64bit-builder ~/build/BUILD/gcc/test (mock-chroot)
$ gcc test.c -march=native
mockbuild@centos6-64bit-builder ~/build/BUILD/gcc/test (mock-chroot)
$ ./a.out
bit_OSXSAVE (134217728) = 0
bit_AVX (268435456) = 0
mockbuild@centos6-64bit-builder ~/build/BUILD/gcc/test (mock-chroot)
$ gcc test.c
mockbuild@centos6-64bit-builder ~/build/BUILD/gcc/test (mock-chroot)
$ ./a.out
bit_OSXSAVE (134217728) = 0
bit_AVX (268435456) = 0
on the other note, I am currently building
svn://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch