public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Commit: MSP430: Built libgcc with hardware multiply disabled
@ 2014-05-22 15:14 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2014-05-22 15:14 UTC (permalink / raw)
  To: gcc-patches

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  <nickc@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-22 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22 15:14 Commit: MSP430: Built libgcc with hardware multiply disabled Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).