mips.c (mips_parse_cpu): Warn if the CPU name is given in upper case.
* config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is given in upper case. From-SVN: r52907
This commit is contained in:
parent
d8af08680b
commit
f41a6bf164
|
@ -1,3 +1,8 @@
|
||||||
|
2002-04-29 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
* config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
|
||||||
|
given in upper case.
|
||||||
|
|
||||||
2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
* fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
|
* fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
|
||||||
|
|
|
@ -10122,14 +10122,26 @@ mips_parse_cpu (cpu_string)
|
||||||
const char *p = cpu_string;
|
const char *p = cpu_string;
|
||||||
int seen_v = 0;
|
int seen_v = 0;
|
||||||
enum processor_type cpu;
|
enum processor_type cpu;
|
||||||
|
int warn_upper_case = 0;
|
||||||
|
|
||||||
/* We need to cope with the various "vr" prefixes for the NEC 4300
|
/* We need to cope with the various "vr" prefixes for the NEC 4300
|
||||||
and 4100 processors. */
|
and 4100 processors. */
|
||||||
if (*p == 'v' || *p == 'V')
|
if (*p == 'v' || *p == 'V')
|
||||||
|
{
|
||||||
|
if (*p == 'V')
|
||||||
|
warn_upper_case = 1;
|
||||||
seen_v = 1, p++;
|
seen_v = 1, p++;
|
||||||
|
}
|
||||||
|
|
||||||
if (*p == 'r' || *p == 'R')
|
if (*p == 'r' || *p == 'R')
|
||||||
|
{
|
||||||
|
if (*p == 'R')
|
||||||
|
warn_upper_case = 1;
|
||||||
p++;
|
p++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (warn_upper_case)
|
||||||
|
warning ("the cpu name must be lower case");
|
||||||
|
|
||||||
/* Since there is no difference between a R2000 and R3000 in
|
/* Since there is no difference between a R2000 and R3000 in
|
||||||
terms of the scheduler, we collapse them into just an R3000. */
|
terms of the scheduler, we collapse them into just an R3000. */
|
||||||
|
|
Loading…
Reference in New Issue