aboutsummaryrefslogtreecommitdiff
path: root/gdb/filesystem.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@mips.com>2018-05-22 22:52:14 +0100
committerMaciej W. Rozycki <macro@mips.com>2018-05-22 22:52:14 +0100
commit35f1fea3fcd44546a6cf074029c284c64ad25b3c (patch)
treeea0fe05ea90c2c7d6477ad1238f6853499f10fee /gdb/filesystem.c
parent7e947ad3438b2954e0bd248fd2c95a86bd9fe33b (diff)
downloadbinutils-35f1fea3fcd44546a6cf074029c284c64ad25b3c.zip
binutils-35f1fea3fcd44546a6cf074029c284c64ad25b3c.tar.gz
binutils-35f1fea3fcd44546a6cf074029c284c64ad25b3c.tar.bz2
gdb/x86: Fix `-Wstrict-overflow' build error in `i387_collect_xsave'
Make `i' defined within `i387_collect_xsave' unsigned, removing a `-Werror=strict-overflow' compilation error: .../gdb/i387-tdep.c: In function 'void i387_collect_xsave(const regcache*, int, void*, int)': .../gdb/i387-tdep.c:1348:1: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow] i387_collect_xsave (const struct regcache *regcache, int regnum, ^ cc1plus: all warnings being treated as errors Makefile:1610: recipe for target 'i387-tdep.o' failed make: *** [i387-tdep.o] Error 1 seen with GCC 5.4.0, a commit 8ee22052f690 ("gdb/x86: Handle kernels using compact xsave format") regression. While `regnum' can be -1 on entry to the function, to mean all registers, `i' is only used with non-negative register numbers. gdb/ * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
Diffstat (limited to 'gdb/filesystem.c')
0 files changed, 0 insertions, 0 deletions