public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Commit: MSP430: Extend msp430_use_f5_series_hwmult()
@ 2015-02-04 11:50 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2015-02-04 11:50 UTC (permalink / raw)
  To: gcc-patches

Hi Guys,

  I am applying the patch below to extend the MSP430 port of gcc's
  auto-recognition of F5 multiply hardware enabled MCUs.

Cheers
  Nick

gcc/ChangeLog
2015-02-04  Nick Clifton  <nickc@redhat.com>

	* config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
	prefixes of known F5 using MSP430 MCUs.

Index: gcc/config/msp430/msp430.c
===================================================================
RCS file: /cvs/cvsfiles/gnupro/gcc/config/msp430/msp430.c,v
retrieving revision 1.9.2.6
diff -u -3 -p -r1.9.2.6 msp430.c
--- gcc/config/msp430/msp430.c	15 Dec 2014 20:25:23 -0000	1.9.2.6
+++ gcc/config/msp430/msp430.c	22 Jan 2015 16:33:15 -0000
@@ -2508,6 +2508,10 @@ msp430_use_f5_series_hwmult (void)
 
   if (strncasecmp (target_mcu, "msp430f5", 8) == 0)
     return cached_result = true;
+  if (strncasecmp (target_mcu, "msp430fr5", 9) == 0)
+    return cached_result = true;
+  if (strncasecmp (target_mcu, "msp430f6", 8) == 0)
+    return cached_result = true;
 
   static const char * known_f5_mult_mcus [] =
     {
@@ -2516,7 +2520,8 @@ msp430_use_f5_series_hwmult (void)
       "cc430f5145",	"cc430f5147",	"cc430f6125",
       "cc430f6126",	"cc430f6127",	"cc430f6135",
       "cc430f6137",	"cc430f6143",	"cc430f6145",
-      "cc430f6147",	"msp430bt5190",	"msp430sl5438a"
+      "cc430f6147",	"msp430bt5190",	"msp430sl5438a",
+      "msp430xgeneric"
     };
   int i;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-04 11:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04 11:50 Commit: MSP430: Extend msp430_use_f5_series_hwmult() Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).