MSP430: Don't pass redundant -md option to the assembler
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 3 Aug 2020 14:54:52 +0000 (15:54 +0100)
committerJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 3 Aug 2020 14:54:52 +0000 (15:54 +0100)
The MSP430 GAS option "-md" is supposed to indicate that the CRT startup
code should copy data from ROM to RAM at startup. However, this option
has no effect; GAS handles the related behaviour automatically.

gcc/ChangeLog:

* config/msp430/msp430.h (ASM_SPEC): Don't pass on "-md" option.

gcc/config/msp430/msp430.h

index e97e833..2500771 100644 (file)
@@ -65,8 +65,6 @@ extern bool msp430x;
   "%{mrelax=-mQ} " /* Pass the relax option on to the assembler.  */ \
   /* Tell the assembler if we are building for the LARGE pointer model.  */ \
   "%{mlarge:-ml} " \
-  /* Copy data from ROM to RAM if necessary.  */ \
-  "%{!msim:-md} %{msim:%{mlarge:-md}} " \
   "%{msilicon-errata=*:-msilicon-errata=%*} " \
   "%{msilicon-errata-warn=*:-msilicon-errata-warn=%*} " \
   /* Create DWARF line number sections for -ffunction-sections.  */ \