From: amodra Date: Thu, 24 Jun 2010 08:39:11 +0000 (+0000) Subject: * collect2.c (main): Match exactly --version and --help. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=f0bf77c8320270f8e07fef3c543ab4ff1b42e16d * collect2.c (main): Match exactly --version and --help. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161311 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73bbe8814ec..9d33f3a94fd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-06-24 Alan Modra + + * collect2.c (main): Match exactly --version and --help. + 2010-06-24 DJ Delorie * config/m32c/m32c-pragma.c: Don't include rtl.h. diff --git a/gcc/collect2.c b/gcc/collect2.c index 42db3cbf0ff..b5421179fd2 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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; }