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:
parent
6ffcf5d515
commit
b7ea64e98d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user