Browse Source

ARM: cope with stupidheaded compiler

Some versions of GCC don't understand that if you mask with 0x3
then have cases 0-3, it's not possible for a variable assigned in
all those branches to have no value at end-of-case.  Feh.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
tags/v0.4.0-rc1
David Brownell 14 years ago
parent
commit
456ec016c2
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/target/arm_disassembler.c

+ 1
- 2
src/target/arm_disassembler.c View File

@@ -135,7 +135,7 @@ static int evaluate_srs(uint32_t opcode,
uint32_t address, struct arm_instruction *instruction)
{
const char *wback = (opcode & (1 << 21)) ? "!" : "";
const char *mode;
const char *mode = "";

switch ((opcode >> 23) & 0x3) {
case 0:
@@ -143,7 +143,6 @@ static int evaluate_srs(uint32_t opcode,
break;
case 1:
/* "IA" is default */
mode = "";
break;
case 2:
mode = "DB";


Loading…
Cancel
Save