2004-09-07 David Daney <ddaney@avtrex.com>
commitf9262d1ebedf777c591ad1941365c24d173c9cea
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Sep 2004 19:39:06 +0000 (7 19:39 +0000)
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Sep 2004 19:39:06 +0000 (7 19:39 +0000)
treee327d4edd9f01ed94fe9589e1ab018e6777aba69
parentf50b5bd06cce53a0511bb13cf1f8072f6a6b9afc
2004-09-07  David Daney  <ddaney@avtrex.com>

* config.gcc: Added support for --with-divide=[breaks|traps] for
mips targets.
* config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
(TARGET_DIVIDE_TRAPS): New macro.
(TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
(OPTION_DEFAULT_SPECS): Added --with-divide= support.
* config/mips/mips.c (mips_idiv_insns): Generate proper count on
GENERATE_DIVIDE_TRAPS.
(mips_output_division): Emit conditional trap if
GENERATE_DIVIDE_TRAPS is set.
* doc/install.texi: Document --with-divide.
* doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87153 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config.gcc
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/doc/install.texi
gcc/doc/invoke.texi