aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/mips.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-09-10 14:51:48 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-09-10 14:51:48 +0000
commit7d8bed7be6a13f1c25743a1bc45361d9f4f3a662 (patch)
tree88992e8920e23fa7c52aa92c76a3834463e74984 /gcc/config/mips/mips.c
parentb3a06f593c5e947e2ec92da37878d423ce6f021e (diff)
downloadgcc-7d8bed7be6a13f1c25743a1bc45361d9f4f3a662.zip
gcc-7d8bed7be6a13f1c25743a1bc45361d9f4f3a662.tar.gz
gcc-7d8bed7be6a13f1c25743a1bc45361d9f4f3a662.tar.bz2
mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
gcc/ * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro. * config/mips/mips.c (mips_cpu_info_table): Mention it in the the introductory comment. (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete. (override_options): Don't test for it. * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete. (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC. * config/mips/vr.h: As for config/mips/sde.h. From-SVN: r128346
Diffstat (limited to 'gcc/config/mips/mips.c')
-rw-r--r--gcc/config/mips/mips.c33
1 files changed, 4 insertions, 29 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 2063100..5ff9073 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -740,9 +740,10 @@ const struct attribute_spec mips_attribute_table[] =
matched in the order listed. The first mention of an ISA level is
taken as the canonical name for that ISA.
- To ease comparison, please keep this table in the same order as
- gas's mips_cpu_info_table[]. Please also make sure that
- MIPS_ISA_LEVEL_SPEC handles all -march options correctly. */
+ To ease comparison, please keep this table in the same order
+ as gas's mips_cpu_info_table[]. Please also make sure that
+ MIPS_ISA_LEVEL_SPEC and MIPS_ARCH_FLOAT_SPEC handle all -march
+ options correctly. */
const struct mips_cpu_info mips_cpu_info_table[] = {
/* Entries for generic ISAs */
{ "mips1", PROCESSOR_R3000, 1 },
@@ -1216,12 +1217,6 @@ static const unsigned char mips16e_save_restore_regs[] = {
31, 30, 23, 22, 21, 20, 19, 18, 17, 16, 7, 6, 5, 4
};
-/* Nonzero if -march should decide the default value of
- MASK_SOFT_FLOAT_ABI. */
-#ifndef MIPS_MARCH_CONTROLS_SOFT_FLOAT
-#define MIPS_MARCH_CONTROLS_SOFT_FLOAT 0
-#endif
-
/* Initialize the GCC target structure. */
#undef TARGET_ASM_ALIGNED_HI_OP
#define TARGET_ASM_ALIGNED_HI_OP "\t.half\t"
@@ -5517,26 +5512,6 @@ override_options (void)
target_flags &= ~MASK_LONG64;
}
- if (MIPS_MARCH_CONTROLS_SOFT_FLOAT
- && (target_flags_explicit & MASK_SOFT_FLOAT_ABI) == 0)
- {
- /* For some configurations, it is useful to have -march control
- the default setting of MASK_SOFT_FLOAT_ABI. */
- switch ((int) mips_arch)
- {
- case PROCESSOR_R4100:
- case PROCESSOR_R4111:
- case PROCESSOR_R4120:
- case PROCESSOR_R4130:
- target_flags |= MASK_SOFT_FLOAT_ABI;
- break;
-
- default:
- target_flags &= ~MASK_SOFT_FLOAT_ABI;
- break;
- }
- }
-
if (!TARGET_OLDABI)
flag_pcc_struct_return = 0;