Commit 2dcef31e by Alan Modra Committed by Alan Modra

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

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

From-SVN: r161311
parent d646bbce
2010-06-24 Alan Modra <amodra@gmail.com>
* collect2.c (main): Match exactly --version and --help.
2010-06-24 DJ Delorie <dj@redhat.com> 2010-06-24 DJ Delorie <dj@redhat.com>
* config/m32c/m32c-pragma.c: Don't include rtl.h. * config/m32c/m32c-pragma.c: Don't include rtl.h.
......
...@@ -1593,9 +1593,9 @@ main (int argc, char **argv) ...@@ -1593,9 +1593,9 @@ main (int argc, char **argv)
} }
else if (strncmp (arg, "--sysroot=", 10) == 0) else if (strncmp (arg, "--sysroot=", 10) == 0)
target_system_root = arg + 10; target_system_root = arg + 10;
else if (strncmp (arg, "--version", 9) == 0) else if (strcmp (arg, "--version") == 0)
vflag = true; vflag = true;
else if (strncmp (arg, "--help", 9) == 0) else if (strcmp (arg, "--help") == 0)
helpflag = true; helpflag = true;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment