This patch makes GCC know about -march=34kn. MIPS asked us to add
support for this processor to our local source base a couple of years
ago; it's basically a 34Kc without the DSP ASE. OK for mainline?
I have posted the corresponding assembler patch here:
http://sourceware.org/ml/binutils/2012-08/msg00008.html
-Sandra
2012-08-01 Catherine Moore <c...@codesourcery.com>
Sandra Loosemore <san...@codesourcery.com>
gcc/
* config/mips/mips-cpus.def (34kn): New.
* config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
(BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
Index: config/mips/mips-cpus.def
===================================================================
--- config/mips/mips-cpus.def (revision 189988)
+++ config/mips/mips-cpus.def (working copy)
@@ -120,6 +120,7 @@ MIPS_CPU ("34kf", PROCESSOR_24KF2_1, 33,
MIPS_CPU ("34kf1_1", PROCESSOR_24KF1_1, 33, 0)
MIPS_CPU ("34kfx", PROCESSOR_24KF1_1, 33, 0)
MIPS_CPU ("34kx", PROCESSOR_24KF1_1, 33, 0)
+MIPS_CPU ("34kn", PROCESSOR_24KC, 33, 0) /* 34K with MT but no DSP. */
MIPS_CPU ("74kc", PROCESSOR_74KC, 33, 0) /* 74K with DSPr2. */
MIPS_CPU ("74kf2_1", PROCESSOR_74KF2_1, 33, 0)
Index: config/mips/mips.h
===================================================================
--- config/mips/mips.h (revision 189989)
+++ config/mips/mips.h (working copy)
@@ -715,7 +715,7 @@ struct mips_cpu_info {
#define MIPS_ARCH_FLOAT_SPEC \
"%{mhard-float|msoft-float|mno-float|march=mips*:; \
march=vr41*|march=m4k|march=4k*|march=24kc|march=24kec \
- |march=34kc|march=74kc|march=1004kc|march=5kc \
+ |march=34kc|march=34kn|march=74kc|march=1004kc|march=5kc \
|march=octeon|march=xlr: -msoft-float; \
march=*: -mhard-float}"
@@ -763,7 +763,7 @@ struct mips_cpu_info {
/* A spec that infers the -mdsp setting from an -march argument. */
#define BASE_DRIVER_SELF_SPECS \
"%{!mno-dsp: \
- %{march=24ke*|march=34k*|march=1004k*: -mdsp} \
+ %{march=24ke*|march=34kc*|march=34kf*|march=34kx*|march=1004k*: -mdsp} \
%{march=74k*:%{!mno-dspr2: -mdspr2 -mdsp}}}"
#define DRIVER_SELF_SPECS BASE_DRIVER_SELF_SPECS