From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10310 invoked by alias); 20 Jun 2014 09:37:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10268 invoked by uid 48); 20 Jun 2014 09:37:30 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/61570] -march=native CPU you selected does not support x86-64 instruction under QEMU Date: Fri, 20 Jun 2014 09:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01675.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61570 --- Comment #2 from Jakub Jelinek --- Sure, but for this model AFAIK we go through the default: case of PENTIUMPRO anyway, where we only test the flags, so even if it used some completely unknown family number, it would still behave the same. So, can't we before: else if (has_sse3) /* It is Core Duo. */ cpu = "pentium-m"; else if (has_sse2) /* It is Pentium M. */ cpu = "pentium-m"; just add else if (has_longmode) /* Some unknown 64-bit CPU, perhaps emulator? */ cpu = "x86-64"; ? Otherwise, QEMU, if it doesn't want to support SSSE3 and SSE3, and doesn't want to support 3dNOW either would need to identify itself as something other than Intel and AMD.