Fix test for unrecognisable switches.

From-SVN: r28761
This commit is contained in:
Nick Clifton 1999-08-19 14:03:05 +00:00 committed by Nick Clifton
parent 40242ccfbd
commit 4406229e16
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
* config/rs6000/rs6000.c (rs6000_override_options): Fix test for
unrecognisable switches.
Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (recombine_givs): Set ix field after sorting.

View File

@ -292,7 +292,7 @@ rs6000_override_options (default_cpu)
break;
}
if (i == ptt_size)
if (j == ptt_size)
error ("bad value (%s) for %s switch", ptr->string, ptr->name);
}
}