diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2011-06-07 22:07:48 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2011-06-07 22:07:48 +0000 |
commit | 0b0b41a89e519888e7a1edc583e54571f180fb48 (patch) | |
tree | e5b82f4dfe9df54ded3816a18f630012d3b9c2a9 /libobjc/gc.c | |
parent | 3ff609751050030ea83a7ff58eca5c07a3adcdfc (diff) | |
download | gcc-0b0b41a89e519888e7a1edc583e54571f180fb48.zip gcc-0b0b41a89e519888e7a1edc583e54571f180fb48.tar.gz gcc-0b0b41a89e519888e7a1edc583e54571f180fb48.tar.bz2 |
In libobjc/: 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-private/module-abi-8.h (class_get_instance_size): Removed.
* objects.c (class_create_instance): Removed.
* error.c (__USE_FIXED_PROTOTYPES__): Removed.
* gc.c (__objc_generate_gc_type_description): Use
class_getInstanceSize() instead of class_get_instance_size().
* selector.c (sel_types_match): Made static.
(sel_get_typed_uid): Removed.
(sel_get_any_typed_uid): Removed.
(sel_get_name): Removed.
(sel_get_type): Removed.
(sel_register_name): Removed.
(sel_register_typed_name): Removed.
(sel_get_uid): Removed.
From-SVN: r174773
Diffstat (limited to 'libobjc/gc.c')
-rw-r--r-- | libobjc/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libobjc/gc.c b/libobjc/gc.c index 9b117dc..d009230 100644 --- a/libobjc/gc.c +++ b/libobjc/gc.c @@ -304,7 +304,7 @@ __objc_generate_gc_type_description (Class class) /* The number of bits in the mask is the size of an instance in bytes divided by the size of a pointer. */ - bits_no = (ROUND (class_get_instance_size (class), sizeof (void *)) + bits_no = (ROUND (class_getInstanceSize (class), sizeof (void *)) / sizeof (void *)); size = ROUND (bits_no, BITS_PER_WORD) / BITS_PER_WORD; mask = objc_atomic_malloc (size * sizeof (int)); |