summaryrefslogtreecommitdiff
path: root/src/cmd/cc/macbody
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-08-03 17:25:15 -0700
committerRuss Cox <rsc@golang.org>2008-08-03 17:25:15 -0700
commit44bfd1fdf71fc010b3abecd907e23acf95b093f9 (patch)
tree77abd882c6047963b22d61229dd95e9356208875 /src/cmd/cc/macbody
parent5dd2acd80c861e08420a4a7cc0e1b28fe5ce5ad9 (diff)
downloadgo-44bfd1fdf71fc010b3abecd907e23acf95b093f9.tar.gz
make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.
these guys really really want long to be 32-bits, so ,s/long/int32/ (and then manual fixup). still passes all tests. (i started out looking for just those longs that needed to be int32 instead, and it was just too hard to track them down one by one.) the longs were rare enough that i don't think it will cause integration problems. R=ken OCL=13787 CL=13789
Diffstat (limited to 'src/cmd/cc/macbody')
-rw-r--r--src/cmd/cc/macbody8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/cc/macbody b/src/cmd/cc/macbody
index 9d309c10d..6077915e6 100644
--- a/src/cmd/cc/macbody
+++ b/src/cmd/cc/macbody
@@ -30,10 +30,10 @@
#define VARMAC 0x80
-long
+int32
getnsn(void)
{
- long n;
+ int32 n;
int c;
c = getnsc();
@@ -138,7 +138,7 @@ dodefine(char *cp)
{
Sym *s;
char *p;
- long l;
+ int32 l;
strcpy(symb, cp);
p = strchr(symb, '=');
@@ -604,7 +604,7 @@ maclin(void)
{
char *cp;
int c;
- long n;
+ int32 n;
n = getnsn();
c = getc();