[PATCH] [Arm/gas] Fix broken build

Luis Machado luis.machado@arm.com
Wed May 25 10:28:52 GMT 2022


Currently the build fails with:

binutils-gdb/gas/config/tc-arm.c: In function ‘s_arm_unwind_save_mixed’:
binutils-gdb/gas/config/tc-arm.c:4730:17: error: comparison of integer expressions of different signedness: ‘unsigned int’ and
 ‘long int’ [-Werror=sign-compare]
---
 gas/config/tc-arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 538d83f5462..9682db974ed 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -4727,7 +4727,7 @@ s_arm_unwind_save_mixed (long range, long mask_range)
   unsigned lim_hi = 0;
 
   /* Iterate over pseudoregister to establish subrange bounds.  */
-  for (; lim_hi <= roof; lim_hi++)
+  for (; lim_hi <= (unsigned) roof; lim_hi++)
     {
       if (mask_range & (1 << lim_hi))
 	{
-- 
2.25.1



More information about the Binutils mailing list