1 |
halcy0n 09/06/20 18:52:37 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 93_all_gcc44-pr37179.patch |
5 |
Log: |
6 |
Add patches to fix -march=native on geode CPUs; bug #270409 |
7 |
|
8 |
Revision Changes Path |
9 |
1.2 src/patchsets/gcc/4.4.0/gentoo/README.history |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.0/gentoo/README.history?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.0/gentoo/README.history?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.0/gentoo/README.history?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: README.history |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.4.0/gentoo/README.history,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- README.history 24 May 2009 19:39:55 -0000 1.1 |
22 |
+++ README.history 20 Jun 2009 18:52:37 -0000 1.2 |
23 |
@@ -1,3 +1,6 @@ |
24 |
+1.2 pending |
25 |
+ + 93_all_gcc44-pr37179.patch |
26 |
+ |
27 |
1.1 24.05.2009 |
28 |
+ 92_all_gcc44-pr40105.patch |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
1.1 src/patchsets/gcc/4.4.0/gentoo/93_all_gcc44-pr37179.patch |
34 |
|
35 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.0/gentoo/93_all_gcc44-pr37179.patch?rev=1.1&view=markup |
36 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.0/gentoo/93_all_gcc44-pr37179.patch?rev=1.1&content-type=text/plain |
37 |
|
38 |
Index: 93_all_gcc44-pr37179.patch |
39 |
=================================================================== |
40 |
Index: branches/gcc-4_4-branch/gcc/ChangeLog |
41 |
=================================================================== |
42 |
--- branches/gcc-4_4-branch/gcc/ChangeLog (revision 147468) |
43 |
+++ branches/gcc-4_4-branch/gcc/ChangeLog (revision 147469) |
44 |
@@ -1,3 +1,11 @@ |
45 |
+2009-05-13 Uros Bizjak <ubizjak@×××××.com> |
46 |
+ |
47 |
+ PR target/37179 |
48 |
+ * config/i386/driver-i386.c (processor_signatures): New enum. |
49 |
+ (SIG_GEODE): Move from vendor_signatures to processor_signatures. |
50 |
+ (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE |
51 |
+ processor signature to detect geode processor. |
52 |
+ |
53 |
2009-05-12 Jakub Jelinek <jakub@××××××.com> |
54 |
|
55 |
Backport from mainline: |
56 |
Index: branches/gcc-4_4-branch/gcc/config/i386/driver-i386.c |
57 |
=================================================================== |
58 |
--- branches/gcc-4_4-branch/gcc/config/i386/driver-i386.c (revision 147468) |
59 |
+++ branches/gcc-4_4-branch/gcc/config/i386/driver-i386.c (revision 147469) |
60 |
@@ -336,7 +336,11 @@ |
61 |
enum vendor_signatures |
62 |
{ |
63 |
SIG_INTEL = 0x756e6547 /* Genu */, |
64 |
- SIG_AMD = 0x68747541 /* Auth */, |
65 |
+ SIG_AMD = 0x68747541 /* Auth */ |
66 |
+}; |
67 |
+ |
68 |
+enum processor_signatures |
69 |
+{ |
70 |
SIG_GEODE = 0x646f6547 /* Geod */ |
71 |
}; |
72 |
|
73 |
@@ -433,19 +437,27 @@ |
74 |
|
75 |
if (vendor == SIG_AMD) |
76 |
{ |
77 |
- processor = PROCESSOR_PENTIUM; |
78 |
+ unsigned int name; |
79 |
|
80 |
- if (has_mmx) |
81 |
+ /* Detect geode processor by its processor signature. */ |
82 |
+ if (ext_level > 0x80000001) |
83 |
+ __cpuid (0x80000002, name, ebx, ecx, edx); |
84 |
+ else |
85 |
+ name = 0; |
86 |
+ |
87 |
+ if (name == SIG_GEODE) |
88 |
+ processor = PROCESSOR_GEODE; |
89 |
+ else if (has_sse4a) |
90 |
+ processor = PROCESSOR_AMDFAM10; |
91 |
+ else if (has_sse2 || has_longmode) |
92 |
+ processor = PROCESSOR_K8; |
93 |
+ else if (has_3dnowp) |
94 |
+ processor = PROCESSOR_ATHLON; |
95 |
+ else if (has_mmx) |
96 |
processor = PROCESSOR_K6; |
97 |
- if (has_3dnowp) |
98 |
- processor = PROCESSOR_ATHLON; |
99 |
- if (has_sse2 || has_longmode) |
100 |
- processor = PROCESSOR_K8; |
101 |
- if (has_sse4a) |
102 |
- processor = PROCESSOR_AMDFAM10; |
103 |
+ else |
104 |
+ processor = PROCESSOR_PENTIUM; |
105 |
} |
106 |
- else if (vendor == SIG_GEODE) |
107 |
- processor = PROCESSOR_GEODE; |
108 |
else |
109 |
{ |
110 |
switch (family) |