This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: MSP430: Built libgcc with hardware multiply disabled

Hi Guys,

  I am applying the patch below (to mainline and the 4.9 branch) to fix
  a problem when building libgcc for the MSP430.  The problem was that
  the software multiply functions were being renamed to the hardware
  multiply equivalents, and libgcc was using the hardware multiply
  feature even when it was not clear that it would be supported by the
  target MCU.  The fix is just to disable the use of hardware multiplies
  inside libgcc.


2014-05-22  Nick Clifton  <>

	* config/msp430/t-msp430 (HOST_LIBGCC2_CFLAGS): Add

Index: config/msp430/t-msp430
--- config/msp430/t-msp430	(revision 210809)
+++ config/msp430/t-msp430	(working copy)
@@ -42,7 +42,7 @@
 	$(srcdir)/config/msp430/floathisf.c \
-HOST_LIBGCC2_CFLAGS += -Os -ffunction-sections -fdata-sections
+HOST_LIBGCC2_CFLAGS += -Os -ffunction-sections -fdata-sections -mhwmult=none
 # Local Variables:
 # mode: Makefile

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]