aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-08-07 13:07:21 -0600
committerTom Tromey <tom@tromey.com>2018-08-27 12:00:10 -0600
commitec40cf90a02ebe3e2636ffa92245677e18233917 (patch)
treef57d00d0c22b2d97c11c7ce122366cfec8905adc /gdb
parent7bc02706c3e23b58e1a74ca47fada84fc68699c7 (diff)
downloadgdb-ec40cf90a02ebe3e2636ffa92245677e18233917.zip
gdb-ec40cf90a02ebe3e2636ffa92245677e18233917.tar.gz
gdb-ec40cf90a02ebe3e2636ffa92245677e18233917.tar.bz2
Fix two -Wnarrowing warnings in xtensa-tdep.h
This fixes a couple of -Wnarrowing warnings in xtensa-tdep.h, by introducing some casts to unsigned. gdb/ChangeLog 2018-08-27 Tom Tromey <tom@tromey.com> * xtensa-tdep.h (XTREG_END): Add cast to unsigned. (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/xtensa-tdep.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8d3bf0e..0b93707 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2018-08-27 Tom Tromey <tom@tromey.com>
+ * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
+ (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
+
+2018-08-27 Tom Tromey <tom@tromey.com>
+
* tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
* tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
ULONGEST_MAX.
diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h
index ccd3714..d170e05 100644
--- a/gdb/xtensa-tdep.h
+++ b/gdb/xtensa-tdep.h
@@ -130,7 +130,7 @@ typedef struct
ct, bsz, sz, al, tnum, flg, cp, mas, fet, sto},
#define XTREG_END \
{0, 0, (xtensa_register_type_t) 0, (xtensa_register_group_t) 0, \
- 0, 0, 0, 0, -1, 0, 0, 0, 0, 0},
+ 0, 0, 0, 0, (unsigned) -1, 0, 0, 0, 0, 0},
#define XTENSA_REGISTER_FLAGS_PRIVILEGED 0x0001
#define XTENSA_REGISTER_FLAGS_READABLE 0x0002
@@ -228,7 +228,7 @@ struct gdbarch_tdep
#define XTENSA_GDBARCH_TDEP_INSTANTIATE(rmap,spillsz) \
{ \
0, /* target_flags */ \
- -1, /* spill_location */ \
+ (unsigned) -1, /* spill_location */ \
(spillsz), /* spill_size */ \
0, /* unused */ \
(XSHAL_ABI == XTHAL_ABI_CALL0 \