From cc8c0049749736cdd88bc9c90f5df3961b97c67c Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 3 Aug 2020 15:54:52 +0100 Subject: [PATCH] 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. --- gcc/config/msp430/msp430.h | 2 -- 1 file changed, 2 deletions(-) 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. */ \ -- 2.30.2