mips.h (mips_fix_vr4130_string): Declare.
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 11 Mar 2005 16:38:27 +0000 (16:38 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 11 Mar 2005 16:38:27 +0000 (16:38 +0000)
commit0ac40e7a866e3b149bdeacbf5cc36d1fe364a952
tree6d67d7deaee3c8d2c5daab6e5ceec21a45c98736
parent266c6b40edea65bc1159fa60a229b7d8182412ff
mips.h (mips_fix_vr4130_string): Declare.

* config/mips/mips.h (mips_fix_vr4130_string): Declare.
(TARGET_FIX_VR4130): New macro.
(TARGET_OPTIONS): Add -mfix-vr4130.
(ISA_HAS_MACCHI): New macro.
(ASM_SPEC): Add -mfix-vr4130.
* config/mips/mips.c (mips_fix_vr4130_string): New variable.
(override_options): Handle mips_fix_vr4130_string.
(mips_avoid_hazards): Clear all_noreorder_p
if we're working around VR4130 errata and the macc alternatives
are not available.
* config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
(*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
* config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
(MULTILIB_DEFAULTS): Remove leading "march=".
(DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
if no architecture option is given.
* config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
VR4130 multilibs.
(MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
* doc/invoke.texi: Document -mfix-vr4130.

From-SVN: r96301
12 files changed:
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/config/mips/t-vr
gcc/config/mips/vr.h
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/fix-vr4130-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/fix-vr4130-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/fix-vr4130-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/fix-vr4130-4.c [new file with mode: 0644]