Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gcc/4.7.3/gentoo: 97_all_native-ivybridge.patch README.history
Date: Thu, 29 Aug 2013 05:01:29
Message-Id: 20130829050125.123CD2004C@flycatcher.gentoo.org
1 dirtyepic 13/08/29 05:01:24
2
3 Modified: README.history
4 Added: 97_all_native-ivybridge.patch
5 Log:
6 Add -march=native support for Ivy Bridge.
7
8 Revision Changes Path
9 1.11 src/patchsets/gcc/4.7.3/gentoo/README.history
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?rev=1.11&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?rev=1.11&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history?r1=1.10&r2=1.11
14
15 Index: README.history
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.7.3/gentoo/README.history,v
18 retrieving revision 1.10
19 retrieving revision 1.11
20 diff -u -r1.10 -r1.11
21 --- README.history 29 Aug 2013 04:35:06 -0000 1.10
22 +++ README.history 29 Aug 2013 05:01:24 -0000 1.11
23 @@ -1,5 +1,6 @@
24 1.3 (pending)
25 - 20_all_libgcc-ldflags.patch
26 + + 97_all_native-ivybridge.patch
27
28 1.2 26 Aug 2013
29 + 20_all_libgcc-ldflags.patch
30
31
32
33 1.1 src/patchsets/gcc/4.7.3/gentoo/97_all_native-ivybridge.patch
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/97_all_native-ivybridge.patch?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.7.3/gentoo/97_all_native-ivybridge.patch?rev=1.1&content-type=text/plain
37
38 Index: 97_all_native-ivybridge.patch
39 ===================================================================
40 Backport -march=native support for Ivy Bridge (core-avx-i).
41
42 http://gcc.gnu.org/PR57927
43
44
45 commit e5a02c15d9f687ee7fbfb37c10ef645db3cbc09d
46 Author: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
47 Date: Wed Aug 28 08:36:37 2013 +0000
48
49 Backport from mainline
50 2013-08-27 Christian Widmer <shadow@××××××.de>
51
52 PR target/57927
53 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
54 of Ivy Bridge processors.
55
56
57 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@202047 138bc75d-0d04-0410-961f-82ee72b054a4
58 ---
59 gcc/ChangeLog | 9 +++++++++
60 gcc/config/i386/driver-i386.c | 21 +++++++++++----------
61 2 files changed, 20 insertions(+), 10 deletions(-)
62
63
64 --- a/gcc/config/i386/driver-i386.c
65 +++ b/gcc/config/i386/driver-i386.c
66 @@ -630,13 +630,18 @@ const char *host_detect_local_cpu (int argc, const char **argv)
67 /* Atom. */
68 cpu = "atom";
69 break;
70 + case 0x0f:
71 + /* Merom. */
72 + case 0x17:
73 + case 0x1d:
74 + /* Penryn. */
75 + cpu = "core2";
76 + break;
77 case 0x1a:
78 case 0x1e:
79 case 0x1f:
80 case 0x2e:
81 /* Nehalem. */
82 - cpu = "corei7";
83 - break;
84 case 0x25:
85 case 0x2c:
86 case 0x2f:
87 @@ -648,14 +653,10 @@ const char *host_detect_local_cpu (int argc, const char **argv)
88 /* Sandy Bridge. */
89 cpu = "corei7-avx";
90 break;
91 - case 0x17:
92 - case 0x1d:
93 - /* Penryn. */
94 - cpu = "core2";
95 - break;
96 - case 0x0f:
97 - /* Merom. */
98 - cpu = "core2";
99 + case 0x3a:
100 + case 0x3e:
101 + /* Ivy Bridge. */
102 + cpu = "core-avx-i";
103 break;
104 default:
105 if (arch)