OSDN Git Service

Fix test for unrecognisable switches.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Aug 1999 14:03:05 +0000 (14:03 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Aug 1999 14:03:05 +0000 (14:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28761 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index d1ec3f5..3dd6869 100644 (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.
index 60a29b5..d53672f 100644 (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);
        }
     }