From: Jozef Lawrynowicz Date: Mon, 3 Aug 2020 14:54:52 +0000 (+0100) Subject: MSP430: Don't pass redundant -md option to the assembler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc8c0049749736cdd88bc9c90f5df3961b97c67c;p=gcc.git MSP430: Don't pass redundant -md option to the assembler 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. --- diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h index e97e833a10c..25007716d24 100644 --- a/gcc/config/msp430/msp430.h +++ b/gcc/config/msp430/msp430.h @@ -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. */ \