collect2.c (main): Match exactly --version and --help.

* collect2.c (main): Match exactly --version and --help.

From-SVN: r161311
This commit is contained in:
Alan Modra 2010-06-24 18:09:11 +09:30 committed by Alan Modra
parent d646bbce34
commit 2dcef31e9f
2 changed files with 6 additions and 2 deletions

View 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.

View 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;
}