ref: c01acd9ed61803d2ac2bdcc49720bf2d9d78bb3e
parent: 8dfd719bca59480d5b6cac19df58db6ebdddb5c1
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Apr 13 06:45:53 EDT 2015
Fix compilation on OSX.
--- a/6/gengas.c
+++ b/6/gengas.c
@@ -586,7 +586,7 @@
genunionmemb(fd, ty->udecls[i]);
break;
case Tyname:
- fprintf(fd, "\t.quad %s\n", tydescid(buf, sizeof buf, ty));
+ fprintf(fd, "\t.quad %s%s\n", Symprefix, tydescid(buf, sizeof buf, ty));
break;
}
}
@@ -600,9 +600,9 @@
if (hasparams(ty))
return;
if (ty->vis == Visexport)
- fprintf(fd, ".globl %s /* tid: %d */\n", buf, ty->tid);
+ fprintf(fd, ".globl %s%s /* tid: %d */\n", Symprefix, buf, ty->tid);
}
- fprintf(fd, "%s:\n", buf);
+ fprintf(fd, "%s%s:\n", Symprefix, buf);
fprintf(fd, "\t.quad %s$data\n", buf);
fprintf(fd, "\t.quad %s$end - %s$data\n", buf, buf);
fprintf(fd, "%s$data:\n", buf);