summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-14 05:11:44 +0000
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-14 05:11:44 +0000
commite2534d93901527d9dae7c8756e355e85d4376bab (patch)
treee12392ee24b541712c2ee46ea340c2bbd67f60ee
parent1daca59d66ab809231a45ff6cecf9e56aaebff0f (diff)
downloadppe42-gcc-e2534d93901527d9dae7c8756e355e85d4376bab.tar.gz
ppe42-gcc-e2534d93901527d9dae7c8756e355e85d4376bab.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49759 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/mips/mips.c19
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 <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 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)
{
OpenPOWER on IntegriCloud