Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@××××××××××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Replacing cpu-feature USE flags
Date: Fri, 07 Jul 2006 12:26:34
Message-Id: 1152275089.9384.29.camel@lycan.lan
In Reply to: Re: [gentoo-dev] Replacing cpu-feature USE flags by "Diego 'Flameeyes' Pettenò"
1 On Fri, 2006-07-07 at 02:08 +0200, Diego 'Flameeyes' Pettenò wrote:
2 > On Friday 07 July 2006 01:54, Ciaran McCreesh wrote:
3 > > | No, we never spent years telling them not to use your so-called
4 > > | "CFLAGS hacks" that are rather a proper usage of what the compiler
5 > > | gives you.
6 > > Wrong. We did.
7 > Then you were wrong. I could have spent time explaining them when they make
8 > sense and why they don't in their usecases. If you did, well, then you really
9 > need to know better what you do because you seem to me pretty confused
10 > yourself, and I feel pity for you.
11 >
12
13 Yes, we did. Were we wrong? Out of a purest point of view ... maybe.
14 The problem was though that earlier gcc's was very bad at generating
15 sse/sse2, and sometimes mmx code.
16
17 Users being what they are though (ricers should say it all), they
18 enabled every flag that sounded like it could make their old box two
19 times faster. This included -msse, -msse2, etc. Which quite frankly
20 produced bad code in many cases. So we told the users to not add any
21 -m* flags, and let gcc do its job with the proper -march.
22
23 So yeah, I can see that general use flags for cpu features might become
24 more tedious with the many new modules of processors out there, but to
25 say handle it by adding -msse, etc to CFLAGS, will surely if not on
26 gcc4, but then on gcc3 systems just ask for trouble.
27
28 And yes, I know you are saying that that is not exactly what you are
29 proposing, but the users will see it as a clear passport to stick all
30 those nice sounding flags just right back in, and then it will be too
31 late to tell them its not proper thing to do when the bugs start
32 flooding in.
33
34 Anyway, I tried to give some history and some what ifs, but as I
35 admitted many times in the past, I am no great writer. You had to be
36 'there' I guess, *shrug*.
37
38
39 --
40 Martin Schlemmer

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Replacing cpu-feature USE flags Brian Harring <ferringb@×××××.com>