From d30d00a2f1851cf6e6fe3b392a90b10e54388c20 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 18 Sep 2013 08:05:50 +0000 Subject: [PATCH] msp430.h (ASM_SPEC): Pass -md on to the assembler. * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler. (ASM_DECLARE_FUNCTION_NAME): Define. From-SVN: r202681 --- gcc/ChangeLog | 5 +++++ gcc/config/msp430/msp430.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c28bd10e6a6..ea746bc884e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-09-18 Nick Clifton + + * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler. + (ASM_DECLARE_FUNCTION_NAME): Define. + 2013-09-17 Trevor Saunders * compare-elim.c (find_comparison_dom_walker): New class diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h index 0b77c4abb45..f5289b551e3 100644 --- a/gcc/config/msp430/msp430.h +++ b/gcc/config/msp430/msp430.h @@ -54,6 +54,7 @@ extern bool msp430x; "%{mmcu=msp430x:-mmcu=msp430X;mmcu=*:-mmcu=%*} " /* Pass the MCU type on to the assembler. */ \ "%{mrelax=-mQ} " /* Pass the relax option on to the assembler. */ \ "%{mlarge:-ml} " /* Tell the assembler if we are building for the LARGE pointer model. */ \ + "%{!msim:-md} %{msim:%{mlarge:-md}}" /* Copy data from ROM to RAM if necessary. */ \ "%{ffunction-sections:-gdwarf-sections}" /* If function sections are being created then create DWARF line number sections as well. */ /* Enable linker section garbage collection by default, unless we @@ -399,3 +400,7 @@ typedef struct ) #define ACCUMULATE_OUTGOING_ARGS 1 + +#undef ASM_DECLARE_FUNCTION_NAME +#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ + msp430_start_function ((FILE), (NAME), (DECL))