summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-16 19:01:19 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-16 19:02:43 -0700
commita843f825632bd19e34a81bccf9b8a015a0196586 (patch)
tree07410b8422ca957c8b7cb9afb62b271962a24bb8 /6
parentca81d8ad5f3b478d933ea0b3604e12a2006af6c5 (diff)
downloadmc-a843f825632bd19e34a81bccf9b8a015a0196586.tar.gz
Add futex op constants.
Needed for Linux libthread.
Diffstat (limited to '6')
-rw-r--r--6/asm.h1
-rw-r--r--6/gengas.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/6/asm.h b/6/asm.h
index b18a617..8f558bc 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -71,6 +71,7 @@ typedef enum {
struct Blob {
Blobtype type;
+ size_t align;
char *lbl; /* may be null */
char isglobl;
union {
diff --git a/6/gengas.c b/6/gengas.c
index a49063f..583dbd5 100644
--- a/6/gengas.c
+++ b/6/gengas.c
@@ -379,6 +379,7 @@ void genblob(FILE *fd, Node *blob, Htab *globls, Htab *strtab)
lbl = htget(globls, blob);
if (blob->decl.vis != Visintern)
fprintf(fd, ".globl %s\n", lbl);
+ fprintf(fd, ".align %zd\n", tyalign(decltype(blob)));
fprintf(fd, "%s:\n", lbl);
if (blob->decl.init)
b = litblob(globls, strtab, blob->decl.init);