diff options
author | Ian Lance Taylor <iant@google.com> | 2011-04-13 21:00:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-13 21:00:59 +0000 |
commit | b39c10b81306aeeefc066ec7b1f0e23de9448c21 (patch) | |
tree | 32a57ad9ca89c95394a45e92649f097c96b50924 /libgo/runtime/go-construct-map.c | |
parent | 516d9427ed538547a182833b2cf16f557c932710 (diff) | |
download | gcc-b39c10b81306aeeefc066ec7b1f0e23de9448c21.zip gcc-b39c10b81306aeeefc066ec7b1f0e23de9448c21.tar.gz gcc-b39c10b81306aeeefc066ec7b1f0e23de9448c21.tar.bz2 |
Unify handling of runtime support functions.
This introduces the new approach, and rewrites the lowering
code which uses runtime functions. The code which calls
runtime functions at GENERIC conversion time is not yet
rewritten.
From-SVN: r172396
Diffstat (limited to 'libgo/runtime/go-construct-map.c')
-rw-r--r-- | libgo/runtime/go-construct-map.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libgo/runtime/go-construct-map.c b/libgo/runtime/go-construct-map.c index 15497ea..5e459d0 100644 --- a/libgo/runtime/go-construct-map.c +++ b/libgo/runtime/go-construct-map.c @@ -5,18 +5,20 @@ license that can be found in the LICENSE file. */ #include <stddef.h> +#include <stdint.h> #include <stdlib.h> #include "map.h" struct __go_map * __go_construct_map (const struct __go_map_descriptor *descriptor, - size_t count, size_t entry_size, size_t val_offset, - size_t val_size, const void *ventries) + uintptr_t count, uintptr_t entry_size, + uintptr_t val_offset, uintptr_t val_size, + const void *ventries) { struct __go_map *ret; const unsigned char *entries; - size_t i; + uintptr_t i; ret = __go_new_map (descriptor, count); |