mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
Remove tic4x_scan always false condition
The numeric check was always false, and correcting it to match the comment causes lots of testsuite failures. "tic4x" is a valid string. * cpu-tic4x.c (tic4x_scan): Remove always false condition. Fix comment.
This commit is contained in:
@@ -28,15 +28,12 @@ static bool
|
|||||||
tic4x_scan (const struct bfd_arch_info *info,
|
tic4x_scan (const struct bfd_arch_info *info,
|
||||||
const char *string)
|
const char *string)
|
||||||
{
|
{
|
||||||
/* Allow strings of form [ti][Cc][34][0-9], let's not be too picky
|
/* Allow strings of form [ti][Cc][34], let's not be too picky
|
||||||
about strange numbered machines in C3x or C4x series. */
|
about strange numbered machines in C3x or C4x series. */
|
||||||
if (string[0] == 't' && string[1] == 'i')
|
if (string[0] == 't' && string[1] == 'i')
|
||||||
string += 2;
|
string += 2;
|
||||||
if (*string == 'C' || *string == 'c')
|
if (*string == 'C' || *string == 'c')
|
||||||
string++;
|
string++;
|
||||||
if (string[1] < '0' && string[1] > '9')
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (*string == '3')
|
if (*string == '3')
|
||||||
return (info->mach == bfd_mach_tic3x);
|
return (info->mach == bfd_mach_tic3x);
|
||||||
else if (*string == '4')
|
else if (*string == '4')
|
||||||
|
|||||||
Reference in New Issue
Block a user