ports/devel/gdb/files/patch-gdb_tilegx-linux-tdep.c
Luca Pizzamiglio b8942914f5 devel/gdb: fix build on current
Clang 6 doesn't allow negative numbers to be implicitely converted to
unsigned types.
This patch explicits all casts.
While I'm here, add an option to silent tons of warning messages

PR:		226644
Reported by:	rakuco@
2018-03-16 14:29:38 +00:00

15 lines
586 B
C

--- gdb/tilegx-linux-tdep.c.orig 2018-03-15 16:31:44.623131000 +0100
+++ gdb/tilegx-linux-tdep.c 2018-03-15 16:32:29.603585000 +0100
@@ -65,9 +65,9 @@
SIGTRAMP_FRAME,
8,
{
- { 0x00045fe551483000ULL, -1 }, /* { moveli r10, 139 } */
- { 0x286b180051485000ULL, -1 }, /* { swint1 } */
- { TRAMP_SENTINEL_INSN, -1 }
+ { 0x00045fe551483000ULL, static_cast<ULONGEST>(-1) }, /* { moveli r10, 139 } */
+ { 0x286b180051485000ULL, static_cast<ULONGEST>(-1) }, /* { swint1 } */
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
},
tilegx_linux_sigframe_init
};