1 |
On 12/09/03 03:25:38, Marius Mauch wrote: |
2 |
> On 12/09/03 John Nilsson wrote: |
3 |
> |
4 |
> > It was suggested in a discussion (bug[35184]) that this was files |
5 |
> as |
6 |
> a |
7 |
> > |
8 |
> > GLEP. This is just a quick dirty draft. Any comments would be |
9 |
> > apreciated. |
10 |
> |
11 |
> While it might be a good idea on the first view it has a number of |
12 |
> problems: |
13 |
> |
14 |
> - the effect of -f and -O flags can be dependent on the hardware, e. |
15 |
> g. |
16 |
> -O3 creates bigger binaries that are faster than -O2 on a Xeon, but |
17 |
> slower on a Duron or Celeron (due to different cache sizes). I'm sure |
18 |
> this also applies to other flags. Further -O3 toggles different -f |
19 |
> flags |
20 |
> on different architectures (-fomit-frame-pointer on some non-x86 |
21 |
> archs). |
22 |
|
23 |
How is this related to this scheme? Also bugs in gcc should be fixed in |
24 |
gcc. |
25 |
|
26 |
> - developer time: it would need an extreme amount of developer time |
27 |
> to |
28 |
> test all possible combinations for all C/C++ based packages, even if |
29 |
> it's only done for new ebuilds. |
30 |
|
31 |
They wouldn't. Most packages would use a standard set of cflags and |
32 |
with time user tests and patches would move these towards the optimal. |
33 |
|
34 |
> - user confusion: users will be very confused about this change when |
35 |
> they CFLAGS don't work anymore (and allowing them to override them |
36 |
> will |
37 |
> negate most of the benefits of this proposal) |
38 |
|
39 |
Those people who don't use default flags would probably find per |
40 |
package optimization a nice feature. |
41 |
|
42 |
> - compatibility: each new gcc version has some new flags, so all |
43 |
> these |
44 |
> per-package flags would ahve to be revised as soon as there is a new |
45 |
> gcc |
46 |
> version out (with new version I mean the x or y in x.y.z). |
47 |
|
48 |
|
49 |
probably and hopefully ;) |
50 |
|
51 |
One might have a compiler theme file with cascading (as in css) |
52 |
settings. |
53 |
|
54 |
/John |