diff options
author | Eric Christopher <echristo@redhat.com> | 2002-02-14 05:11:44 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2002-02-14 05:11:44 +0000 |
commit | 5ae590d72bad186285ed54d9eecae5c8e5c8ebcb (patch) | |
tree | e12392ee24b541712c2ee46ea340c2bbd67f60ee /gcc | |
parent | b8513691473e0e9c3731fee032ae20571c1db2dc (diff) | |
download | gcc-5ae590d72bad186285ed54d9eecae5c8e5c8ebcb.zip gcc-5ae590d72bad186285ed54d9eecae5c8e5c8ebcb.tar.gz gcc-5ae590d72bad186285ed54d9eecae5c8e5c8ebcb.tar.bz2 |
mips.c (override_options): Add check for march/mipsX on the same command line.
2002-02-13 Eric Christopher <echristo@redhat.com>
* 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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 19 |
2 files changed, 11 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff2c4c3..304948b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-02-13 Eric Christopher <echristo@redhat.com> + + * 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 <aldyh@redhat.com> * 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 01e7dd3..8ad2f9e 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) { |