aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2009-08-04 20:46:07 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2009-08-04 20:46:07 -0400
commit5dce6dbd99e95a86a4382497eb0c823274ab4724 (patch)
tree14aded976b123dd7378ca95078404478f577bb11 /gcc/config/mips
parentc12bec657fdd904ee6f8d4c64d9f0c4aae291de3 (diff)
downloadgcc-5dce6dbd99e95a86a4382497eb0c823274ab4724.zip
gcc-5dce6dbd99e95a86a4382497eb0c823274ab4724.tar.gz
gcc-5dce6dbd99e95a86a4382497eb0c823274ab4724.tar.bz2
invoke.texi (MIPS Options): Document new 1004K -march options.
2009-08-04 Sandra Loosemore <sandra@codesourcery.com> gcc/ * doc/invoke.texi (MIPS Options): Document new 1004K -march options. * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores. * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K. (MIPS_ARCH_FLOAT_SPEC): Likewise. (BASE_DRIVER_SELF_SPECS): Likewise. From-SVN: r150475
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c5
-rw-r--r--gcc/config/mips/mips.h7
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 083b253..658d2da 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -686,6 +686,11 @@ static const struct mips_cpu_info mips_cpu_info_table[] = {
{ "74kx", PROCESSOR_74KF1_1, 33, 0 },
{ "74kf3_2", PROCESSOR_74KF3_2, 33, 0 },
+ { "1004kc", PROCESSOR_24KC, 33, 0 }, /* 1004K with MT/DSP. */
+ { "1004kf2_1", PROCESSOR_24KF2_1, 33, 0 },
+ { "1004kf", PROCESSOR_24KF2_1, 33, 0 },
+ { "1004kf1_1", PROCESSOR_24KF1_1, 33, 0 },
+
/* MIPS64 processors. */
{ "5kc", PROCESSOR_5KC, 64, 0 },
{ "5kf", PROCESSOR_5KF, 64, 0 },
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 8515ce1..e28e4c1 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -734,7 +734,7 @@ enum mips_code_readable_setting {
|march=r10000|march=r12000|march=r14000|march=r16000:-mips4} \
%{march=mips32|march=4kc|march=4km|march=4kp|march=4ksc:-mips32} \
%{march=mips32r2|march=m4k|march=4ke*|march=4ksd|march=24k* \
- |march=34k*|march=74k*: -mips32r2} \
+ |march=34k*|march=74k*|march=1004k*: -mips32r2} \
%{march=mips64|march=5k*|march=20k*|march=sb1*|march=sr71000 \
|march=xlr: -mips64} \
%{march=mips64r2|march=octeon: -mips64r2} \
@@ -747,7 +747,8 @@ enum mips_code_readable_setting {
#define MIPS_ARCH_FLOAT_SPEC \
"%{mhard-float|msoft-float|march=mips*:; \
march=vr41*|march=m4k|march=4k*|march=24kc|march=24kec \
- |march=34kc|march=74kc|march=5kc|march=octeon|march=xlr: -msoft-float; \
+ |march=34kc|march=74kc|march=1004kc|march=5kc \
+ |march=octeon|march=xlr: -msoft-float; \
march=*: -mhard-float}"
/* A spec condition that matches 32-bit options. It only works if
@@ -793,7 +794,7 @@ enum mips_code_readable_setting {
/* A spec that infers the -mdsp setting from an -march argument. */
#define BASE_DRIVER_SELF_SPECS \
- "%{!mno-dsp:%{march=24ke*|march=34k*|march=74k*: -mdsp}}"
+ "%{!mno-dsp:%{march=24ke*|march=34k*|march=74k*|march=1004k*: -mdsp}}"
#define DRIVER_SELF_SPECS BASE_DRIVER_SELF_SPECS