diff options
author | Marcus Huderle <huderlem@gmail.com> | 2017-11-21 21:52:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 21:52:19 -0800 |
commit | cc03fa4c4046c4ab4dc11234ca1dde1f888fa9bf (patch) | |
tree | 8ef307c2b3fb4eeba2edd1820922215dd2bc0e0e | |
parent | 4dd1f17ac37986c668792df7e0ba075d39b8f2a1 (diff) | |
parent | 7de07844ee1864bc908ae80bb1bfb7e6d204d260 (diff) |
Merge pull request #467 from sceptillion/fix_global_labels
fix global labels in preproc
-rw-r--r-- | tools/preproc/preproc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/preproc/preproc.cpp b/tools/preproc/preproc.cpp index 8320a2d27..c9c6042df 100644 --- a/tools/preproc/preproc.cpp +++ b/tools/preproc/preproc.cpp @@ -89,8 +89,8 @@ void PreprocAsmFile(std::string filename) if (globalLabel.length() != 0) { - std::printf("\t.global %s\n", globalLabel.c_str()); - std::printf("%s:\n", globalLabel.c_str()); + const char *s = globalLabel.c_str(); + std::printf("%s: ; .global %s\n", s, s); } else { |