diff options
author | DJ Delorie <dj@redhat.com> | 2002-04-29 15:57:21 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2002-04-29 15:57:21 -0400 |
commit | f41a6bf164389696b43c02ea1368f693efe9912e (patch) | |
tree | 6d8258ec32c7495360611c9c798f439c36805726 /gcc | |
parent | d8af08680b5c69ec7f69c9613a2f5a226e6029a3 (diff) | |
download | gcc-f41a6bf164389696b43c02ea1368f693efe9912e.zip gcc-f41a6bf164389696b43c02ea1368f693efe9912e.tar.gz gcc-f41a6bf164389696b43c02ea1368f693efe9912e.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 16 |
2 files changed, 19 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbfdb69..d46e98e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 401cbbd..534b1f6 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -10122,14 +10122,26 @@ mips_parse_cpu (cpu_string) const char *p = cpu_string; int seen_v = 0; enum processor_type cpu; + int warn_upper_case = 0; /* We need to cope with the various "vr" prefixes for the NEC 4300 and 4100 processors. */ if (*p == 'v' || *p == 'V') - seen_v = 1, p++; + { + if (*p == 'V') + warn_upper_case = 1; + seen_v = 1, p++; + } if (*p == 'r' || *p == 'R') - p++; + { + if (*p == 'R') + warn_upper_case = 1; + p++; + } + + if (warn_upper_case) + warning ("the cpu name must be lower case"); /* Since there is no difference between a R2000 and R3000 in terms of the scheduler, we collapse them into just an R3000. */ |