This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: Add -mhwmult=none to build command line


Hi Guys,

  I am applying the patch below to fix the build of newlib for the
  MSP430 target.  The problem here is that availability of hardware
  multiply support in the target is not known at build time, and so it
  cannot be relied upon.  Instead a software multiply function is used.
  The will make the library slightly slower, but also work properly for
  all MSP430 MCU types.

Cheers
  Nick
  
newlib/ChangeLog
2014-11-21  Nick Clifton  <nickc@redhat.com>

	PR target/63901
	* configure.host (msp430): Add -mhwmult=none to newlib_cflags.

Index: newlib/configure.host
===================================================================
RCS file: /cvs/src/src/newlib/configure.host,v
retrieving revision 1.137
diff -u -3 -p -r1.137 configure.host
--- newlib/configure.host	27 Jul 2014 14:37:10 -0000	1.137
+++ newlib/configure.host	21 Nov 2014 11:49:45 -0000
@@ -229,6 +229,7 @@ case "${host_cpu}" in
 	newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY"
 	newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections "
 	newlib_cflags="${newlib_cflags} -mOs "
+	newlib_cflags="${newlib_cflags} -mhwmult=none "
 	machine_dir=msp430
 	default_newlib_nano_malloc="yes"
 	;;


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