Commit: MSP430: Add spaces after options inserted by ASM_SPEC

Nick Clifton nickc@redhat.com
Thu May 22 15:08:00 GMT 2014


Hi Guys,

  I am applying the patch below (to mainline and the 4.9 branch) to fix
  a small bug in the definition of ASM_SPEC for the MSP430.  The problem
  was that there were no spaces between some of the options that could
  be inserted into the assembler command line, which could produce
  unintelligible options.

Cheers
  Nick

gcc/ChangeLog
2014-05-22  Nick Clifton  <nickc@redhat.com>

	* config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted
	options.

Index: gcc/config/msp430/msp430.h
===================================================================
--- gcc/config/msp430/msp430.h	(revision 210807)
+++ gcc/config/msp430/msp430.h	(working copy)
@@ -55,8 +55,8 @@
   "%{mcpu=*:-mcpu=%*}%{!mcpu=*:%{mmcu=*:-mmcu=%*}} " /* Pass the CPU 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.  */
+  "%{!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
    are creating a relocatable binary (gc does not work) or debugging



More information about the Gcc-patches mailing list