Browse Source

Disable ASan; bugfix for immediate masks.

master
Ben Kurtovic 9 years ago
parent
commit
981c4d4783
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      makefile
  2. +2
    -2
      src/assembler/parse_util.c

+ 1
- 1
makefile View File

@@ -24,7 +24,7 @@ DIRS = $(sort $(dir $(OBJS)))

ifdef DEBUG
BNRY := $(BNRY)$(DEVEXT)
FLAGS += -g -fsanitize=address -DDEBUG_MODE
FLAGS += -g -DDEBUG_MODE
MODE = debug
endif



+ 2
- 2
src/assembler/parse_util.c View File

@@ -362,10 +362,10 @@ bool argparse_immediate(ASMArgImmediate *result, ASMArgParseInfo ai)
const ASMDefine *define = asm_deftable_find(ai.deftable, ai.arg, ai.size);
if (define) {
if (negative) {
calculate_immediate_mask(result);
result->is_label = false;
result->uval = define->value.uval;
result->sval = -define->value.sval;
calculate_immediate_mask(result);
} else {
*result = define->value;
}
@@ -386,10 +386,10 @@ bool argparse_immediate(ASMArgImmediate *result, ASMArgParseInfo ai)
if (sval < INT16_MIN)
return false;

calculate_immediate_mask(result);
result->is_label = false;
result->uval = uval;
result->sval = sval;
calculate_immediate_mask(result);
return true;
}



Loading…
Cancel
Save