Remove some variables but call functions for side effects
This patch consolidates the (possibly-questionable) spots where we remove a declaration but continue to call some function for side effects. In a couple of cases it wasn't entirely clear to me that this mattered; and in some other cases it might be more aesthetically pleasing to use ATTRIBUTE_UNUSED. So, I broke this out into a separate patch for simpler review. 2016-07-14 Tom Tromey <tom@tromey.com> * arch-utils.c (default_skip_permanent_breakpoint): Remove "bp_insn". * disasm.c (do_assembly_only): Remove "num_displayed". * dwarf2read.c (read_abbrev_offset): Remove "length". (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove "constant". * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl". * microblaze-tdep.c (microblaze_frame_cache): Remove "func". * tracefile.c (trace_save): Remove "status".
This commit is contained in:
parent
764c99c18a
commit
ac29888840
7 changed files with 28 additions and 20 deletions
|
@ -823,9 +823,6 @@ make_regs (struct gdbarch *arch)
|
|||
struct m32c_reg *sp;
|
||||
struct m32c_reg *r0hl;
|
||||
struct m32c_reg *r1hl;
|
||||
struct m32c_reg *r2hl;
|
||||
struct m32c_reg *r3hl;
|
||||
struct m32c_reg *intbhl;
|
||||
struct m32c_reg *r2r0;
|
||||
struct m32c_reg *r3r1;
|
||||
struct m32c_reg *r3r1r2r0;
|
||||
|
@ -889,9 +886,9 @@ make_regs (struct gdbarch *arch)
|
|||
|
||||
r0hl = CHL (r0, tdep->int8);
|
||||
r1hl = CHL (r1, tdep->int8);
|
||||
r2hl = CHL (r2, tdep->int8);
|
||||
r3hl = CHL (r3, tdep->int8);
|
||||
intbhl = CHL (intb, tdep->int16);
|
||||
CHL (r2, tdep->int8);
|
||||
CHL (r3, tdep->int8);
|
||||
CHL (intb, tdep->int16);
|
||||
|
||||
r2r0 = CCAT (r2, r0, tdep->int32);
|
||||
r3r1 = CCAT (r3, r1, tdep->int32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue