Gentoo Archives: gentoo-dev

From: Mark Gordon <mark.gt@×××××××××××××××.uk>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] auto selection of optimal gcc architecture settings
Date: Mon, 28 Apr 2003 14:05:41
Message-Id: 20030428150515.0751c930.mark.gt@flash-gordon.me.uk
In Reply to: Re: [gentoo-dev] auto selection of optimal gcc architecture settings by Padraig Brady
1 On Mon, 28 Apr 2003 14:40:10 +0100
2 Padraig Brady <padraig.brady@××××××.com> wrote:
3
4 > Mark Gordon wrote:
5 > > On Mon, 28 Apr 2003 10:18:54 +0100
6 > > Padraig Brady <padraig.brady@××××××.com> wrote:
7 > >
8 > >
9 > >>Eric Ball wrote:
10 > >>
11 > >>>On Sat, 26 Apr 2003 12:57 am, Padraig Brady wrote:
12 > >>>
13 > >>>
14 > >>>>Hi,
15 > >>>>
16 > >>>>I've been testing http://www.pixelbeat.org/scripts/gcccpuopt
17 > >>>>over the last while with good results. Essentially it's
18 > >>>>a Linux specific script that only helps on x86 at present
19 > >>>>but can be updated to other architectures easily.
20 > >>>>
21 > >>>>It would be beneficial IMHO for gentoo to run it at
22 > >>>>installation time and update /etc/make.conf appropriately?
23 > >>>>
24 > >>>>thanks,
25 > >>>>Pádraig.
26 > >>>
27 > >>>It seems nifty.
28 > >>>I'd recommend you submit it in Bugzilla at bugs.gentoo.org or in
29 > >the>>
30 > >>>gentoo-dev list as the powers-that-be might not read this list.
31 > >
32 > >
33 > > It needs extending even for the x86 compatible world.
34 > >
35 > > markg@brenda markg $ ./gcccpuopt
36 > > -march=pentium2 -mmmx
37 > > markg@brenda markg $ cat /proc/cpuinfo
38 > > processor : 0
39 > > vendor_id : GenuineTMx86
40 > > cpu family : 6
41 > > model : 4
42 > > model name : Transmeta(tm) Crusoe(tm) Processor TM5600
43 > >
44 > > As far as I'm aware the Crusoe emulates a Pentium, not a PII (I've
45 > > not seen anything definitive stating otherwise).
46 >
47 > Nah, cpu family = 6 is quite definitive.
48 > This is from /usr/src/linux-2.4/arch/i386/Makefile
49 > ifdef CONFIG_MCRUSOE
50 > CFLAGS += -march=i686
51 > endif
52 >
53 > > Any other strange processors out there that might have problems?
54 >
55 > the only exception is a gcc bug where is assumes 686 has cmov,
56 > and this is handled explicitly.
57
58 OK, I'll up my make.conf to -march=pentium2 and recompile a few things
59 starting with xfree86. If I find any problems I'll be back.
60 --
61 Mark Gordon
62 Paid to be a Geek & a Senior Software Developer
63 Currently looking for a new job commutable from Slough, Berks, U.K.
64 Although my email address says spamtrap, it is real and I read it.
65
66 --
67 gentoo-dev@g.o mailing list