diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-04-01 02:21:21 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-04-01 02:22:58 -0400 |
commit | 269e9c185f67d477a99574f53ead904d50fddfda (patch) | |
tree | 0177a3d3718cc79c55ae0ff07d9d4d974397800d /sim/m32c/reg.c | |
parent | 0fe84f3fbe9a740c38a8dbaa0150b8e4c25c69dd (diff) | |
download | binutils-gdb-269e9c185f67d477a99574f53ead904d50fddfda.tar.gz |
sim: m32c: enable warnings & clean up a bunch
This doesn't clean up all the warnings, just most of them.
The ones that are left will require some care to unravel.
Diffstat (limited to 'sim/m32c/reg.c')
-rw-r--r-- | sim/m32c/reg.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sim/m32c/reg.c b/sim/m32c/reg.c index 3fdc2e609e9..be7d81cdae4 100644 --- a/sim/m32c/reg.c +++ b/sim/m32c/reg.c @@ -219,7 +219,7 @@ get_reg_ll (reg_id id) static int highest_sp = 0, lowest_sp = 0xffffff; void -stack_heap_stats () +stack_heap_stats (void) { printf ("heap: %08x - %08x (%d bytes)\n", heapbottom, heaptop, heaptop - heapbottom); @@ -230,10 +230,11 @@ stack_heap_stats () void put_reg (reg_id id, unsigned int v) { + reg_bank_type *b = regs.r + (FLAG_B ? 1 : 0); + if (trace > ((id != pc) ? 0 : 1)) printf ("put_reg (%s) = %0*x\n", reg_names[id], reg_bytes[id] * 2, v); - reg_bank_type *b = regs.r + (FLAG_B ? 1 : 0); switch (id) { case r0: @@ -605,7 +606,7 @@ print_flags (int f) } void -trace_register_changes () +trace_register_changes (void) { if (!trace) return; @@ -646,7 +647,7 @@ trace_register_changes () reg_bytes[id]*2, (unsigned int)regs.f); \ void -m32c_dump_all_registers () +m32c_dump_all_registers (void) { printf ("\033[36mREGS:"); DRC (r[0].r_r0, "r0", r0); |