This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] MIPS: Infer dspr2 for the 74k
- From: Catherine Moore <clm at codesourcery dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Catherine Moore <clm at codesourcery dot com>
- Date: Fri, 27 Aug 2010 09:38:27 -0400
- Subject: [Patch] MIPS: Infer dspr2 for the 74k
This patch changes the default DSP setting for the 74K to DSPR2. Does
this look okay to install?
Thanks,
Catherine
2010-08-27 Catherine Moore <clm@codesourcery.com>
* config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
Infer -mdspr2 for the the 74K.
Index: config/mips/mips.h
===================================================================
--- config/mips/mips.h (revision 163517)
+++ config/mips/mips.h (working copy)
@@ -761,7 +761,8 @@ 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*|march=1004k*: -mdsp}}"
+ "%{!mno-dsp:%{march=24ke*|march=34k*|march=1004k*: -mdsp}} \
+ %{!mno-dspr2:%{march=74k*: -mdspr2}}"
#define DRIVER_SELF_SPECS BASE_DRIVER_SELF_SPECS