1 |
vapier 09/03/01 20:37:50 |
2 |
|
3 |
Modified: toolchain.eclass |
4 |
Log: |
5 |
filter more flags for gcc-3.3 |
6 |
|
7 |
Revision Changes Path |
8 |
1.392 eclass/toolchain.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?rev=1.392&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?rev=1.392&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?r1=1.391&r2=1.392 |
13 |
|
14 |
Index: toolchain.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v |
17 |
retrieving revision 1.391 |
18 |
retrieving revision 1.392 |
19 |
diff -u -r1.391 -r1.392 |
20 |
--- toolchain.eclass 15 Feb 2009 23:04:39 -0000 1.391 |
21 |
+++ toolchain.eclass 1 Mar 2009 20:37:50 -0000 1.392 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.391 2009/02/15 23:04:39 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.392 2009/03/01 20:37:50 vapier Exp $ |
27 |
# |
28 |
# Maintainer: Toolchain Ninjas <toolchain@g.o> |
29 |
|
30 |
@@ -1555,11 +1555,28 @@ |
31 |
|
32 |
case ${GCC_BRANCH_VER} in |
33 |
3.2|3.3) |
34 |
- replace-cpu-flags k8 athlon64 opteron i686 |
35 |
+ replace-cpu-flags k8 athlon64 opteron i686 x86-64 |
36 |
replace-cpu-flags pentium-m pentium3m pentium3 |
37 |
case $(tc-arch) in |
38 |
- amd64|x86) filter-flags '-mtune=*';; |
39 |
+ amd64|x86) filter-flags '-mtune=*' ;; |
40 |
+ # in gcc 3.3 there is a bug on ppc64 where if -mcpu is used, |
41 |
+ # the compiler wrongly assumes a 32bit target |
42 |
+ ppc64) filter-flags "-mcpu=*";; |
43 |
esac |
44 |
+ case $(tc-arch) in |
45 |
+ amd64) replace-cpu-flags core2 nocona;; |
46 |
+ x86) replace-cpu-flags core2 prescott;; |
47 |
+ esac |
48 |
+ |
49 |
+ replace-cpu-flags G3 750 |
50 |
+ replace-cpu-flags G4 7400 |
51 |
+ replace-cpu-flags G5 7400 |
52 |
+ |
53 |
+ # XXX: should add a sed or something to query all supported flags |
54 |
+ # from the gcc source and trim everything else ... |
55 |
+ filter-flags -f{no-,}unit-at-a-time -f{no-,}web -mno-tls-direct-seg-refs |
56 |
+ filter-flags -f{no-,}stack-protector{,-all} |
57 |
+ filter-flags -fvisibility-inlines-hidden -fvisibility=hidden |
58 |
;; |
59 |
3.4|4.*) |
60 |
case $(tc-arch) in |