aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-11-01 03:02:13 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-11-01 03:02:13 +0000
commit776f27a67f26c795ba8c27a4e69525382b9379c3 (patch)
tree0285cca6b375a23d93c20efec03cb9adec30f0e0 /libgo/go
parent79e0221796bf5897204e8077afc20e34f88dab3b (diff)
downloadgcc-776f27a67f26c795ba8c27a4e69525382b9379c3.zip
gcc-776f27a67f26c795ba8c27a4e69525382b9379c3.tar.gz
gcc-776f27a67f26c795ba8c27a4e69525382b9379c3.tar.bz2
compiler, runtime: More steps toward separating int and intgo.
From-SVN: r193059
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/bytes/indexbyte.c1
-rw-r--r--libgo/go/syscall/signame.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/bytes/indexbyte.c b/libgo/go/bytes/indexbyte.c
index 8986d10..9c72e61 100644
--- a/libgo/go/bytes/indexbyte.c
+++ b/libgo/go/bytes/indexbyte.c
@@ -6,6 +6,7 @@
#include <stddef.h>
+#include "runtime.h"
#include "array.h"
/* This is in C so that the compiler can optimize it appropriately.
diff --git a/libgo/go/syscall/signame.c b/libgo/go/syscall/signame.c
index 6342288..5ff0b09 100644
--- a/libgo/go/syscall/signame.c
+++ b/libgo/go/syscall/signame.c
@@ -6,7 +6,6 @@
#include <string.h>
-#include "config.h"
#include "runtime.h"
#include "arch.h"
#include "malloc.h"
@@ -19,7 +18,7 @@ Signame (int sig)
const char* s = NULL;
char buf[100];
size_t len;
- unsigned char *data;
+ byte *data;
String ret;
#if defined(HAVE_STRSIGNAL)
@@ -34,7 +33,7 @@ Signame (int sig)
len = __builtin_strlen (s);
data = runtime_mallocgc (len, FlagNoPointers, 0, 0);
__builtin_memcpy (data, s, len);
- ret.__data = data;
- ret.__length = len;
+ ret.str = data;
+ ret.len = len;
return ret;
}