diff mbox

Commit: MSP430: Extend msp430_use_f5_series_hwmult()

Message ID 87a90tsxoi.fsf@redhat.com
State New
Headers show

Commit Message

Nick Clifton Feb. 4, 2015, 11:50 a.m. UTC
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.
diff mbox

Patch

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;