+2008-06-10 Kai Tietz <kai.tietz@onevision.com>
+
+ * Object.m (compare): Add type id.
+ * objc/Object.h: Likewise.
+ * archive.c (objc_read_class): Use size_t to extend version to be
+ size of pointer scalar width.
+ * sendmsg.c (rtx): Undefine it before redefinition.
+ (__objc_print_dtable_stats): Cast arguments to long as intended.
+
2008-05-30 Julian Brown <julian@codesourcery.com>
* exception.c (__objc_exception_class): Initialise as constant
objc_read_unsigned_long (stream, &version);
objc_hash_add (&stream->class_table,
- (*class)->name, (void *)version);
+ (*class)->name, (void *) ((size_t) version));
}
else if ((buf[0]&_B_CODE) == _B_UCOMM)
- self;
- (unsigned int)hash;
- (BOOL)isEqual:anObject;
-- (int)compare:anotherObject;
+- (int)compare:(id)anotherObject;
/* Testing object type */
- (BOOL)isMetaClass;
#define gen_rtx(args...) 1
#define gen_rtx_MEM(args...) 1
#define gen_rtx_REG(args...) 1
+/* Alread defined in gcc/coretypes.h. So prevent double definition warning. */
+#undef rtx
#define rtx int
#if ! defined (STRUCT_VALUE) || STRUCT_VALUE == 0
#endif
printf ("arrays: %d = %ld bytes\n", narrays,
- (long) narrays * sizeof (struct sarray));
+ (long) (narrays * sizeof (struct sarray)));
total += narrays * sizeof (struct sarray);
printf ("buckets: %d = %ld bytes\n", nbuckets,
- (long) nbuckets * sizeof (struct sbucket));
+ (long) (nbuckets * sizeof (struct sbucket)));
total += nbuckets * sizeof (struct sbucket);
printf ("idxtables: %d = %ld bytes\n",
- idxsize, (long) idxsize * sizeof (void *));
+ idxsize, (long) (idxsize * sizeof (void *)));
total += idxsize * sizeof (void *);
printf ("-----------------------------------\n");
printf ("total: %d bytes\n", total);