summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2016-01-03 05:01:24 +0800
committerTing-Wei Lan <lantw44@gmail.com>2016-01-03 05:01:24 +0800
commit01b955654a766eb847e2674a7aa51d297efc3f4f (patch)
treebb56390d15c7384f6186989761881ed664221085
parent94906666d33ae6b5218e7e15578c37baba7882b8 (diff)
downloadcompiler2015-01b955654a766eb847e2674a7aa51d297efc3f4f.tar
compiler2015-01b955654a766eb847e2674a7aa51d297efc3f4f.tar.gz
compiler2015-01b955654a766eb847e2674a7aa51d297efc3f4f.tar.bz2
compiler2015-01b955654a766eb847e2674a7aa51d297efc3f4f.tar.lz
compiler2015-01b955654a766eb847e2674a7aa51d297efc3f4f.tar.xz
compiler2015-01b955654a766eb847e2674a7aa51d297efc3f4f.tar.zst
compiler2015-01b955654a766eb847e2674a7aa51d297efc3f4f.zip
Workaround label name conflict with TA's broken toolchain
-rw-r--r--src/state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index 7751404..33025b6 100644
--- a/src/state.c
+++ b/src/state.c
@@ -12,7 +12,8 @@ void ccmmc_state_init (CcmmcState *state)
state->line_number = 1;
state->asm_output = NULL;
state->reg_pool = NULL;
- state->label_number = 0;
+ // XXX: TA's broken toolchain prevent this number from starting from zero
+ state->label_number = 3;
}
void ccmmc_state_fini (CcmmcState *state)