config.gcc: Added support for --with-divide=[breaks|traps] for mips targets.
authorDavid Daney <ddaney@avtrex.com>
Tue, 7 Sep 2004 19:39:06 +0000 (19:39 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Tue, 7 Sep 2004 19:39:06 +0000 (19:39 +0000)
commit9f0df97afb590e40479e33806208870ad331467c
treee327d4edd9f01ed94fe9589e1ab018e6777aba69
parent9beb1c849ed6e852b744057cddd870c0511ecafe
config.gcc: Added support for --with-divide=[breaks|traps] for mips targets.

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.

From-SVN: r87153
gcc/ChangeLog
gcc/config.gcc
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/doc/install.texi
gcc/doc/invoke.texi