1 |
Vlastimil Babka wrote: |
2 |
> Peter Gordon wrote: |
3 |
>> On Tue, 2007-07-17 at 19:47 -0400, Mike Frysinger wrote: |
4 |
>>> historically, gcc on x86 has always defaulted to i386. some people noticed |
5 |
>>> recently that glibc-2.6 fails to build in this situation as they were only |
6 |
>>> setting -mtune via CFLAGS, not -march. i'll be tweaking gcc so that it will |
7 |
>>> default -march based on your CHOST. so all the i686-* people will now have a |
8 |
>>> default -march=i686 implied in their gcc systems, i586-* people will |
9 |
>>> have -march=i586, etc... keep in mind this is merely the default. |
10 |
>>> -mike |
11 |
>> Does this mean that any user-set "-march" flag is overridden for these |
12 |
>> cases? Just curious. |
13 |
> |
14 |
> I think he meant CHOST sets just *default* so any user-set -march |
15 |
> overrides that. |
16 |
> But I wonder what happens to user-set -mtune then? Since AFAIK -march |
17 |
> implies -mtune, will also the default -march override user-set -mtune? |
18 |
|
19 |
Previously GCC defaulted to -march=i386, which implied -mtune=i386 |
20 |
(actually, -mcpu for some reason (?)), when neither were set. People |
21 |
are setting CFLAGS="-mtune=pentium4 -O2 -fblah..." which therefore is |
22 |
defaulting to -march=i386 -mtune=pentium4. glibc-2.6 requires >= |
23 |
-march=i486. Kaboom. |
24 |
|
25 |
Now -march=$(echo $CHOST | awk -F- '{ print $1 }'), which implies |
26 |
-mtune=echo $CHOST | awk -F- '{ print $1 }' when neither are set. If |
27 |
_either_ are set by the user, they are overridden. |
28 |
|
29 |
ie. you can still set -march=i386 or -mtune=i386 or whatever you like. |
30 |
|
31 |
-- |
32 |
dirtyepic salesman said this vacuum's guaranteed |
33 |
gentoo org it could suck an ancient virus from the sea |
34 |
9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8) |
35 |
|
36 |
-- |
37 |
gentoo-dev@g.o mailing list |