From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3547 invoked by alias); 26 Jan 2015 10:35:23 -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 3447 invoked by uid 48); 26 Jan 2015 10:35:14 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64782] -mcpu=native should be supported on aarch64 Date: Mon, 26 Jan 2015 10:35: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ktkachov 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: 2015-01/txt/msg02822.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64782 --- Comment #4 from ktkachov at gcc dot gnu.org --- (In reply to James Greenhalgh from comment #3) > Did the Linux kernel format for /proc/cpuinfo settle down enough that we can > sensibly parse it [1]? > > When implementing this support I guess we will want to look at which kernels > are going to be out there in use, and possibly even try to detect the > /proc/cpuinfo format dynamically (Ugh!). Perhaps you just want to mandate a > minimum kernel version, and bail out if you see something older? > > [1]: https://lkml.org/lkml/2014/10/24/391 That's the format in the link that I was thinking of supporting. The format before the one proposed in the link would work as well, but only for detecting the native -march or non-big.LITTLE systems. But since we would want consistent behaviour regardless of kernel version, we should probably mandate a minimum kernel version for this feature.