Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: -march=auto
Date: Sat, 23 May 2009 02:22:07
Message-Id: 200905230422.01149.wonko@wonkology.org
In Reply to: Re: [gentoo-user] Re: -march=auto by maxim wexler
1 maxim wexler writes:
2
3 > > If so, Daniel's tip about 'gcc -Q --help=target -march=native' will give
4 > > you the exact options to use.
5
6 > See attachment please. Some stuff is enabled, some disabled, some blank.
7
8 Try this:
9 gcc -Q --help=target -march=native > /tmp/gccoptions.native
10 gcc -Q --help=target > /tmp/gccoptions.plain
11 diff /tmp/gccoptions.*
12
13 This will show the things that specifying -march=native turns on. Put this
14 in your CFLAGS, unless you use -march=native.
15
16 > And -march=prescott !?
17
18 Why not? Seems gcc 4.3 does not have the -march=atom optimization yet. It's
19 also suggested here:
20 http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Atom
21
22 Wonko