public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Commit: MSP430: Enhance -mhwmult option
@ 2014-04-23 10:41 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2014-04-23 10:41 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 1803 bytes --]

Hi Guys,

  I am applying the attached patch to enhance the -mhwmult command line
  option of the MSP430 backend.  The option can now be used to specify
  the type of hardware multiplier supported to be enabled as well as
  just enabling or disabling the support.  The default behaviour is now
  to enable hardware multiply support based upon the -mmcu command line
  option used.  If no -mmcu option has been specified, or the mcu name
  is unrecognised, then the normal 32-bit hardware support will be
  enabled.
  
  The patch also fixes the parsing of the -mmcu= and -mcpu= command line
  options so that the last one specified takes precedence.

Cheers
  Nick

gcc/ChangeLog
2014-04-23  Nick Clifton  <nickc@redhat.com>

	* config/msp430/msp430.c (msp430_handle_option): Move function
	to msp430-common.c
	(msp430_option_override): Simplify mcu and mcpu option handling.
	(msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
	support for -mhwmult command line option.
	(has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
	-mhwmult command line option.
	(msp430_hwmult_enabled): Delete.
	(msp43o_output_labelref): Add support for -mhwmult command line
	option.
	* config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
	(umulsidi3): Likewise.
	* config/msp430/msp430.opt (mmcu): Add Report attribute.
	(mcpu, mlarge, msmall): Likewise.
	(mhwmult): New option.
	* config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
	prototype.
	(msp430_is_f5_mcu): Remove prototype.
	(msp430_use_f5_series_hwmult): Add prototype.
	* config/msp430/msp430-opts.h: New file.
	* common/config/msp430: New directory.
	* common/config/msp430/msp430-common.c: New file.
	* config.gcc (msp430): Remove target_has_targetm_common.
	* doc/invoke.texi: Document -mhwmult command line option.


[-- Attachment #2: msp430.opts.patch.xz --]
[-- Type: application/x-xz, Size: 4484 bytes --]

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

only message in thread, other threads:[~2014-04-23 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23 10:41 Commit: MSP430: Enhance -mhwmult option 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).