aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-06-11 06:21:55 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-06-11 06:21:55 +0000
commit891daafaf87384c823ff5186562e5132f246a9e4 (patch)
tree29722e971d77f0c6e8746df791aa82fe0bc3bd79 /libgo
parent70f910247bd52a16c6195b0508d4ae4c4dce91d8 (diff)
downloadgcc-891daafaf87384c823ff5186562e5132f246a9e4.zip
gcc-891daafaf87384c823ff5186562e5132f246a9e4.tar.gz
gcc-891daafaf87384c823ff5186562e5132f246a9e4.tar.bz2
Use backend interface for map descriptors.
From-SVN: r174943
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/go-map-delete.c2
-rw-r--r--libgo/runtime/go-map-index.c4
-rw-r--r--libgo/runtime/map.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/libgo/runtime/go-map-delete.c b/libgo/runtime/go-map-delete.c
index ec851e5..7a3a7b8 100644
--- a/libgo/runtime/go-map-delete.c
+++ b/libgo/runtime/go-map-delete.c
@@ -18,7 +18,7 @@ __go_map_delete (struct __go_map *map, const void *key)
{
const struct __go_map_descriptor *descriptor;
const struct __go_type_descriptor *key_descriptor;
- size_t key_offset;
+ uintptr_t key_offset;
_Bool (*equalfn) (const void*, const void*, size_t);
size_t key_hash;
size_t key_size;
diff --git a/libgo/runtime/go-map-index.c b/libgo/runtime/go-map-index.c
index 02a0f73..a387c4b 100644
--- a/libgo/runtime/go-map-index.c
+++ b/libgo/runtime/go-map-index.c
@@ -18,7 +18,7 @@ __go_map_rehash (struct __go_map *map)
{
const struct __go_map_descriptor *descriptor;
const struct __go_type_descriptor *key_descriptor;
- size_t key_offset;
+ uintptr_t key_offset;
size_t key_size;
size_t (*hashfn) (const void *, size_t);
uintptr_t old_bucket_count;
@@ -78,7 +78,7 @@ __go_map_index (struct __go_map *map, const void *key, _Bool insert)
{
const struct __go_map_descriptor *descriptor;
const struct __go_type_descriptor *key_descriptor;
- size_t key_offset;
+ uintptr_t key_offset;
_Bool (*equalfn) (const void*, const void*, size_t);
size_t key_hash;
size_t key_size;
diff --git a/libgo/runtime/map.h b/libgo/runtime/map.h
index 40c31f8..0c587bb 100644
--- a/libgo/runtime/map.h
+++ b/libgo/runtime/map.h
@@ -22,15 +22,15 @@ struct __go_map_descriptor
key_type key;
value_type value;
This is the size of that struct. */
- size_t __entry_size;
+ uintptr_t __entry_size;
/* The offset of the key field in a map entry struct. */
- size_t __key_offset;
+ uintptr_t __key_offset;
/* The offset of the value field in a map entry struct (the value
field immediately follows the key field, but there may be some
bytes inserted for alignment). */
- size_t __val_offset;
+ uintptr_t __val_offset;
};
struct __go_map