Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755851AbXJZJQk (ORCPT ); Fri, 26 Oct 2007 05:16:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753259AbXJZJQd (ORCPT ); Fri, 26 Oct 2007 05:16:33 -0400 Received: from www.tglx.de ([62.245.132.106]:32977 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752922AbXJZJQc (ORCPT ); Fri, 26 Oct 2007 05:16:32 -0400 Date: Fri, 26 Oct 2007 11:16:25 +0200 (CEST) From: Thomas Gleixner To: Michael Lothian cc: linux-kernel@vger.kernel.org Subject: Re: Possibility of adding -march=native to x86 In-Reply-To: Message-ID: References: <0EC33A59AA72084CA28B83816B40929F02682BB3@REEDXCLSXM01V03.rbsres01.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 756 Lines: 23 On Thu, 25 Oct 2007, Michael Lothian wrote: > Hi > > I was wondering if it was possible to add -march=native support to the > processor options of the new x86 architecture if gcc 4.2 or greater is being > used. > > I'm not suggesting this should be a default at all, merely an extra option > similar to selecting P4, Athlon or even -Os. > > I've manually tried this flag at home with no ill effects. It works for your specific setup, but it will kill distro compiles as well as cross compiling. tglx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/