From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1M7cQw-0001tH-LP for garchives@archives.gentoo.org; Fri, 22 May 2009 21:37:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A42EAE051F; Fri, 22 May 2009 21:37:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 858D0E051F for ; Fri, 22 May 2009 21:37:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1F6456659F for ; Fri, 22 May 2009 21:37:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.541 X-Spam-Level: X-Spam-Status: No, score=-3.541 required=5.5 tests=[AWL=0.058, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08UrXUSvymsj for ; Fri, 22 May 2009 21:37:35 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id F05EC65DE3 for ; Fri, 22 May 2009 21:37:32 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M7cQh-0000Ar-JU for gentoo-user@gentoo.org; Fri, 22 May 2009 21:37:27 +0000 Received: from pool-173-71-204-85.clppva.fios.verizon.net ([173.71.204.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 21:37:27 +0000 Received: from en.ABCD by pool-173-71-204-85.clppva.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 21:37:27 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: ABCD Subject: [gentoo-user] Re: -march=auto Date: Fri, 22 May 2009 17:36:54 -0400 Message-ID: References: <496642.27440.qm@web31608.mail.mud.yahoo.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-71-204-85.clppva.fios.verizon.net User-Agent: Thunderbird 2.0.0.21 (X11/20090328) In-Reply-To: <496642.27440.qm@web31608.mail.mud.yahoo.com> X-Enigmail-Version: 0.95.7 Sender: news X-Archives-Salt: ac743916-5581-4478-a29f-56d9cc983a8b X-Archives-Hash: 3865e6af60e6c421a8033ac38999abea -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 maxim wexler wrote: > > For an 900A w/intel Atom? > > This is what I get: > > Warning: Your compiler supports the -march=native option which you > may prefer If you use this, then you 1) must be using >=sys-devel/gcc-4.2, and 2) will always have the "best" optimization for your machine, so far as the version of gcc you are using understands. > Warning: Newer versions of GCC better support your CPU with -march=atom In order to use this, you will need gcc-4.5, which hasn't been released yet. > -march=core2 -mtune=pentium -mfpmath=sse. This is the recommendation that the script actually made - it suggests to use all of these. > Now I'm confused. It says *my* compiler supports -march=native. Then > it says "Newer versions". Isn't v4.3.2 new? It was from a new pkg about > a month ago. Is it giving me a choice here? Can I really declare two > -march variables? What about mtune and mfpath, are they meant to be > "instead of" or "in addition to"? What goes in the kernel config? What > in /etc/paludis/bashrc? The newest version of gcc out right now is 4.4.0 (currently in package.mask). I would suggest setting CFLAGS="-O2 -march=native -pipe" and CXXFLAGS="-O2 -march=native -pipe" in /etc/paludis/bashrc (assuming that that is the proper location for those variables). - -- ABCD -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoXGvUACgkQOypDUo0oQOoDGgCfQdRS+hQtTVKIITl2UvExt5NH 6g4AoJvL7fC2+Gr2KlYIS3WqMnyeJ9qE =1r28 -----END PGP SIGNATURE-----