OSDN Git Service

* collect2.c (main): Match exactly --version and --help.
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jun 2010 08:39:11 +0000 (08:39 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jun 2010 08:39:11 +0000 (08:39 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161311 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/collect2.c

index 73bbe88..9d33f3a 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-24  Alan Modra  <amodra@gmail.com>
+
+       * collect2.c (main): Match exactly --version and --help.
+
 2010-06-24  DJ Delorie  <dj@redhat.com>
 
        * config/m32c/m32c-pragma.c: Don't include rtl.h.
index 42db3cb..b542117 100644 (file)
@@ -1593,9 +1593,9 @@ main (int argc, char **argv)
                }
              else if (strncmp (arg, "--sysroot=", 10) == 0)
                target_system_root = arg + 10;
-             else if (strncmp (arg, "--version", 9) == 0)
+             else if (strcmp (arg, "--version") == 0)
                vflag = true;
-             else if (strncmp (arg, "--help", 9) == 0)
+             else if (strcmp (arg, "--help") == 0)
                helpflag = true;
              break;
            }