From patchwork Tue Oct 4 17:52:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Support -m{cpu,tune}=native on Linux/Sparc Date: Tue, 04 Oct 2011 07:52:41 -0000 From: David Miller X-Patchwork-Id: 117683 Message-Id: <20111004.135241.2127437692226708858.davem@davemloft.net> To: gerald@pfeifer.com Cc: gcc-patches@gcc.gnu.org, ebotcazou@adacore.com, ro@CeBiTec.Uni-Bielefeld.DE From: Gerald Pfeifer 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(-) 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 + + * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc + under Linux. + 2011-10-04 Jakub Jelinek 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" },