msp430.h (ASM_SPEC): Pass -md on to the assembler.
authorNick Clifton <nickc@redhat.com>
Wed, 18 Sep 2013 08:05:50 +0000 (08:05 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 18 Sep 2013 08:05:50 +0000 (08:05 +0000)
* config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
(ASM_DECLARE_FUNCTION_NAME): Define.

From-SVN: r202681

gcc/ChangeLog
gcc/config/msp430/msp430.h

index c28bd10e6a60b6a2e04b7047c1214c700e4f057c..ea746bc884e91e4b326d509ffa70df095c41b61d 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-18  Nick Clifton  <nickc@redhat.com>
+
+       * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
+       (ASM_DECLARE_FUNCTION_NAME): Define.
+
 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
 
        * compare-elim.c (find_comparison_dom_walker): New class
index 0b77c4abb451318b99070ecc369972c5f85e5dfd..f5289b551e330fe00c03746d2d315a42c2aae94c 100644 (file)
@@ -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))