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'.
This commit is contained in:
Ian Lepore 2014-08-01 20:21:41 +00:00
parent 6ffcf5d515
commit b7ea64e98d

View File

@ -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;