From b7ea64e98d3eb0df0d91e9f91abfe5bd4e254169 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Fri, 1 Aug 2014 20:21:41 +0000 Subject: [PATCH] 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'. --- contrib/binutils/gas/config/tc-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/binutils/gas/config/tc-arm.c b/contrib/binutils/gas/config/tc-arm.c index 9efe5760e64f..5b970c5b643f 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;