From 5ae590d72bad186285ed54d9eecae5c8e5c8ebcb Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 14 Feb 2002 05:11:44 +0000 Subject: [PATCH] mips.c (override_options): Add check for march/mipsX on the same command line. 2002-02-13 Eric Christopher * config/mips/mips.c (override_options): Add check for march/mipsX on the same command line. Fix error message in cpu processing. Remove architecture and ISA checks. From-SVN: r49759 --- gcc/ChangeLog | 6 ++++++ gcc/config/mips/mips.c | 19 +++++-------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff2c4c3d441..304948be578 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-02-13 Eric Christopher + + * config/mips/mips.c (override_options): Add check for march/mipsX + on the same command line. Fix error message in cpu processing. + Remove architecture and ISA checks. + 2002-02-14 Aldy Hernandez * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 01e7dd30c9c..8ad2f9e300c 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -4810,6 +4810,10 @@ override_options () if (mips_isa_string == 0) mips_isa = MIPS_ISA_DEFAULT; + else if (mips_isa_string != 0 + && mips_arch_string != 0) + warning ("The -march option is incompatible to -mipsN and therefore ignored."); + else if (ISDIGIT (*mips_isa_string)) { mips_isa = atoi (mips_isa_string); @@ -4938,7 +4942,7 @@ override_options () mips_cpu = mips_parse_cpu (mips_cpu_string); if (mips_cpu == PROCESSOR_DEFAULT) { - error ("bad value (%s) for -mcpu= switch", mips_arch_string); + error ("bad value (%s) for -mcpu= switch", mips_cpu_string); mips_cpu_string = "default"; } mips_arch = mips_cpu; @@ -5032,19 +5036,6 @@ override_options () } } - if ((mips_arch == PROCESSOR_R3000 && (mips_isa != 1)) - || (mips_arch == PROCESSOR_R4KC && mips_isa != 32) - || ((mips_arch == PROCESSOR_R5KC - || mips_arch == PROCESSOR_R20KC) && mips_isa != 64) - || (mips_arch == PROCESSOR_R6000 && mips_isa != 1 && mips_isa != 2) - || ((mips_arch == PROCESSOR_R4000 - || mips_arch == PROCESSOR_R4100 - || mips_arch == PROCESSOR_R4300 - || mips_arch == PROCESSOR_R4600 - || mips_arch == PROCESSOR_R4650) - && mips_isa != 1 && mips_isa != 2 && mips_isa != 3)) - error ("-march=%s does not support -mips%d", mips_arch_string, mips_isa); - /* make sure sizes of ints/longs/etc. are ok */ if (! ISA_HAS_64BIT_REGS) {