* [binutils-gdb] Arm64: fix build for certain gcc versions
@ 2023-12-15 11:05 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-12-15 11:05 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4f53c99c998bccac241aca9e540c4f55acdc7da2
commit 4f53c99c998bccac241aca9e540c4f55acdc7da2
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Dec 15 12:04:08 2023 +0100
Arm64: fix build for certain gcc versions
Some complain (by default) about isalpha shadowing ctype.h's isalpha().
Some also complain about signed/unsigned comparison a few lines later.
Diff:
---
gas/config/tc-aarch64.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 5646de781d4..4a2892d992c 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -1191,7 +1191,7 @@ parse_typed_reg (char **ccp, aarch64_reg_type type,
struct vector_type_el *typeinfo, unsigned int flags)
{
char *str = *ccp;
- bool isalpha = ISALPHA (*str);
+ bool is_alpha = ISALPHA (*str);
const reg_entry *reg = parse_reg (&str);
struct vector_type_el atype;
struct vector_type_el parsetype;
@@ -1208,7 +1208,7 @@ parse_typed_reg (char **ccp, aarch64_reg_type type,
{
if (typeinfo)
*typeinfo = atype;
- if (!isalpha && (flags & PTR_IN_REGLIST))
+ if (!is_alpha && (flags & PTR_IN_REGLIST))
set_fatal_syntax_error (_("syntax error in register list"));
else if (flags & PTR_GOOD_MATCH)
set_fatal_syntax_error (NULL);
@@ -1237,7 +1237,7 @@ parse_typed_reg (char **ccp, aarch64_reg_type type,
if ((reg->type == REG_TYPE_ZAT
|| reg->type == REG_TYPE_ZATH
|| reg->type == REG_TYPE_ZATV)
- && reg->number * 8 >= parsetype.element_size)
+ && reg->number * 8U >= parsetype.element_size)
{
set_syntax_error (_("ZA tile number out of range"));
return NULL;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-15 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-15 11:05 [binutils-gdb] Arm64: fix build for certain gcc versions Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).