aboutsummaryrefslogtreecommitdiff
path: root/gcc/common/config/msp430/msp430-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/common/config/msp430/msp430-common.c')
-rw-r--r--gcc/common/config/msp430/msp430-common.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/common/config/msp430/msp430-common.c b/gcc/common/config/msp430/msp430-common.c
index ce071d13fa9..cbceab92db3 100644
--- a/gcc/common/config/msp430/msp430-common.c
+++ b/gcc/common/config/msp430/msp430-common.c
@@ -27,9 +27,9 @@
#include "opts.h"
#include "flags.h"
-/* Handle -mcpu= and -mmcu= here. We want to ensure that only one
- of these two options - the last specified on the command line -
- is passed on to the msp430 backend. */
+/* Check for generic -mcpu= and -mmcu= names here. If found then we
+ convert to a baseline cpu name. Otherwise we allow the option to
+ be passed on to the backend where it can be checked more fully. */
static bool
msp430_handle_option (struct gcc_options *opts ATTRIBUTE_UNUSED,
@@ -46,13 +46,11 @@ msp430_handle_option (struct gcc_options *opts ATTRIBUTE_UNUSED,
|| strcasecmp (decoded->arg, "430xv2") == 0)
{
target_cpu = "msp430x";
- target_mcu = NULL;
}
else if (strcasecmp (decoded->arg, "msp430") == 0
|| strcasecmp (decoded->arg, "430") == 0)
{
target_cpu = "msp430";
- target_mcu = NULL;
}
else
{
@@ -77,8 +75,6 @@ msp430_handle_option (struct gcc_options *opts ATTRIBUTE_UNUSED,
target_cpu = "msp430x";
target_mcu = NULL;
}
- else
- target_cpu = NULL;
break;
}