ld_ehframe.c:745:14: error: left shift of negative value
[-Werror=shift-negative-value]
ret |= (-1 << shift);
Fix (not sure which include picks limits.h, though):
Index: ld/ld_ehframe.c
===================================================================
--- ld/ld_ehframe.c (revision 3619)
+++ ld/ld_ehframe.c (working copy)
@@ -742,7 +742,7 @@
} while ((b & 0x80) != 0);
if (shift < 32 && (b & 0x40) != 0)
- ret |= (-1 << shift);
+ ret |= (UINT_MAX << shift);
*dp = src;
--
Alex
|