MSP430: Don't override default ISA when MCU name is unrecognized
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 7 Sep 2020 16:35:04 +0000 (17:35 +0100)
committerJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 7 Sep 2020 16:35:04 +0000 (17:35 +0100)
commit7f87e446691f1debfe2671a40f8738bd5e128832
tree7b55127322a9db6b09f7a224a9455f3480343ac4
parent84e9fc470f57c9a53295c3f7ebe805523cdd181c
MSP430: Don't override default ISA when MCU name is unrecognized

430X is the default ISA under normal operation, so even when the MCU name
passed to -mmcu= is unrecognized, it should not be overriden.

gcc/ChangeLog:

* config/msp430/msp430.c (msp430_option_override): Don't set the
ISA to 430 when the MCU is unrecognized.

gcc/testsuite/ChangeLog:

* gcc.target/msp430/430x-default-isa.c: New test.
gcc/config/msp430/msp430.c
gcc/testsuite/gcc.target/msp430/430x-default-isa.c [new file with mode: 0644]