Patchwork Support -m{cpu,tune}=native on Linux/Sparc

login
register
mail settings
Submitter David Miller
Date Oct. 4, 2011, 5:52 p.m.
Message ID <20111004.135241.2127437692226708858.davem@davemloft.net>
Download mbox | patch
Permalink /patch/117683/
State New
Headers show

Comments

David Miller - Oct. 4, 2011, 5:52 p.m.
From: Gerald Pfeifer <gerald@pfeifer.com>
Date: Tue, 4 Oct 2011 11:25:11 +0200 (CEST)

> On Sun, 2 Oct 2011, David Miller wrote:
>> We always use "Sparc" instead of "SPARC" for the cpu names output
>> by the kernel in /proc/cpuinfo.
> 
> Ah, I see.  Thanks for the explanation.
> 
> What confused me a bit is that a bit earlier in the same table
> there is one (and just one) entry using "SPARC":
> 
>   { "SuperSPARC",       "supersparc" }
> 
> I assume this is for historical reasons?

Committed to trunk, as discussed:

--------------------
Small -m{cpu,tune}=native fix under Linux/Sparc.

	* config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
	under Linux.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179510 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog                   |    5 +++++
 gcc/config/sparc/driver-sparc.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2f4d9a6..788c5f5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@ 
+2011-10-04  David S. Miller  <davem@davemloft.net>
+
+	* config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
+	under Linux.
+
 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
 
 	PR tree-optimization/50604
diff --git a/gcc/config/sparc/driver-sparc.c b/gcc/config/sparc/driver-sparc.c
index 9622728..3973fbc 100644
--- a/gcc/config/sparc/driver-sparc.c
+++ b/gcc/config/sparc/driver-sparc.c
@@ -58,7 +58,7 @@  static const struct cpu_names {
   { "SPARC-T3",		"niagara3" },
   { "SPARC-T4",		"niagara4" },
 #else
-  { "SuperSPARC",	"supersparc" },
+  { "SuperSparc",	"supersparc" },
   { "HyperSparc",	"hypersparc" },
   { "SpitFire",		"ultrasparc" },
   { "BlackBird",	"ultrasparc" },