summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-24 08:39:11 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-24 08:39:11 +0000
commitf0bf77c8320270f8e07fef3c543ab4ff1b42e16d (patch)
tree6cc6b9ec611578ad4aa79997701b7e7c5df7909e /gcc/collect2.c
parent71c22dfb6fe9dd3ce5e30e773db3fd35ad7ac061 (diff)
downloadgcc-f0bf77c8320270f8e07fef3c543ab4ff1b42e16d.tar.gz
* 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
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c4
1 files changed, 2 insertions, 2 deletions
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;
}