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.

Cheers
  Nick

libgcc/ChangeLog
2014-05-22  Nick Clifton  <ni...@redhat.com>

        * config/msp430/t-msp430 (HOST_LIBGCC2_CFLAGS): Add
        -mhwmult=none.

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 \
        $(srcdir)/config/msp430/cmpd.c
 
-HOST_LIBGCC2_CFLAGS += -Os -ffunction-sections -fdata-sections
+HOST_LIBGCC2_CFLAGS += -Os -ffunction-sections -fdata-sections -mhwmult=none
 
 # Local Variables:
 # mode: Makefile

Reply via email to