diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2016-01-03 05:01:24 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2016-01-03 05:01:24 +0800 |
commit | 01b955654a766eb847e2674a7aa51d297efc3f4f (patch) | |
tree | bb56390d15c7384f6186989761881ed664221085 | |
parent | 94906666d33ae6b5218e7e15578c37baba7882b8 (diff) | |
download | compiler2015-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.c | 3 |
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) |