+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.
2010-06-24 DJ Delorie <dj@redhat.com>
* config/m32c/m32c-pragma.c: Don't include rtl.h.
}
else if (strncmp (arg, "--sysroot=", 10) == 0)
target_system_root = arg + 10;
}
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)
- else if (strncmp (arg, "--help", 9) == 0)
+ else if (strcmp (arg, "--help") == 0)
helpflag = true;
break;
}
helpflag = true;
break;
}