aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2012-06-13 16:24:54 -0400
committerDave Cheney <dave@cheney.net>2012-06-13 16:24:54 -0400
commitef902f8c8e48c2950a713e680487ad6da9f3c395 (patch)
tree474604fa576de68f3c5c7e4fb7bff0656c7cf40b
parent2c396a8f4af5d6ef031bd6627a780b2e85733357 (diff)
downloadgo-ef902f8c8e48c2950a713e680487ad6da9f3c395.tar.gz
go-ef902f8c8e48c2950a713e680487ad6da9f3c395.zip
[release-branch.go1] cmd/5c, cmd/5g, cmd/5l: fix cross compilation failure on darwin
««« backport 432f2b7f5458 cmd/5c, cmd/5g, cmd/5l: fix cross compilation failure on darwin Fixes #3708. The fix to allow 5{c,g,l} to compile under clang 3.1 broke cross compilation on darwin using the Apple default compiler on 10.7.3. This failure was introduced in 9b455eb64690. This has been tested by cross compiling on darwin/amd64 to linux/arm using * gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) * clang version 3.1 (branches/release_31) As well as on linux/arm using * gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) * Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) * Debian clang version 3.1-4 (branches/release_31) (based on LLVM 3.1) R=consalus, rsc CC=golang-dev https://golang.org/cl/6307058 »»»
-rw-r--r--src/cmd/5c/list.c2
-rw-r--r--src/cmd/5g/list.c2
-rw-r--r--src/cmd/5l/list.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/5c/list.c b/src/cmd/5c/list.c
index 86a31ae7a9..30b88400fe 100644
--- a/src/cmd/5c/list.c
+++ b/src/cmd/5c/list.c
@@ -140,7 +140,7 @@ Dconv(Fmt *fp)
{
char str[STRINGSZ];
Adr *a;
- char *op;
+ const char *op;
int v;
a = va_arg(fp->args, Adr*);
diff --git a/src/cmd/5g/list.c b/src/cmd/5g/list.c
index 3105d5669e..f0da24742e 100644
--- a/src/cmd/5g/list.c
+++ b/src/cmd/5g/list.c
@@ -83,7 +83,7 @@ int
Dconv(Fmt *fp)
{
char str[STRINGSZ];
- char *op;
+ const char *op;
Addr *a;
int i;
int32 v;
diff --git a/src/cmd/5l/list.c b/src/cmd/5l/list.c
index 89c1c63026..293fee3c6c 100644
--- a/src/cmd/5l/list.c
+++ b/src/cmd/5l/list.c
@@ -161,7 +161,7 @@ int
Dconv(Fmt *fp)
{
char str[STRINGSZ];
- char *op;
+ const char *op;
Adr *a;
int32 v;