[7/7] Remove -Wno-narrowing from warnings.m4
Commit Message
>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
Tom> I'm checking this in now.
I spoke a little too soon. Rebasing showed a new instance of the
warning, which I've fixed as appended.
I'm pushing the series with this addition.
Tom
commit fb45de8f4132b8212bf88eaeef5eed7c9ca78a55
Author: Tom Tromey <tom@tromey.com>
Date: Mon Aug 27 11:55:39 2018 -0600
Avoid -Wnarrowing warnings in aarch64-linux-tdep.c
This avoids -Wnarrowing warnings in
aarch64_linux_iterate_over_regset_sections, by adding some casts to
int.
2018-08-27 Tom Tromey <tom@tromey.com>
* aarch64-linux-tdep.c
(aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
casts to int.
@@ -1,3 +1,9 @@
+2018-08-27 Tom Tromey <tom@tromey.com>
+
+ * aarch64-linux-tdep.c
+ (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
+ casts to int.
+
2018-08-08 Tom Tromey <tom@tromey.com>
* ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
@@ -411,8 +411,8 @@ aarch64_linux_iterate_over_regset_sections (struct gdbarch *gdbarch,
/* Create this on the fly in order to handle vector register sizes. */
const struct regcache_map_entry sve_regmap[] =
{
- { 32, AARCH64_SVE_Z0_REGNUM, tdep->vq * 16 },
- { 16, AARCH64_SVE_P0_REGNUM, tdep->vq * 16 / 8 },
+ { 32, AARCH64_SVE_Z0_REGNUM, (int) (tdep->vq * 16) },
+ { 16, AARCH64_SVE_P0_REGNUM, (int) (tdep->vq * 16 / 8) },
{ 1, AARCH64_SVE_FFR_REGNUM, 4 },
{ 1, AARCH64_FPSR_REGNUM, 4 },
{ 1, AARCH64_FPCR_REGNUM, 4 },