diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2016-01-03 17:37:19 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2016-01-03 17:37:19 +0800 |
commit | 8ea9812559b02104a0bcf8e31d7d679856c822aa (patch) | |
tree | f17b788cce114877103c39fe4ae27bb3b640f087 | |
parent | 63f431abcae45e28979b5acbc826f322b14d931c (diff) | |
download | compiler2015-8ea9812559b02104a0bcf8e31d7d679856c822aa.tar.gz compiler2015-8ea9812559b02104a0bcf8e31d7d679856c822aa.tar.zst compiler2015-8ea9812559b02104a0bcf8e31d7d679856c822aa.zip |
Don't add a newline when writing a string
-rw-r--r-- | src/code-generation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code-generation.c b/src/code-generation.c index c09f9c4..c2dbd78 100644 --- a/src/code-generation.c +++ b/src/code-generation.c @@ -140,7 +140,7 @@ static const char *call_write(CcmmcAst *id, CcmmcState *state) "\t.section .rodata\n" "\t.align 2\n" ".LC%zu:\n" - "\t.ascii \"%s\\n\\000\"\n" + "\t.ascii \"%s\\000\"\n" "\t.text\n" "\tadr\tx0, .LC%zu\n", label_str, |