mips-protos.h (mips_idiv_insns): Declare.
authorMaciej W. Rozycki <macro@ds2.pg.gda.pl>
Sat, 28 Feb 2004 19:59:24 +0000 (20:59 +0100)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 28 Feb 2004 19:59:24 +0000 (19:59 +0000)
commit4649040309b011c972e0ffbd0e1c336cb490eed3
treebba029a557fbe4c077010ada63b42fb438bc3e85
parent1b2c37673afe4cb63dfc0c949ec2ca82b3185761
mips-protos.h (mips_idiv_insns): Declare.

* config/mips/mips-protos.h (mips_idiv_insns): Declare.
* config/mips/mips.h (MASK_FIX_SB1): Bump.
(MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
(TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
* config/mips/mips.c (mips_idiv_insns): New function.
(override_options): Make -march=r4000 imply -mfix-r4000 by default.
(mips_output_division): Add a workaround for the R4000 divide/shift
errata.
* config/mips/mips.md (length): Use mips_idiv_insns() to calculate
the length of an "idiv" instruction.
* doc/invoke.texi: Document the new switches.

From-SVN: r78621
gcc/ChangeLog
gcc/config/mips/mips-protos.h
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/doc/invoke.texi