diff options
author | ian <ian@FreeBSD.org> | 2014-08-01 20:21:41 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-08-01 20:21:41 +0000 |
commit | c93766f95592840a6dda993c17876289e1f3e20d (patch) | |
tree | 6cc3edd8f0d44702138876f4492ba575be8b27bc /contrib/binutils/gas | |
parent | e87191821ede542e14e8dd368f139aca8e517e4b (diff) | |
download | FreeBSD-src-c93766f95592840a6dda993c17876289e1f3e20d.zip FreeBSD-src-c93766f95592840a6dda993c17876289e1f3e20d.tar.gz |
Fix an bug in as(1) parsing of arm -march=arch+ext options. Compare the
arch name to just the characters before the '+' in 'arch+ext'.
Diffstat (limited to 'contrib/binutils/gas')
-rw-r--r-- | contrib/binutils/gas/config/tc-arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/gas/config/tc-arm.c b/contrib/binutils/gas/config/tc-arm.c index 9efe576..5b970c5 100644 --- a/contrib/binutils/gas/config/tc-arm.c +++ b/contrib/binutils/gas/config/tc-arm.c @@ -20337,7 +20337,7 @@ arm_parse_arch (char * str) } for (opt = arm_archs; opt->name != NULL; opt++) - if (streq (opt->name, str)) + if (strncmp (opt->name, str, optlen) == 0) { march_cpu_opt = &opt->value; march_fpu_opt = &opt->default_fpu; |