public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Fix various warnings from clang 3.8.0
@ 2016-06-11 20:49 John Baldwin
  2016-06-11 20:49 ` [PATCH 1/8] Use correct enum type for do_elf_stt_common John Baldwin
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: John Baldwin @ 2016-06-11 20:49 UTC (permalink / raw)
  To: gdb-patches, binutils

clang triggers a few warnings on binutils and gdb, but I've tried
to only submit patches for ones that I think are actual bugs (though
in some cases I believe the bugs are harmless in practice).

There might be better ways to address some of these warnings.  Two
that I can think of are:
- gdb/score-dep.c might choose to use a 'pc < start' check in the
  caller of the patched function and throw an error for that case
  (if it can occurr).
- gdb/sh64-tdep.c could explicitly set 'uses_fp' in the cases that
  it stores a value in the FP register rather than using a check
  at the end of the function.

John Baldwin (8):
  Use correct enum type for do_elf_stt_common.
  Change the size field of MSP430_Opcode_Decoded to a plain integer.
  Initialize 'ra' to zero to avoid uninitialized use.
  Remove check for negative size.
  Detect a frameless frame by comparing the FP register to -1.
  Pass a NULL pointer as the last argument to find_pc_partial_function.
  Remove unneeded checks on type lengths.
  Use unsigned integer constant with left shifts.

 binutils/ChangeLog             |  4 ++++
 binutils/objcopy.c             |  2 +-
 gdb/ChangeLog                  | 27 +++++++++++++++++++++++++++
 gdb/ada-lang.c                 |  4 ++--
 gdb/rs6000-tdep.c              |  1 +
 gdb/score-tdep.c               |  8 +-------
 gdb/sh64-tdep.c                |  2 +-
 gdb/tui/tui-stack.c            |  2 +-
 gdb/v850-tdep.c                |  2 +-
 include/ChangeLog              |  5 +++++
 include/opcode/msp430-decode.h |  9 +--------
 11 files changed, 45 insertions(+), 21 deletions(-)

-- 
2.7.0

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-06-15  8:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-11 20:49 [PATCH 0/8] Fix various warnings from clang 3.8.0 John Baldwin
2016-06-11 20:49 ` [PATCH 1/8] Use correct enum type for do_elf_stt_common John Baldwin
2016-06-13  1:48   ` Alan Modra
2016-06-11 20:49 ` [PATCH 2/8] Change the size field of MSP430_Opcode_Decoded to a plain integer John Baldwin
2016-06-13  1:48   ` Alan Modra
2016-06-11 20:49 ` [PATCH 7/8] Remove unneeded checks on type lengths John Baldwin
2016-06-13 10:47   ` Yao Qi
2016-06-11 20:49 ` [PATCH 3/8] Initialize 'ra' to zero to avoid uninitialized use John Baldwin
2016-06-13 11:04   ` Yao Qi
2016-06-11 20:49 ` [PATCH 5/8] Detect a frameless frame by comparing the FP register to -1 John Baldwin
2016-06-13 11:22   ` Yao Qi
2016-06-14 19:08     ` John Baldwin
2016-06-15  8:44       ` Yao Qi
2016-06-11 20:49 ` [PATCH 8/8] Use unsigned integer constant with left shifts John Baldwin
2016-06-11 20:56 ` [PATCH 6/8] Pass a NULL pointer as the last argument to find_pc_partial_function John Baldwin
2016-06-13 10:49   ` Yao Qi
2016-06-11 20:56 ` [PATCH 4/8] Remove check for negative size John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).