aarch64: Ensure const and sign correctness
Be const and sign correct by using a matching CIE augmentation type. Use a builtin instead of relying <string.h> being included. libgcc/ChangeLog: * config/aarch64/aarch64-unwind.h (aarch64_cie_signed_with_b_key): Use const unsigned type and a builtin. Signed-off-by: Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
This commit is contained in:
parent
c08ffa04d9
commit
0a59ff65df
1 changed files with 3 additions and 2 deletions
|
@ -40,8 +40,9 @@ aarch64_cie_signed_with_b_key (struct _Unwind_Context *context)
|
|||
const struct dwarf_cie *cie = get_cie (fde);
|
||||
if (cie != NULL)
|
||||
{
|
||||
char *aug_str = cie->augmentation;
|
||||
return strchr (aug_str, 'B') == NULL ? 0 : 1;
|
||||
const unsigned char *aug_str = cie->augmentation;
|
||||
return __builtin_strchr ((const char *) aug_str,
|
||||
'B') == NULL ? 0 : 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue