1 2017-10-10 Release Manager
5 2016-06-03 Release Manager
9 2015-12-04 Release Manager
13 2015-07-16 Release Manager
17 2015-04-22 Release Manager
21 2015-02-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24 * thr.c (_XOPEN_SOURCE): Remove.
26 2015-01-27 Matthias Klose <doko@ubuntu.com>
28 * sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp.
30 2015-01-09 Dimitris Papavasiliou <dpapavas@gmail.com>
33 * ivars.c: Add a check for classes without instance
34 variables, which have a NULL ivar list pointer.
36 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38 Update copyright years.
40 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
43 * configure: Regenerated.
45 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
48 * configure: Regenerate.
50 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
52 * thr.c (_XOPEN_SOURCE): Define as 600.
54 2014-07-27 Alan Modra <amodra@gmail.com>
55 Matthias Klose <doko@ubuntu.com>
59 * encoding.c: Define rs6000_special_adjust_field_align_p.
61 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
63 Update copyright years
65 2013-09-20 Alan Modra <amodra@gmail.com>
67 * configure: Regenerate.
69 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
72 * encoding.c: Likewise.
74 * objc-private/runtime.h: Likewise.
75 * objc/runtime.h: Likewise.
76 * objc-sync.c: Likewise.
78 2013-07-04 Kai Tietz <ktietz@redhat.com>
80 * exception.c: Add check for SjLj to SEH blocks.
82 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
84 Update copyright years.
86 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
88 * encoding.c (TARGET_VSX): Provide definitions based on the
89 current compilation options, and not based off the target options
91 (TARGET_ALTIVEC): Likewise.
92 (TARGET_64BIT): Likewise.
94 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
96 * configure: Regenerated.
98 2012-07-19 Tristan Gingold <gingold@adacore.com>
99 Richard Henderson <rth@redhat.com>
101 * exception.c (__gnu_objc_personality_seh0): New function.
103 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
105 * configure: Regenerated.
107 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
109 * configure.ac (enable_objc_gc): Remove alpha*-dec-osf* handling.
110 * configure: Regenerate.
112 * thr.c (_XOPEN_SOURCE): Define unconditionally.
114 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
116 * configure: Regenerate.
118 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
120 * Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
121 * configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
122 * configure: Regenerate.
123 * config.h.in: Regenerate.
125 2011-10-17 Paul Brook <paul@codesourcery.com>
126 Matthias Klose <doko@ubuntu.com>
128 * exception.c (parse_lsda_header): hardcode ttype_encoding for older
130 (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
132 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
135 * init.c (__objc_exec_class): Work around a bug in clang's code
136 generation. Clang sets the class->info field to values different
137 from 0x1 or 0x2 (the only allowed values in the traditional GNU
138 Objective-C runtime ABI) to store some additional information, but
139 this breaks backwards compatibility. Wipe out all the bits in the
140 fields other than the first two upon loading a class.
142 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
144 * class.c (objc_lookup_class): Added back for compatibility with
145 clang which seems to emit calls to it.
147 2011-10-08 Richard Frith-Macdonald <rfm@gnu.org>
148 Nicola Pero <nicola.pero@meta-innovation.com>
151 * sendmsg.c (__objc_send_initialize): If a class does not have an
152 +initialize method, search for an +initialize method in the
153 superclass and in the ancestor classes and execute the first one
154 that is found. This makes the GNU runtime behave in the same way
155 as the Apple/NeXT runtime with respect to +initialize methods and
158 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
161 * class.c (__objc_update_classes_with_methods): Iterate over meta
162 classes as well as normal classes when refreshing the method
163 implementations. This fixes replacing class methods.
165 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
167 * class.c (class_getSuperclass): Fixed to work with meta classes
168 still in construction too.
170 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
172 * class.c (class_getSuperclass): Fixed typo in comment.
174 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
177 * class.c (class_getSuperclass): Return the superclass if the
178 class is in construction.
179 * objc/runtime.h (class_getSuperclass): Updated documentation.
181 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
183 * Makefile.in (INCLUDES): Search
184 $(srcdir)/$(MULTISRCTOP)../libgcc.
186 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
188 * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
190 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
192 * configure.ac (VERSION): Bumped to 4:0:0.
193 * configure (VERSION): Likewise.
195 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
197 * objc/README: Updated.
198 * objc-private/selector.h: Updated comments.
200 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
202 * sendmsg.c (class_get_instance_method): Removed.
203 (class_get_class_method): Removed.
204 (objc_get_uninstalled_dtable): Removed.
206 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
208 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
209 * objects.c (class_create_instance): Removed.
210 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
211 * gc.c (__objc_generate_gc_type_description): Use
212 class_getInstanceSize() instead of class_get_instance_size().
213 * selector.c (sel_types_match): Made static.
214 (sel_get_typed_uid): Removed.
215 (sel_get_any_typed_uid): Removed.
216 (sel_get_name): Removed.
217 (sel_get_type): Removed.
218 (sel_register_name): Removed.
219 (sel_register_typed_name): Removed.
220 (sel_get_uid): Removed.
222 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
224 * encoding.c (method_get_number_of_arguments): Removed.
225 (method_get_sizeof_arguments): Removed.
227 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
229 * class.c (objc_next_class): Removed.
230 (class_pose_as): Removed.
232 (class_table_replace): Removed.
233 (objc_lookup_class): Removed.
235 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
237 Removed the Traditional Objective-C runtime public API.
238 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
239 (install-headers): Do not create the objc/deprecated directory and
240 do not install the deprecated headers.
241 (OBJC_H): Removed encoding.h and objc-api.h.
242 * Object.m: Removed all methods with the exception of -class and
243 -isEqual:. Updated includes. ([-class]): Use Modern API.
244 * objc/Object.h: Do not include deprecated/Object.h.
245 * objc/deprecated/Object.h: Removed.
246 * linking.m (__objc_linking): Call [Object class] instead of
248 * Protocol.m: Removed all methods with the exception of -isEqual:.
250 * objc/Protocol.h: Do not include deprecated/Protocol.h.
251 * objc/deprecated/Protocol.h: Removed.
252 * objc/deprecated/struct_objc_symtab.h: Removed.
253 * objc/deprecated/struct_objc_module.h: Removed.
254 * objc/deprecated/struct_objc_ivar.h: Removed.
255 * objc/deprecated/struct_objc_ivar_list.h: Removed.
256 * objc/deprecated/struct_objc_method.h: Removed.
257 * objc/deprecated/struct_objc_method_list.h: Removed.
258 * objc/deprecated/struct_objc_protocol_list.h: Removed.
259 * objc/deprecated/struct_objc_category.h: Removed.
260 * objc/deprecated/MetaClass.h: Removed.
261 * objc/deprecated/objc_msg_sendv.h: Removed.
262 * objc/deprecated/README: Removed.
263 * objc/deprecated/struct_objc_class.h: Removed.
264 * objc/deprecated/struct_objc_protocol.h: Removed.
265 * objc/deprecated/struct_objc_selector.h: Removed.
266 * objc/encoding.h: Removed.
267 * objc/message.h (struct objc_super): Removed the definition for
268 the Traditional Objective-C runtime API.
269 * objc/objc.h: Do not include objc/objc-decls.h.
270 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
271 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
272 and deprecated/objc_msg_sendv.h. Uncommented new definition of
274 * objc/objc-api.h: Removed.
275 * objc/runtime.h: Updated comments. Removed check to detect
276 concurrent usage of Traditional and Modern APIs.
277 * objc-private/module-abi-8.h: Always define struct objc_class and
278 struct objc_protocol. (struct objc_protocol_list): Changed type
279 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
280 (class_get_instance_size): Added.
281 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
282 'struct objc_protocol *' as argument, not a 'Protocol *'.
283 * objc-private/runtime.h: Updated comments.
284 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
285 * class.c: Include objc-private/selector.h.
286 (objc_get_meta_class): Return a Class instead of a MetaClass.
287 * encoding.c (method_get_next_argument): Removed.
288 (method_get_first_argument): Removed.
289 (method_get_nth_argument): Removed.
290 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
291 Include objc-private/module-abi-8.h and ctype.h.
292 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
293 objc_protocl *' as argument, not a 'Protocol *'.
294 (class_addProtocol): Added casts to 'struct objc_protocol *' and
296 (class_copyProtocolList): Likewise.
297 (protocol_conformsToProtocol): Likewise.
298 (protocol_copyProtocolList): Likewise.
299 * sarray.c: Include objc-private/module-abi-8.h.
300 * sendmsg.c (method_get_next_argument): Removed.
301 (method_get_first_argument): Removed.
302 (method_get_nth_argument): Removed.
303 (objc_msg_sendv): Removed.
304 (arglist_t, retval_t): New. (class_get_class_method): Take a
305 'Class', not 'MetaClass', argument.
306 * thr.c: Include module-abi-8.h.
308 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
310 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
311 and objc_get_uninstalled_dtable.h.
312 * objc/deprecated/struct_objc_static_instances.h: Removed.
313 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
314 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
315 and deprecated/objc_get_uninstalled_dtable.h.
317 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
319 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
320 * objc/deprecated/objc_object_alloc.h: Removed.
321 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
322 * objects.c (_objc_object_alloc, _objc_object_dispose,
323 _objc_object_copy): Removed.
324 * libobjc.def (__objc_object_alloc, __objc_object_copy,
325 __objc_object_dispose): Removed.
327 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
329 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
330 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
331 * objc/deprecated/METHOD_NULL.h: Removed.
333 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
335 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
336 objc_malloc.h and objc_unexpected_exception.h.
337 (exception.lo): Do not use -Wno-deprecated-declarations.
338 (exception_gc.lo): Likewise.
339 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
340 deprecated/objc_malloc.h and
341 deprecated/objc_unexpected_exception.h.
342 * objc/deprecated/objc_valloc.h: Removed.
343 * objc/deprecated/objc_malloc.h: Removed.
344 * objc/deprecated/objc_unexpected_exception.h: Removed.
345 * exception.c (_objc_unexpected_exception): Removed.
346 (objc_exception_throw): Do not check for
347 _objc_unexpected_exception.
348 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
349 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
350 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
352 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
354 * objc/objc.h: Do not include deprecated/STR.h.
355 * objc/deprecated/STR.h: Removed.
356 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
358 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
360 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
361 (OBJC_DEPRECATED_H): Likewise.
362 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
363 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
364 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
365 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
366 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
367 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
368 * objc/sarray.h: Removed.
369 * objc/hash.h: Removed.
370 * objc/deprecated/sarray.h: Removed.
371 * objc/deprecated/hash.h: Removed.
372 * objc/Object.h: Do not include objc/deprecated/hash.h
373 * Object.m: Include string.h.
374 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
375 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
378 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
380 * Object.m ([-forward::]): Removed.
381 * objc/deprecated/Object.h ([-forward::]): Removed.
382 * sendmsg.c (__objc_forward): Updated comments.
384 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
386 * Makefile.in (OBJC_H): Removed objc-list.h.
387 (OBJC_DEPRECATED_H): Removed objc-list.h.
388 * objc/objc-list.h: File removed.
389 * objc/deprecated/objc-list.h: File removed.
391 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
393 * Makefile.in (OBJC_H): Removed typedstream.h.
394 (OBJC_DEPRECATED_H): Removed typedstream.h.
395 (C_SOURCE_FILES): Removed archive.c.
396 (Object.lo): Rule removed.
397 (Object_gc.lo): Likewise.
398 (archive.lo): Likewise.
399 (archive_gc.lo): Likewise.
400 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
402 Do not include deprecated/typedstream.h.
403 * Object.m: Removed the same methods.
404 * archive.c: File removed.
405 * objc/typedstream.h: File removed.
406 * objc/deprecated/typedstream.h: File removed.
407 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
408 __objc_write_class, __objc_write_object, __objc_write_selector,
409 objc_close_typed_stream, objc_end_of_typed_stream,
410 objc_flush_typed_stream, objc_get_stream_class_version,
411 objc_open_typed_stream, objc_open_typed_stream_for_file,
412 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
413 objc_read_object, objc_read_selector, objc_read_short,
414 objc_read_string, objc_read_type, objc_read_types,
415 objc_read_unsigned_char, objc_read_unsigned_int,
416 objc_read_unsigned_long, objc_read_unsigned_short,
417 objc_write_array, objc_write_char, objc_write_int,
418 objc_write_long, objc_write_object, objc_write_object_reference,
419 objc_write_root_object, objc_write_selector, objc_write_short,
420 objc_write_string, objc_write_string_atomic, objc_write_type,
421 objc_write_types, objc_write_unsigned_char,
422 objc_write_unsigned_int, objc_write_unsigned_long,
423 objc_write_unsigned_short): Removed.
425 2011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
427 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
428 * objc/deprecated/objc_error.h: Removed.
429 * objc/objc-api.h: Do not include deprecated/objc_error.h.
430 * libobjc.def (objc_error, objc_verror): Removed.
431 * error.c (_objc_error_handler, objc_error, objc_verror,
432 objc_set_error_handler): Removed.
433 * Object.m ([-error:], [-perform:], [-perform:with:],
434 [-perform:with:with], [-subclassResponsibility:],
435 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
437 * objc/deprecated/Object.h: Removed the same methods.
438 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
439 method after trying to invoke the "doesNotRecognize:" method.
441 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
443 * sendmsg.c: Reindented part of the file. No non-trivial changes
446 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
448 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
449 not objc_lookup_class.
451 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
452 David Ayers <ayers@fsfe.org>
455 * sendmsg.c: Include objc/hash.h.
456 (get_implementation): New function, mostly with code from get_imp
457 updated to support the new +initialize dispatch table logic.
458 (get_imp): Use get_implementation.
459 (__objc_responds_to): Updated to support the new +initialize
460 dispatch table logic.
461 (class_respondsToSelector): Likewise.
462 (objc_msg_lookup): Use get_implementation.
463 (__objc_init_install_dtable): Removed.
464 (__objc_install_methods_in_dtable): Updated arguments.
465 (__objc_install_dispatch_table_for_class): Renamed to
466 __objc_install_dtable_for_class and updated to support the new
467 +initialize dispatch table logic.
468 (__objc_update_dispatch_table_for_class): Updated to support the
469 new +initialize dispatch table logic.
470 (__objc_forward): Call get_implementation instead of get_imp.
471 (prepared_dtable_table): New.
472 (__objc_prepare_dtable_for_class): New.
473 (__objc_prepared_dtable_for_class): New.
474 (__objc_get_prepared_imp): New.
475 (__objc_install_prepared_dtable_for_class): New.
477 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
480 * selector.c (__sel_register_typed_name): Use sel_types_match()
481 instead of strcmp() to compare selector types (Suggestion by
482 Richard Frith-Macdonald <rfm@gnu.org>).
484 2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
487 * Makefile.in (OBJC_GCFLAGS): Move ...
488 * configure.ac (enable_objc_gc): ... here.
489 Add $(libsuffix) to OBJC_BOEHM_GC.
490 * configure: Regenerate.
492 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
494 * selector.c (sel_getTypedSelector): Return NULL if there are
495 multiple selectors with conflicting types.
496 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
498 2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
501 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
504 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
506 * configure: Regenerate.
508 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
510 * init.c (create_tree_of_subclasses_inherited_from): Use
511 class_superclass_of_class instead of assuming a class is
512 unresolved when it could be resolved. Tidied up assignment and
514 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
515 (objc_tree_insert_class): Tidied up loop; return immediately upon
517 (__objc_exec_class): Do not set __objc_class_tree_list.
519 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
521 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
523 (sel_registerTypedName): Same.
524 (sel_registerName): Same.
525 * objc/runtime.h: Updated documentation.
527 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
529 * objc/runtime.h (class_addIvar): Updated documentation. The
530 alignment is actually the log_2 of the alignment in bytes.
531 * ivars.c (class_addIvar): Corresponding change to the
534 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
536 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
537 be consistent with method_getTypeEncoding and
538 ivar_getTypeEncoding.
539 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
540 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
541 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
542 (sel_get_type): Updated call to sel_getType.
544 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
546 * objc/runtime.h (class_conformsToProtocol,
547 class_copyProtocolList): Updated documentation.
549 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
551 * init.c (create_tree_of_subclasses_inherited_from): Updated
552 DEBUG_PRINTF messages.
553 (__objc_tree_insert_class): Same.
554 (__objc_send_load_using_method_list): Same.
555 (__objc_send_load): Same.
556 (__objc_exec_class): Same. In particular, do not print the module
557 name since it is no longer used.
558 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
559 tracking +initialize calls.
560 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
561 tracking updates of dispatch tables.
562 (__objc_install_dispatch_table_for_class): Same.
564 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
566 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
567 (libobjc_gc$(libsuffix).la): Likewise.
569 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
571 * sendmsg.c (class_addMethod): Return NO if the method already
574 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
576 * init.c (duplicate_classes): New.
577 (__objc_exec_class): Initialize duplicate_classes.
578 (__objc_create_classes_tree): Ignore classes in the
579 duplicate_classes table.
580 (__objc_call_load_callback): Same.
581 (__objc_init_class): If a duplicate class is found, add it to
582 duplicate_classes instead of aborting. Return YES if the class is
583 not a duplicate, and NO if it is.
584 * objc-private/runtime.h (__objc_init_class): Updated prototype.
586 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
588 * objc-private/objc-list.h: Reindented file. No code changes.
589 * objc-private/sarray.h: Same change.
591 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
593 * objc-private/accessors.h: Removed 'extern "C"' guards. This
594 file is never compiled with C++.
595 * objc-private/hash.h: Same change.
596 * objc-private/objc-list.h: Same change.
597 * objc-private/objc-sync.h: Same change.
598 * objc-private/protocols.h: Same change.
599 * objc-private/runtime.h: Same change.
600 * objc-private/sarray.h: Same change.
601 * objc-private/selector.h: Same change.
603 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
606 * class.c (__objc_add_class_to_hash): Return YES if the class was
607 added, and NO if it already existed.
608 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
609 NO, then abort the program with an error message.
610 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
613 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
615 * init.c (_objc_load_callback): Initialize with 0.
616 (__objc_call_callback): Renamed to __objc_call_load_callback.
617 Check _objc_load_callback only once, and if it is not set, return
619 (objc_send_load): Updated call to __objc_call_callback.
621 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
624 * init.c (__objc_send_message_in_list): Renamed to
625 __objc_send_load_using_method_list. Do not take an 'op' argument.
626 Register the 'load' selector if needed.
627 (__objc_send_load): Do not register the 'load' selector. Updated
628 call to __objc_send_message_in_list.
629 (__objc_create_classes_tree): Add the class of any claimed
630 category that was loaded in the module to the list of classes for
631 which we try to execute +load.
633 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
635 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
637 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
638 a pointer using DEBUG_PRINTF.
640 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
643 * selector.c (__sel_register_typed_name): When registering a new
644 selector with the same name as an existing one, reuse the existing
645 name string. Also updated types, casts and comments in the whole
648 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
650 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
651 to be 'struct objc_selector *' and not 'SEL'.
652 * init.c (__objc_exec_class): Call
653 __objc_register_selectors_from_module instead of iterating over
654 each selector and calling __sel_register_typed_name for each.
655 * objc-private/selector.h: Declare
656 __objc_register_selectors_from_module instead of
657 __sel_register_typed_name.
658 * selector.c (__objc_register_selectors_from_module): New.
659 (__sel_register_typed_name): Made static.
661 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
663 * linking.m: Do not include objc/NXConstStr.h.
665 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
667 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
668 * objc-private/common.h (DEBUG_PRINTF): To here.
669 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
671 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
673 * hash.c: Tidied up comments and indentation. No code changes.
675 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
678 * accessors.m (objc_getProperty): If not atomic, do not
679 retain/autorelease the returned value.
681 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
683 * objc-private/runtime.h (__objc_selector_max_index,
684 __objc_init_selector_tables, __objc_register_selectors_from_class,
685 __objc_register_selectors_from_list,
686 __objc_register_selectors_from_description_list): Moved to ...
687 * objc-private/selector.h: ... here.
689 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
691 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
692 (__objc_print_dtable_stats): Removed.
693 (__sel_register_typed_name): Removed.
694 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
696 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
698 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
699 if appropriate, after loading the module.
701 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
703 * sendmsg.c (method_setImplementation): Do not declare.
705 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
707 * objc/message.h: Updated comments.
708 * objc/runtime.h: Updated comments.
710 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
712 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
713 * protocols.c: Updated all calls to objc_lookupClass to call
714 objc_lookUpClass instead.
715 * sendmsg.c (objc_lookupClass): Do not declare.
716 (get_imp): Update call to objc_lookupClass to call
717 objc_lookUpClass instead.
718 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
720 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
722 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
723 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
724 define. Updated comments.
726 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
728 * objc/encoding.h: Updated comments.
729 * objc/runtime.h: Updated comments.
730 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
731 (objc_sizeof_type): Same.
732 (objc_alignof_type): Same.
733 (objc_aligned_size): Same.
734 (objc_promoted_size): Same.
735 (objc_skip_type_qualifiers): Same.
736 (objc_skip_typespec): Same.
737 (objc_skip_offset): Same.
738 (objc_skip_argspec): Same.
739 (objc_get_type_qualifiers): Same.
740 (objc_layout_structure): Same.
741 (objc_layout_structure_next_member): Same.
742 (objc_layout_finish_structure): Same.
743 (objc_layout_structure_get_info): Same.
745 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
747 * init.c: Updated comments.
748 * objc/objc-api.h: Updated comments.
749 * objc/runtime.h (_objc_load_callback): Declare.
751 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
753 * objc/Object.h: Include deprecated/typedstream.h and
754 deprecated/hash.h instead of typedstream.h. Updated comments.
756 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
758 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
759 * objc/deprecated/objc_msg_sendv.h: New.
760 * objc/message.h: Do not define retval_t, apply_t, arglist,
761 arglist_t, objc_msg_sendv, now in
762 objc/deprecated/objc_msg_sendv.h.
763 * objc/objc.h: Do not include message.h; include
764 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
765 * sendmsg.c: Include objc/message.h.
766 * thr.c: Include objc/message.h.
768 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
770 * objc/objc-exception.h: Include objc-decls.h. Mark all
771 functions with objc_EXPORT.
772 * objc/objc-sync.h: Same change.
774 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
776 * Protocol.m: Moved all methods, with the exception of -isEqual:,
777 into the 'Deprecated' category.
778 * objc/Protocol.h: Removed all methods, moved to
779 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
780 * objc/deprecated/Protocol.h: New.
781 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
783 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
785 * init.c: Include objc-private/selector.h. Do not declare
786 __sel_register_typed_name.
787 * objc-private/selector.h (__sel_register_typed_name): Declare.
788 * selector.c: Include objc-private/selector.h.
790 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
792 * class.c: Tidied up comments and indentation. No code changes.
798 * objc-foreach.c: Same.
805 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
807 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
808 instead of objc/objc-api.h.
809 (init_check_module_version): Take a 'struct objc_module *'
810 argument instead of 'Module_t'. Use 'struct objc_module *'
811 instead of 'Module_t'.
812 (__objc_created_classes_tree): Take a 'struct objc_module *'
813 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
815 (__objc_call_callback): Take a 'struct objc_module *' argument
816 instead of 'Module_t'; use 'struct objc_symtab *' instead of
817 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
818 (_objc_load_callback): Take a 'struct objc_category *' argument
819 instead of 'Category *'.
820 (class_superclass_of_class): Use objc_getClass() instead of
822 (create_tree_of_subclasses_inherited_from): Same change (also, use
823 an explicit 'if' instead of '?').
824 (objc_init_statics): Same change.
825 (objc_send_load): Same change.
826 (__objc_init_protocol): same change.
827 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
828 argument instead of 'MethodList_t'. Use 'struct objc_method *'
829 instead of 'Method_t'.
830 (__objc_send_load): Use 'struct objc_method_list *' instead of
831 'MethodList_t'. Use sel_registerName() instead of
833 (__objc_exec_class): Take a 'struct objc_module *' argument
834 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
835 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
836 Use 'struct objc_category *' instead of 'Category_t'.
838 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
840 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
841 Include objc-private/module-abi-8.h and objc-private/selector.h
842 instead of objc/encoding.h.
843 (objc_msg_lookup_super): Use super->super_class instead of
845 (method_get_first_argument, method_get_next_argument): Declare
847 (class_get_instance_method): Declare before using.
848 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
849 (__objc_init_dispatch_tables, __objc_send_initialize): Use
850 sel_registerName() instead of sel_register_name().
851 (__objc_forward): Use sel_getName() instead of sel_get_name().
852 (objc_get_uninstalled_dtable): Use 'void' as argument.
853 * objc-private/selector.h: New.
855 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
857 * objc/message.h (objc_super): When using the modern API, do not
858 define Super and Super_t, and always use 'super_class' for the
860 (objc_msg_lookup_super): Updated prototype to use 'struct
861 objc_super *' instead of 'Super_t'.
862 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
863 'struct objc_super *' instead of 'Super_t'.
865 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
867 * objc/message.h: Update comments, reindented code and moved
868 deprecated types and functions at the end of the file. No code
871 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
873 * ivars.c (class_addIvar): Use the 'size' argument instead of
874 trying to calculate it using objc_sizeof_type().
875 * objc/runtime.h (class_addIvar): Updated comments.
877 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
879 * sendmsg.c: Reindented some code and tidied up comments. No
882 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
884 * objc/Object.h: Moved all the methods, with the exception of
885 -class and -isEqual:, into ...
886 * objc/deprecated/Object.h: here.
887 * Object.m: Moved all the methods, with the exception of -class
888 and -isEqual: into the 'Deprecated' category.
890 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
892 * objects.c (object_copy): Do not #undef as we are no longer
893 including objc/objc-api.h.
894 * selector.c: Include objc/runtime.h and
895 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
896 objc/encoding.h. Updated
897 (__objc_register_selectors_from_class): Use struct
898 objc_method_list * instead of MethodList_t.
899 (__objc_register_selectors_from_list): Use Method instead of
901 (struct objc_method_description_list): Do not define here.
902 (__objc_register_instance_methods_to_class): Use struct
903 objc_method_list * instead of MethodList_t and Method instead of
906 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
908 * selector.c: Reindented some code and tidied up comments. No
911 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
913 * encoding.c (_darwin_rs6000_special_round_type_align): New.
914 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
916 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
918 * sendmsg.c (selector_resolveClassMethod): New.
919 (selector_resolveInstanceMethod): New.
920 (__objc_resolve_class_method): New.
921 (__objc_resolve_instance_method): New.
922 (get_imp): Call __objc_resolve_class_method or
923 __objc_resolve_instance_method at the appropriate time.
924 (objc_msg_lookup): Same.
925 (class_getClassMethod): Same.
926 (class_getInstanceMethod): Same.
927 (__objc_init_dispatch_tables): Initialize
928 selector_resolveClassMethod and selector_resolveInstanceMethod.
929 * objc/runtime.h: Updated documentation of class_getClassMethod,
930 class_getInstanceMethod and class_getMethodImplementation.
932 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
934 * objc-private/module-abi-8.h (struct objc_symtab): Updated
935 description of sel_ref_cnt and refs.
936 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
938 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
942 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
943 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
944 * aclocal.m4: Regenerate.
945 * configure: Regenerate.
947 2010-12-03 Matthias Klose <doko@ubuntu.com>
949 * configure.ac (VERSION): Bump the version to 3:0:0.
950 * configure: Regenerate.
952 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
954 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
955 pass nil as the receiver since we don't know the receiver at this
958 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
960 * ivars.c: Include stdlib.h.
961 * protocols.c: Same change.
963 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
965 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
967 * init.c: Include objc-private/accessors.h.
968 (__objc_exec_class): Call __objc_accessors_init.
969 * objc-private/accessors.h: New.
971 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
973 * objc/message.h: Moved initial includes outside of extern "C".
974 * objc/runtime.h: Add extern "C" for Objective-C++.
976 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
978 * init.c (objc_send_load): Do not wait for NXConstantString to be
979 registered before executing +load. There is no point if
980 -fconstant-string-class=xxx is used when compiling all modules,
981 as is the case for almost all users.
982 * linking.m (__objc_linking): Do not try to forcefully link in
985 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
987 * objc/runtime.h: Updated comments.
988 (class_addMethod): New.
989 (class_addIvar): New.
990 (class_replaceMethod): New.
991 (objc_allocateClassPair): New.
992 (objc_registerClassPair): New.
993 (objc_disposeClassPair): New.
994 * class.c (objc_allocateClassPair): New.
995 (objc_registerClassPair): New.
996 (objc_disposeClassPair): New.
997 (class_getSuperclass): Return Nil if a class is in construction.
998 * init.c (__objc_exec_class): Call __objc_init_class.
999 (__objc_init_class): New.
1000 * ivars.c (class_copyIvarList): Return NULL if class is in
1001 construction. Do not lock the runtime mutex.
1002 (class_getInstanceVariable): Return NULL if class is in
1003 construction. Do not lock the runtime mutex.
1004 (class_addIvar): New.
1005 * sendmsg.c (class_addMethod): New.
1006 (class_replaceMethod): New.
1007 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
1008 (_CLS_IN_CONSTRUCTION): New.
1009 (CLS_IS_IN_CONSTRUCTION): New.
1010 (CLS_SET_IN_CONSTRUCTION): New.
1011 (CLS_SET_NOT_IN_CONSTRUCTION): New.
1012 * objc-private/runtime.h (__objc_init_class): New.
1014 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1016 * class.c (class_getSuperclass): Call __objc_resolve_class_links
1017 if the class is not resolved yet.
1018 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
1020 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1022 * objc/runtime.h (class_getIvarLayout): New.
1023 (class_getWeakIvarLayout): New.
1024 (class_setIvarLayout): New.
1025 (class_setWeakIvarLayout): New.
1026 * ivars.c (class_getIvarLayout): New.
1027 (class_getWeakIvarLayout): New.
1028 (class_setIvarLayout): New.
1029 (class_setWeakIvarLayout): New.
1031 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1033 * objc/runtime.h (class_copyPropertyList): New.
1034 (class_getProperty): New.
1035 (property_getAttributes): New.
1036 (property_getName): New.
1037 * ivars.c (class_copyPropertyList): New.
1038 (class_getProperty): New.
1039 (property_getAttributes): New.
1040 (property_getName): New.
1042 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1044 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
1045 * class.c (__objc_update_classes_with_methods): New.
1046 (objc_getClassList): Do not lock the class lock.
1047 * methods.c (method_exchangeImplementations): New.
1048 (method_setImplementation): New.
1049 * objc/runtime.h (method_setImplementation): New.
1050 (method_exchangeImplementations): New.
1052 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1054 * Protocol.m: Include objc/runtime.h and
1055 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
1056 repeat Protocol's instance variables.
1057 (struct objc_method_description_list): Do not define here.
1058 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
1059 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
1060 selectors directly instead of getting names and then using strcmp.
1061 ([descriptionForClassMethod:]): Same change.
1062 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
1063 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
1064 to compare selectors directly instead of getting names and then
1066 * objc/Protocol.h: Updated comments.
1068 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1070 * init.c (__objc_init_protocol): New function which fixes up a
1071 protocol's class pointer, registers it with the runtime, register
1072 all protocol selectors and registers associated protocols too.
1073 (objc_init_statics): Detect if we are initializing protocols, and
1074 if so, use __objc_init_protocol instead of only fixing up the
1076 (__objc_init_protocls): Use __objc_init_protocol.
1077 * objc-private/module-abi-8.h: Updated comments.
1078 * objc-private/runtime.h
1079 (__objc_register_selectors_from_description_list): New.
1080 * selector.c (__objc_register_selectors_from_description_list):
1081 New. (struct objc_method_description_list): Declare.
1082 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
1083 when accessing the name of a method, which is now correctly a SEL.
1084 ([-descriptionForClassMethod:]): Same change.
1085 * protocols.c (protocol_getMethodDescription): Same change.
1086 * objc/runtime.h: Updated comments.
1087 (sel_registerTypedName): Fixed typo in function name.
1089 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1092 * init.c (objc_init_statics): Do not skip the initialization of a
1093 statics list if the first object has already been initialized; in
1094 the case of Protocols, while the first one may have been
1095 initialized, some others may not have been initialized yet.
1097 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1099 * Makefile.in (OBJC_DEPRECATED_H): Added
1100 objc_get_uninstalled_dtable, objc_object_alloc.h and
1101 struct_objc_static_instances.h.
1103 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1105 * encoding.c (method_copyReturnType): New.
1106 (method_copyArgumentType): New.
1107 (method_getReturnType): New.
1108 (method_getArgumentType): New.
1109 * methods.c (method_getDescription): New.
1110 * objc/runtime.h (method_copyReturnType): New.
1111 (method_copyArgumentType): New.
1112 (method_getReturnType): New.
1113 (method_getArgumentType): New.
1114 (method_getDescription): New.
1116 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1118 * encoding.c: Tidied up comments.
1119 (objc_skip_variable_name): New static inline function.
1120 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
1121 the same code over and over.
1122 (objc_alignof_type): Same.
1123 (objc_aligned_size): Same.
1124 (objc_promoted_size): Same.
1125 (objc_skip_typespec): Same.
1126 (objc_layout_structure_next_member): Same.
1127 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
1128 historical bug where objc_skip_offset would skip one byte even if
1129 there is no offset: check that the first offset digit is actually
1130 a digit before skipping it.
1131 (objc_skip_type_qualifiers): Mark as inline.
1132 (objc_skip_typespec): Mark as inline.
1134 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1136 * Makefile.in (C_SOURCE_FILES): Added methods.c.
1137 * encoding.c (method_getNumberOfArguments): New.
1138 (method_get_number_of_arguments): Call
1139 method_getNumberOfArguments.
1140 * ivars.c (ivar_getName): Check for NULL variable argument.
1141 (ivar_getOffset): Check for NULL variable argument.
1142 (ivar_getTypeEncoding): Check for NULL variable argument.
1143 (class_copyIvarList): New.
1145 * protocols.c (class_copyProtocolList): Check for Nil class_
1147 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1148 'struct objc_method_list *' instead of MethodList_t.
1149 (class_getMethodImplementation): New.
1150 (class_respondsToSelector): New.
1151 (class_getInstanceMethod): New.
1152 (class_getClassMethod): New.
1153 * objc/runtime.h: Updated comments.
1154 (class_copyIvarList): New.
1155 (class_getInstanceMethod): New.
1156 (class_getClassMethod): New.
1157 (class_getMethodImplementation): New.
1158 (class_respondsToSelector): New.
1159 (method_getName): New.
1160 (method_getImplementation): New.
1161 (method_getTypeEncoding): New.
1162 (class_copyMethodList): New.
1163 (method_getNumberOfArguments): New.
1165 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1167 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1168 instead of objc/objc-api.h.
1169 (objc_get_unknown_class_handler): Do not define.
1170 (class_isMetaClass): New.
1171 (class_getSuperclass): New.
1172 (class_getVersion): New.
1173 (class_setVersion): New.
1174 (class_getInstanceSize): New.
1175 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1176 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1177 objc_get_super_class.
1178 (get_ttype_entry): Use objc_getRequiredClass instead of
1180 * ivars.c (class_getClassVariable): New.
1181 * objects.c: Include objc/runtime.h, objc/thr.h and
1182 objc-private/module-abi-8.h instead of objc/objc-api.h
1183 * objc/runtime.h (class_getClassVariable): New.
1184 (class_isMetaClass): New.
1185 (class_getSuperclass): New.
1186 (class_getVersion): New.
1187 (class_setVersion): New.
1188 (class_getInstanceSize): New.
1189 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1192 (__CLS_ISINFO): Same.
1193 (__CLS_SETINFO): Same.
1195 (CLS_ISCLASS): Same.
1196 (CLS_ISRESOLV): Same.
1197 (CLS_SETRESOLV): Same.
1198 (CLS_ISINITIALIZED): Same.
1199 (CLS_SETINITIALIZED): Same.
1200 (CLS_GETNUMBER): Same.
1201 (CLS_SETNUMBER): Same.
1203 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1205 * archive.c: Do not include objc/objc.h.
1206 * class.c: Do not include objc/objc.h.
1207 * encoding.c: Include objc/runtime.h, ctype.h and
1208 objc-private/module-abi-8.h instead of objc/objc-api.h and
1210 * error.c: Do not include objc/objc.h.
1211 * gc.c: Include tconfig.h and objc/encoding.h only if
1213 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1214 objc/objc-api.h. Do not include objc/objc.h.
1215 * init.c: Do not include objc/objc.h.
1216 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1217 objc/thr.h instead of objc/objc-api.h. Do not include
1219 * linking.m: Tidied comment.
1220 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1221 Do not include objc/objc.h.
1222 * objects.c: Do not include objc/objc.h.
1223 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1224 * protocols.c: Do not include objc/objc.h.
1225 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1226 not include objc/objc.h.
1227 * selector.c: Do not include objc/objc.h.
1228 * sendmsg.c: Do not include objc/objc.h.
1229 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1230 Do not include objc/objc.h.
1231 * objc/objc-decls.h: Reindented code.
1232 * objc/runtime.h Include objc-decls.h. Updated comments.
1234 (objc_atomic_malloc): New.
1236 (objc_realloc): New.
1238 * objc-private/runtime.h: Updated comments.
1240 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1242 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1243 * objc-private/protocols.h: New.
1245 * init.c: Include objc-private/protocols.h.
1246 (__objc_exec_class): Call __objc_protocols_init on startup.
1247 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1248 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1249 of MethodList_t, and (struct objc_method *) instead of Method_t.
1250 * objc/deprecated/struct_objc_class.h: Define
1251 __objc_STRUCT_OBJC_CLASS_defined.
1252 * objc-private/module-abi-8.h (struct
1253 objc_method_description_list): New.
1254 (struct objc_class): Only define if
1255 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1256 * objc/runtime.h (class_getName): New.
1257 (objc_getProtocol): New.
1258 (objc_copyProtocolList): New.
1259 (class_addProtocol): New.
1260 (class_conformsToProtocol): New.
1261 (class_copyProtocolList): New.
1262 (protocol_conformsToProtocol): New.
1263 (protocol_isEqual): New.
1264 (protocol_getName): New.
1265 (protocol_getMethodDescription): New.
1266 (protocol_copyMethodDescriptionList): New.
1267 (protocol_getProperty): New.
1268 (protocol_copyPropertyList): New.
1269 (protocol_copyProtocolList): New.
1270 * class.c (class_getName): New.
1271 * selector.c (sel_isEqual): New.
1273 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1275 * selector.c (sel_getName): Return "<null selector>" for a NULL
1277 (sel_get_name): Return 0 for a NULL argument.
1278 * objc/runtime.h (sel_getName): Updated documentation.
1280 * objc-private/hash.h (class_hash_table): Unused declaration
1282 (module_hash_table): Same.
1283 * objc/deprecated/hash.h: Same changes.
1285 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1287 * class.c (objc_getClassList): New.
1288 (objc_getRequiredClass): New.
1289 (objc_getMetaClass): New.
1290 (objc_lookupClass): New.
1291 (objc_getClass): New.
1292 (__objc_get_unknown_class_handler): New.
1293 (objc_setGetUnknownClassHandler): New.
1294 (objc_get_class): Use __objc_get_unknown_class_handler.
1295 (objc_lookup_class): Call objc_getClass.
1296 * objc/objc-api.h: Updated comment and copyright notice.
1297 * objc/runtime.h: Updated comments.
1298 (objc_getClass): New.
1299 (objc_lookupClass): New.
1300 (objc_getMetaClass): New.
1301 (objc_getRequiredClass): New.
1302 (objc_getClassList): New.
1303 (objc_setGetUnknownClassHandler): New.
1304 (objc_get_unknown_class_handler): New.
1305 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1306 instead of __objc_runtime_INCLUDE_GNU as include guard.
1307 * objc-private/error.h (_objc_abort): Mark as noreturn.
1309 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1311 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1313 * objc/objc.h: Updated comments.
1314 * objc/runtime.h (object_getClass): New.
1315 (object_getClassName): New.
1316 (object_setClass): New.
1317 (class_getInstanceVariable): New.
1318 (object_getIndexedIvars): New.
1319 (object_getInstanceVariable): New.
1320 (object_setInstanceVariable): New.
1321 (object_getIvar): New.
1322 (object_setIvar): New.
1323 (ivar_getName): New.
1324 (ivar_getOffset): New.
1325 (ivar_getTypeEncoding): New.
1326 * objc-private/module-abi-8.h (struct objc_class): Added.
1327 * objects.c (object_getClassName): New.
1328 (object_setClass): New.
1330 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1332 * objc/objc.h: Updated comments.
1333 * objc/objc-api.h: (object_copy): Added one argument; use a
1334 #define to maintain backwards-compatibility. Moved
1335 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1336 objc_get_uninstalled_dtable into
1337 objc/deprecated/objc_get_uninstalled_dtable.h and
1338 objc/deprecated/objc_object_alloc.h. Include these files.
1339 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1340 * objc/deprecated/objc_object_alloc.h: New.
1341 * objc/runtime.h (set_getName): New.
1344 (sel_registerName): New.
1345 (sel_registerTypedName): New.
1347 (class_createInstance): New.
1349 (object_dispose): New.
1350 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1351 building the garbage collection version.
1352 (__objc_object_alloc): Removed.
1353 (__objc_object_copy): Removed.
1354 (__objc_object_dispose): Removed.
1355 (class_createInstance): New from code in class_create_instance.
1356 Cast second argument of GC_malloc_explicitly_typed. Use
1357 objc_calloc. Do not call _objc_object_alloc.
1358 (class_create_instance): Call class_createInstance.
1359 (object_copy): Added extraBytes argument. Do not call
1361 (object_dispose): Do not call _objc_object_dispose.
1362 * memory.c (objc_free): When using garbage collection, mark the
1364 * selector.c (sel_getName): New.
1365 (sel_get_name): Call sel_getName.
1367 (sel_get_type): Call sel_getType.
1368 (sel_registerName): New.
1369 (sel_register_name): Call sel_registerName.
1370 (sel_registerTypedName): New.
1371 (sel_register_typed_name): Call sel_registerTypedName.
1373 (sel_get_uid): Call sel_getUid.
1375 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1377 * objc/objc-api.h: Define Method, Method_t, Category and
1378 Category_t. Prevent including this file at the same time as
1379 objc/runtime.h. Updated comments.
1380 * objc/deprecated/struct_objc_method.h: Do not define Method,
1382 * objc/deprecated/struct_objc_category.h: Do not define Category,
1384 * objc-private/module-abi-8.h: New file containing a copy of all
1385 the structure definitions. Not used yet.
1386 * objc/encoding.h (objc_aligned_size): Removed duplicate
1387 declaration. Updated comments.
1388 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1389 Category, struct objc_method_description, _C_ID and similar,
1390 _C_CONST and similar and _F_CONST and similar. Added
1391 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1392 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1393 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1394 struct objc_struct_layout, objc_layout_structure,
1395 objc_layout_structure_next_member, objc_layout_finish_structure,
1396 objc_layout_structure_get_info. Prevent including this file at
1397 the same time as objc/objc-api.h.
1399 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1401 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1402 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1403 struct_objc_method_list.h, struct_objc_module.h,
1404 struct_objc_protocol_list.h, struct_objc_symtab.h.
1405 * objc/deprecated/struct_objc_category.h: New.
1406 * objc/deprecated/struct_objc_ivar.h: New.
1407 * objc/deprecated/struct_objc_ivar_list.h: New.
1408 * objc/deprecated/struct_objc_method.h: New.
1409 * objc/deprecated/struct_objc_method_list.h: New.
1410 * objc/deprecated/struct_objc_module.h: New.
1411 * objc/deprecated/struct_objc_protocol_list.h: New.
1412 * objc/deprecated/struct_objc_symtab.h: New.
1413 * objc/deprecated/struct_objc_static_instances.h: New.
1414 * objc/objc-api.h: Definitions of deprecated structures moved into
1415 the above header fragment files in objc/deprecated/. Include the
1416 files instead of definition the structures here. Updated
1418 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1419 (objc_set_enumeration_mutation_handler): Renamed to
1420 objc_setEnumerationMutationHandler.
1421 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1422 to objc_setEnumerationMutationHandler.
1423 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1424 objc_setExceptionMatcher.
1425 (objc_set_uncaught_exception_handler): Renamed to
1426 objc_setUncaughtExceptionHandler.
1427 * exception.c: Same changes.
1429 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1431 * objc-sync.c: Include objc-private/common.h.
1433 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1435 * objc-foreach.c: Include objc-private/common.h.
1436 * objc/deprecated/METHOD_NULL.h: New file.
1437 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1438 defining METHOD_NULL here.
1439 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1440 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1442 ([-respondsTo:]): Same change.
1443 * objc/objc-api.h (method_get_imp): Converted it into a normal
1444 function so that we can hide the internals of struct objc_method.
1445 * sendmsg.c (method_get_imp): Implemented.
1447 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1449 * objc/objc-api.h (struct objc_super, Super, Super_t,
1450 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1451 objc_msg_forward2): Declarations moved to objc/message.h. Include
1453 * objc/message.h: Added such declarations; updated comments.
1455 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1457 Implemented fast enumeration for Objective-C.
1458 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1459 (OBJC_H): Added runtime.h
1460 * objc-foreach.c: New file.
1461 * objc/runtime.h: New file.
1463 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
1465 * objc/deprecated/struct_objc_class.h: Add padding
1466 to avoid warning with -Wpadded.
1468 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1470 * encoding.c (objc_sizeof_type): Added support for vector type and
1471 for double long types.
1472 (objc_alignof_type): Same change.
1473 (objc_skip_typespec): Same change.
1474 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1475 instead of '!' since '!' is already used for _C_VECTOR.
1476 * objc/objc-api.h (_C_LNG_DBL): Added.
1478 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1480 * libobjc_entry.c: File removed.
1482 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
1484 * sendmsg.c (objc_msg_lookup): Remove inline.
1485 (objc_get_uninstalled_dtable): Likewise.
1486 * encoding.c (objc_skip_type_qualifiers): Likewise.
1487 (objc_skip_offset): Likewise.
1488 * archive.c (__objc_write_object): Likewise
1489 (__objc_write_class):
1490 (__objc_write_selector):
1492 (objc_read_unsigned_char):
1494 (objc_read_unsigned_short):
1497 (__objc_read_nbyte_uint):
1498 (objc_read_unsigned_int):
1499 (objc_read_unsigned_long):
1500 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1501 (objc_EXPORT): Likewise.
1502 * objc/message.h (objc-decls.h): Add include.
1503 * objc/objc-api.h: Mark API by objc_EXPORT.
1504 * libobjc.def (__objc_responds_to): Removed.
1506 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1508 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1510 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1511 objc/sarray.h replaced with a placeholder including the file from
1512 the deprecated/ directory.
1513 * objc-private/sarray.h: New file (private copy of sarray.h).
1514 * hash.c: Include <assert.h> instead of "assert.h"
1515 * sarray.c: Include <assert.h> instead of "assert.h". Include
1516 objc-private/sarray.h instead of objc/sarray.h.
1517 * selector.c: Include objc-private/sarray.h instead of
1519 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1520 instead of objc/sarray.h.
1521 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1523 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1525 * objc-private/objc-list.h (list_remove_elem): Unused function
1526 removed. (list_nth): Unused function removed. (list_find):
1527 Unused function removed. (list_lenght): Unused function removed.
1529 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1531 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1532 replaced with a placeholder including the file from the
1533 deprecated/ directory.
1534 * objc/objc-api.h: Updated includes.
1535 * objc/typedstream.h: Updated includes.
1536 * objc-private/hash.h: New file (private copy of hash.h).
1537 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1538 objc/objc-list.h replaced with a placeholder including the file
1539 from the deprecated/ directory.
1540 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1541 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1542 instead of objc/hash.h and objc/objc-list.h.
1543 * selector.c: Same change.
1544 * class.c: Added include <string.h>, which used to be implicitly included
1545 when hash.h was included.
1546 * exception.c: Same change.
1547 * objects.c: Same change.
1548 * sarray.c: Same change.
1549 * sendmsg.c: Same change.
1550 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1552 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1554 Implemented objc_sync_enter() and objc_sync_exit(), which are
1555 required by @synchronized() to work.
1556 * objc-sync.c: New file.
1557 * objc/objc-sync.h: New file.
1558 * objc-private/objc-sync.h: New file.
1559 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1560 Objective-C runtime startup.
1561 * Makefile.in: Added objc-sync.c and objc-sync.h.
1562 * configure.ac: Added GCC_CHECK_TLS.
1563 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1564 * configure: Regenerated.
1565 * config.h.in: Regenerated.
1567 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1569 * Makefile.in (%_gc.lo): New pattern rules to build the
1570 garbage-collected version of the library. Removed rules for
1571 specific files that are no longer needed. Standardized all rules.
1572 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1573 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1575 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1577 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1579 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1580 with Garbage Colletion.
1582 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1584 * memory.c: Do not include objc-private/runtime.h.
1586 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1588 * objc/deprecated/objc_malloc.h: New file.
1589 * objc/deprecated/objc_valloc.h: New file.
1590 * objc/objc-api.h: Include the files instead of defining
1591 objc_valloc, _objc_malloc() and similar.
1592 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1594 * memory.c: Removed the extra layer of indirection of _objc_malloc
1596 (objc_calloc): Use GC_malloc in the garbage-collected
1597 implementation as GC_malloc returns memory that is already freed.
1598 (objc_valloc): Deprecated.
1600 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1602 * objc/deprecated/objc_error.h: New file.
1603 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1604 defining objc_error and related.
1605 * error.c: New file. Added _objc_abort function which replaces
1606 objc_error. No change in functionality as they both print an
1608 * misc.c: File removed. Code moved into memory.c and error.c.
1609 * memory.c: New file.
1610 * objc-private/error.h: New file.
1611 * archive.c: Include objc-private/error.h and use _objc_abort
1612 instead of objc_error everywhere.
1613 * class.c: Same change.
1614 * encoding.c: Same change.
1615 * init.c: Same change, and simplified init_check_module_version.
1616 * memory.c: Same change.
1617 * sendmsg.c: Same change.
1618 * thr.c: Same change.
1619 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1620 (OBJ_H): Reordered list.
1621 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1622 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1623 (misc_gc.lo): Rule removed.
1624 (error_gc.lo): Rule added.
1625 (memory_gc.lo): Rule added.
1627 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1629 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1630 to check the API version. Added some comments.
1632 * objc-private/common.h: New file.
1633 * NXConstStr.m: Include objc-private/common.h.
1634 * Object.m: Same change.
1635 * Protocol.m: Same change.
1636 * archive.c: Same change.
1637 * class.c: Same change.
1638 * encoding.c: Same change.
1639 * exception.c: Same change.
1640 * gc.c: Same change.
1641 * hash.c: Same change.
1642 * init.c: Same change.
1643 * libobjc_entry.c: Same change.
1644 * linking.m: Same change.
1645 * misc.c: Same change (and added a comment).
1646 * nil_method.c: Same change.
1647 * objects.c: Same change.
1648 * sarray.c: Same change.
1649 * selector.c: Same change.
1650 * sendmsg.c: Same change.
1651 * thr.c: Same change.
1653 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1655 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1657 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1659 * archive.c: Removed not needed includes.
1660 * class.c: Same change.
1661 * hash.c: Same change.
1662 * misc.c: Same change.
1663 * nil_method.c: Same change.
1664 * objects.c: Same change.
1665 * sarray.c: Same change.
1666 * sendmsg.c: Same change.
1667 * thr.c: Same change.
1669 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1671 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1672 all the objc/*.h files.
1673 * objc-private/runtime.h: New file.
1674 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1675 files) instead of objc/runtime.h.
1676 * class.c: Same change.
1677 * hash.c: Same change.
1678 * init.c: Same change.
1679 * misc.c: Same change.
1680 * nil_method.c: Same change.
1681 * objects.c: Same change.
1682 * sarray.c: Same change.
1683 * selector.c: Same change.
1684 * sendmsg.c: Same change.
1685 * thr.c: Same change.
1687 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1689 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1690 'struct objc_selector' and 'sel_eq' moved here.
1691 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1692 'struct objc_procotol' moved here.
1693 * objc/deprecated/struct_objc_class.h: New file. Definition of
1694 'struct objc_class' moved here.
1695 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1697 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1698 * objc/message.h: New file. Definitions for relval_t, apply_t,
1699 arglist, arglist_t and objc_msg_lookup were moved here.
1700 * objc/objc.h: Include the above files instead of defining the
1701 corresponding structs, types and functions here. Added new opaque
1702 definitions for SEL and Class. Use Class and not 'struct
1703 objc_class *' in the definition of 'struct objc_object'.
1704 Commented all types defined in the file. Removed special
1705 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1707 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1708 objc_unexpected_exception.h.
1709 * objc/objc-api.h: Updated include of
1710 objc-unexpetected-exception.h
1711 * objc/objc-exception.h: Updated comments.
1712 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1713 files. Reindented list of files.
1715 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1717 * objc/objc-api.h (objc_trace): Unused variable removed.
1719 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1721 * objc/deprecated: New directory.
1722 * objc/deprecated/README: New file.
1723 * objc/README: New file.
1724 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1725 objc/typedstream.h replaced with a placeholder including the file
1726 from the deprecated/ directory.
1727 * objc/deprecated/objc-unexpected-exception.h: New file with the
1728 definition of _objc_unexpected_exception.
1729 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1730 instead of defining _objc_unexpected_exception.
1731 * objc/deprecated/Object.h: New file with the deprecated Object
1732 methods in a 'Deprecated' category.
1733 * objc/Object.h Include deprecated/Object.h instead of defining
1734 the deprecated methods.
1735 * Object.m: Moved deprecated methods into 'Deprecated' category.
1736 * objc-private: New directory.
1737 * objc-private/README: New file.
1738 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1739 (install-headers): Create installation directory for
1740 OBJC_DEPRECATED_H headers, and install them.
1742 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1744 * objc/objc-exception.h: Fixed include of objc.h.
1746 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1748 * objc/objc-exception.h: New file.
1749 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1750 (objc_set_exception_matcher): Implemented.
1751 (objc_exception_throw): Use the uncaught exception handler if set.
1752 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1754 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1755 up. Removed segmentation fault when value is 'nil'.
1756 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1758 * Makefile.in (exception.lo, exception_gc.lo): Use
1759 -Wno-deprecated-declarations when compiling.
1760 (OBJC_H): Added objc-exception.h
1762 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1764 * objc/typedstream.h: Deprecate all functions in the file. This
1766 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1767 [-awake]): Documented that these methods are deprecated. Added a
1768 brief description of the Object class and its relationship to the
1770 * Makefile.in: Compile archive.c and Object.m with
1771 -Wno-deprecated-declarations.
1773 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1775 Removed obsolete intermediate threading layer.
1776 * thr.c: Use __gthread_objc_xxx functions directly instead of
1777 __objc_thread_xxx ones.
1778 * objc/thr.h: Removed prototypes of no longer existing
1779 __objc_thread_xxx functions.
1780 * Makefile.in: Removed thr-objc.lo.
1781 * thr-dce.c: File removed.
1782 * thr-decosf1.c: File removed.
1783 * thr-irix.c: File removed.
1784 * thr-mach.c: File removed.
1785 * thr-objc.c: File removed.
1786 * thr-os2.c: File removed.
1787 * thr-posix.c: File removed.
1788 * thr-pthreads.c: File removed.
1789 * thr-rtems.c: File removed.
1790 * thr-single.c: File removed.
1791 * thr-solaris.c: File removed.
1792 * thr-vxworks.c: File removed.
1793 * thr-win32.c: File removed.
1794 * README.threads: File removed.
1795 * THREADS.MACH: File removed.
1798 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1800 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1802 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1804 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1805 Add a comment as to why, update FIXME comments.
1807 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1809 * makefile.dos: Obsolete file removed.
1811 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1813 * aclocal.m4: Regenerate.
1815 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1818 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1819 Cygwin and MinGW hosts.
1820 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1821 (libobjc.dll): Likewise.
1822 * configure: Regenerate.
1824 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1826 * configure: Regenerate.
1828 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1830 * sarray.c (sarray_free): Use old_buckets variable.
1831 * encoding.c (objc_layout_structure_next_member): Remove unused
1832 bfld_type_size variable.
1834 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1836 * configure.ac (AC_PREREQ): Bump to 2.64.
1838 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1840 * aclocal.m4: Regenerate.
1841 * configure: Regenerate.
1842 * config.h.in: Regenerate.
1844 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1846 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1848 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1850 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1852 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1854 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1856 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1858 2009-04-09 Nick Clifton <nickc@redhat.com>
1860 * sendmsg.c: Change copyright header to refer to version 3 of
1861 the GNU General Public License with version 3.1 of the GCC
1862 Runtime Library Exception and to point readers at the COPYING3
1863 and COPYING3.RUNTIME files and the FSF's license web page.
1864 * NXConstStr.m: Likewise.
1865 * Object.m: Likewise.
1866 * Protocol.m: Likewise.
1867 * archive.c: Likewise.
1868 * class.c: Likewise.
1869 * encoding.c: Likewise.
1870 * exception.c: Likewise.
1874 * libobjc_entry.c: Likewise.
1875 * linking.m: Likewise.
1877 * nil_method.c: Likewise.
1878 * objc/NXConstStr.h: Likewise.
1879 * objc/Object.h: Likewise.
1880 * objc/Protocol.h: Likewise.
1881 * objc/encoding.h: Likewise.
1882 * objc/hash.h: Likewise.
1883 * objc/objc-api.h: Likewise.
1884 * objc/objc-decls.h: Likewise.
1885 * objc/objc-list.h: Likewise.
1886 * objc/objc.h: Likewise.
1887 * objc/runtime.h: Likewise.
1888 * objc/sarray.h: Likewise.
1889 * objc/thr.h: Likewise.
1890 * objc/typedstream.h: Likewise.
1891 * objects.c: Likewise.
1892 * sarray.c: Likewise.
1893 * selector.c: Likewise.
1894 * thr-dce.c: Likewise.
1895 * thr-decosf1.c: Likewise.
1896 * thr-irix.c: Likewise.
1897 * thr-mach.c: Likewise.
1898 * thr-objc.c: Likewise.
1899 * thr-os2.c: Likewise.
1900 * thr-posix.c: Likewise.
1901 * thr-pthreads.c: Likewise.
1902 * thr-rtems.c: Likewise.
1903 * thr-single.c: Likewise.
1904 * thr-solaris.c: Likewise.
1905 * thr-vxworks.c: Likewise.
1906 * thr-win32.c: Likewise.
1908 * libobjc.def: Change copyright header to refer to version 3 of
1909 the GNU General Public License and to point readers at the COPYING3
1910 file and the FSF's license web page.
1911 * makefile.dos: Likewise.
1913 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1915 * Makefile.in: Change copyright header to refer to version
1916 3 of the GNU General Public License and to point readers at the
1917 COPYING3 file and the FSF's license web page.
1918 * configure.ac: Likewise.
1920 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1921 David Ayers <ayers@fsfe.org>
1924 * objc/objc-api.h (_objc_unexpected_exception): Declare
1925 new hook. Update copyright dates.
1926 * exception.c (objc_exception_throw): Use hook. Update
1928 * libobjc.def (_objc_unexpected_exception): Export hook.
1929 Update copyright dates.
1931 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1933 * configure: Regenerate.
1935 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1937 * configure: Regenerate.
1939 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1941 * Object.m (errno): Replaced by errno.h include.
1942 (compare): Cast self to id to prevent warning on comparison.
1943 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1945 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1946 * thr-win32.c (__objc_thread_detach): Remove type warning.
1947 (__objc_thread_id): Likewise.
1948 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1951 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1952 Steve Ellcey <sje@cup.hp.com>
1954 * configure: Regenerate for new libtool.
1955 * config.h.in: Regenerate for new libtool.
1957 2008-07-18 Matthias Klose <doko@ubuntu.com>
1959 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1961 2008-07-18 Matthias Klose <doko@ubuntu.com>
1963 * Makefile.in: Include ../boehm-gc/threads.mk.
1964 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1966 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1968 * Makefile.in (install-info): New stub target.
1970 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1972 * configure: Regenerate.
1974 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1976 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1977 if HAVE_GETIPINFO is not defined.
1979 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1981 * Object.m (compare): Add type id.
1982 * objc/Object.h: Likewise.
1983 * archive.c (objc_read_class): Use size_t to extend version to be
1984 size of pointer scalar width.
1985 * sendmsg.c (rtx): Undefine it before redefinition.
1986 (__objc_print_dtable_stats): Cast arguments to long as intended.
1988 2008-05-30 Julian Brown <julian@codesourcery.com>
1990 * exception.c (__objc_exception_class): Initialise as constant
1991 array for ARM EABI. Change macro to static const for non-ARM EABI.
1992 (ObjcException): Add note about structure layout. Remove landingPad
1993 and handlerSwitchValue for ARM EABI.
1994 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1996 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1997 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1998 ARM EABI unwinding support.
1999 (objc_exception_throw): Use memcpy to initialise exception class.
2001 2008-05-25 Alan Modra <amodra@bigpond.net.au>
2003 * encoding.c (strip_array_types): Rename from get_inner_array_type.
2004 (rs6000_special_round_type_align): Update.
2006 2008-05-09 Julian Brown <julian@codesourcery.com>
2008 * Makefile.in (LTLDFLAGS): New.
2009 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
2011 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2014 * aclocal.m4: Regenerate.
2015 * configure: Regenerate.
2017 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2019 * configure: Regenerate.
2021 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
2023 * configure.ac: Don't run config-ml.in directly.
2024 (multilib_arg): New.
2025 * configure: Regenerated.
2027 2007-08-06 Andrew Pinski <pinskia@gmail.com>
2030 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
2031 of _Unwind_Word for variables which are used in
2032 read_uleb128/read_sleb128.
2033 (PERSONALITY_FUNCTION): Likewise.
2035 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2037 * aclocal.m4: Regenerated.
2039 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2041 * configure.ac: Fix a typo in *-*-darwin clause.
2042 * configure: Regenerated.
2044 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
2046 * configure.ac: Fix a typo.
2047 * configure: Regenerated.
2049 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2051 * configure: Regenerate.
2053 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
2055 * Makefile.in: Replace all uses of libext with libsuffix.
2056 * configure.ac: Likewise.
2057 * configure: Regenerate.
2060 * Makefile.in: Remove all uses of $(libext).
2062 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
2064 * Makefile.in: Remove all uses of $(libext).
2066 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2068 * configure: Regenerate.
2069 * aclocal.m4: Regenerate.
2071 2007-04-21 Andrew Ruder <andy@aeruder.net>
2073 * sendmsg.c (__objc_get_forward_imp): Call
2074 __objc_msg_forward2 for real.
2076 2007-04-09 Andrew Ruder <andy@aeruder.net>
2078 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
2079 external libraries to provide a function that returns the real
2080 forwarding function based on both the selector and the receiver.
2081 * objc/objc-api.h: Define __objc_msg_forward2.
2083 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2085 * Makefile.in: Add dummy install-pdf target.
2087 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2089 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
2092 2006-10-31 Geoffrey Keating <geoffk@apple.com>
2094 * encoding.c (darwin_rs6000_special_round_type_align): New.
2096 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2098 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
2099 * configure.ac: Use multi.m4 from aclocal rather than custom
2100 code. Use multi_basedir instead of toplevel_srcdir.
2101 * aclocal.m4: Regenerate.
2102 * configure: Regenerate.
2104 2006-10-10 Brooks Moses <bmoses@stanford.edu>
2106 * Makefile.in: Added empty "pdf" target.
2108 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
2110 * configure: Regenerate.
2112 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2114 * Makefile.in: Add install-html target. Add install-html to .PHONY
2116 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2119 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2121 2006-01-24 David Ayers <d.ayers@inode.at>
2124 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2125 and insure the new strings are '\0' termintated.
2127 2006-01-24 David Ayers <d.ayers@inode.at>
2130 * configure.ac: Add include directives for --enable-objc-gc.
2131 * Makefile.in: Ditto.
2132 * configure: Regenerate.
2134 * gc.c (__objc_class_structure_encoding): Increment the used bytes
2135 instead of the local pointer to them.
2137 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2140 * objc/objc-api.c (_C_COMPLEX): New define.
2141 * encoding.c (objc_sizeof_type): Handle _C_Complex.
2142 (objc_alignof_type): Likewise.
2143 (objc_skip_typespec): Likewise.
2145 2005-12-15 David Ayers <d.ayers@inode.at>
2148 * README (+load,+initialize): Fix documentation to reflect
2149 intended and implemented semantics for +load and +initialize.
2151 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2153 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2155 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2156 (rs6000_special_round_type_align): Update for the ABI fix.
2157 (objc_layout_finish_structure): Correct the encoding which is passed to
2160 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2163 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2164 but use the struct layout functions.
2165 (objc_alignof_type): Likewise.
2166 (objc_layout_structure): Handle _C_UNION_B also.
2167 (objc_layout_structure_next_member): Likewise.
2168 (objc_layout_finish_structure): Likewise.
2170 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2173 * objc/objc-api.h (_C_BOOL): New define.
2174 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2175 (objc_alignof_type): Likewise.
2176 (objc_skip_typespec): Likewise.
2178 2005-11-20 David Ayers <d.ayers@inode.at>
2181 * objc/hash.h: Remove deprecated hash API.
2182 * hash_compat.c: Remove.
2183 * Makefile.in: Remove reference to hash_compat.c.
2185 * configure.ac (VERSION): Bump library version to 2:0:0.
2186 * configure: Regenerate.
2188 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
2191 * thr-objc.c (_XOPEN_SOURCE): Define.
2193 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
2196 * objc/objc-api.h (struct objc_ivar): Move definition to
2199 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
2200 Rasmus Hahn <rassahah@neofonie.de>
2203 * archive.c (objc_write_type): Correct the element offset.
2204 (objc_read_type): Likewise.
2206 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2208 * All files: Update FSF address.
2210 2005-08-13 Marcin Koziej <creep@desk.pl>
2211 Andrew Pinski <pinskia@physics.uc.edu>
2214 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2216 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2218 * Makefile.in (extra_ldflags_libobjc): New.
2219 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2220 (libobjc_gc$(libext).la): Likewise.
2221 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2222 "-Wl,-single_module".
2223 * configure: Regenerate.
2224 * linking.m (_objcInit): Remove.
2226 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2229 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2231 2005-06-08 David Ayers <d.ayers@inode.at>
2233 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2234 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2235 objc/runtime.h, objc/sarray.h, objc/thr.h,
2236 objc/typedstream.h: Do not include Objective-C headers as
2239 2005-06-07 David Ayers <d.ayers@inode.at>
2241 * archive.c, init.c, selector.c: Include hash.h.
2242 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2243 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2244 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2245 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2246 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2247 Include Objective-C headers with quotes and objc/ directory
2250 2005-05-19 Richard Henderson <rth@redhat.com>
2252 * exception.c: Revert last change.
2254 2005-05-19 David Ayers <d.ayers@inode.at>
2256 * exception.c: Include tsystem.h for unwind.h.
2258 2005-05-09 Mike Stump <mrs@apple.com>
2260 * configure: Regenerate.
2262 2005-04-12 Mike Stump <mrs@apple.com>
2264 * configure: Regenerate.
2266 2005-03-21 Zack Weinberg <zack@codesourcery.com>
2268 * Makefile.in: Set gcc_version here.
2269 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2270 in definition of toolexeclibdir so that $(gcc_version) is expanded
2272 * aclocal.m4, configure: Regenerate.
2274 2005-03-03 David Ayers <d.ayers@inode.at>
2276 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2277 version reference. Correct typo.
2279 2005-03-02 David Ayers <d.ayers@inode.at>
2282 * Makefile.in (OBJS): Add hash_compat.lo.
2283 (OBJS_GC): Add hash_compat_gc.lo.
2284 (hash_compat_gc.lo): New target and rule.
2285 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2286 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2287 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2288 with objc_. Add deprecated non prefixed inlined versions.
2289 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2291 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2292 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2294 * hash_compat.c: New file.
2295 * archive.c: Update callers.
2297 * selector.c: Likewise.
2298 * libobjc.def: Add objc_ versions of hash functions.
2300 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2303 * Makefile.in (GTHREAD_FLAGS): Remove.
2304 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2305 * thr-objc.c: Include config.h.
2306 * configure.ac: Instead of looking at GCC's makefile, figure out if
2307 GTHREAD_FLAGS should be defined by looking at the `thread model'
2309 * configure: Regenerate.
2310 * config.h.in: Regenerate.
2312 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2315 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2316 (Determine CFLAGS for gthread): Use $host_subdir.
2317 * configure: Regenerate.
2318 * Makefile.in (host_subdir): New.
2321 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2324 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2326 Include limits.h and stdlib.h.
2327 Define BITS_PER_WORD.
2329 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
2331 * selector.c (__objc_init_selector_tables): Add missing void to
2334 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
2336 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2337 * configure, aclocal.m4: Regenerate.
2339 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2341 * configure: Regenerate for libtool change.
2343 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2345 * configure: Regenerate for libtool reversion.
2347 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2349 * configure: Regenerate for libtool change.
2351 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2353 * aclocal.m4, config.h.in: Regenerate.
2355 2004-10-08 Mike Stump <mrs@apple.com>
2356 Andrew Pinski <pinskia@physics.uc.edu>
2358 * aclocal.m4: Rename to ...
2359 * acinclude.m4: here and also use m4_include instead of sinclude.
2360 * aclocal.m4: Regenerate.
2361 * configure: Regenerate.
2362 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2363 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2365 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2367 * archive.c: Fix all the warnings about passing unsigned char*
2368 to char* and the other way too.
2370 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2373 * exception.c: Include config.h
2374 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2376 * configure.ac: Find out what exception handling code we use.
2377 * configure: Regenerate.
2378 * config.h.in: New file, regenerate.
2380 2004-09-16 Andrew Pinski <apinski@apple.com>
2382 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2384 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2386 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2387 ACX_NONCANONICAL_TARGET.
2388 * configure: Regenerate.
2390 2004-08-13 Ziemowit Laski <zlaski@apple.com>
2392 * objc/sarray.h: Hoist include of assert.h near the top of file,
2393 and mark the remainder of the file 'extern "C"'.
2395 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2397 * objc/Object.h: Move includes out of extern "C" blocks.
2398 * objc/encoding.h: Likewise.
2399 * objc/hash.h: Likewise.
2400 * objc/objc-api.h: Likewise.
2401 * objc/runtime.h: Likewise.
2402 * objc/sarray.h: Likewise.
2403 * objc/typedstream.h: Likewise.
2405 2004-08-12 Ziemowit Laski <zlaski@apple.com>
2407 * objc/NXConstStr.h: Update copyright date; bracket with
2408 'extern "C"' for C++ use; make include syntax consistent
2409 by using <...> instead of "..."; hoist <objc/...> includes
2410 above the 'extern "C"' block.
2411 * objc/Object.h: Likewise.
2412 * objc/Protocol.h: Likewise.
2413 * objc/encoding.h: Likewise.
2414 * objc/hash.h: Likewise.
2415 * objc/runtime.h: Likewise.
2416 * objc/sarray.h: Likewise.
2417 * objc/thr.h: Likewise.
2418 * objc/typedstream.h: Likewise.
2419 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2420 (objc_static_instances): For C++ case, do away with
2422 (objc_method): Hoist definition to file scope.
2423 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2424 class_get_instance_method, class_create_instance,
2425 class_get_class_name, class_get_instance_size,
2426 class_get_meta_class, class_get_super_class, class_get_version,
2427 class_is_class, class_is_meta_class, class_set_version,
2428 class_get_gc_object_type, class_ivar_set_gcinvisible,
2429 get_imp): Rename 'class' parameter to '_class'.
2430 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2431 * objc/objc.h: Update copyright date.
2432 (arglist_t): Provide a union tag.
2434 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2436 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2437 but instead use the attribute noreturn.
2439 2004-06-28 Zack Weinberg <zack@codesourcery.com>
2441 * encoding.c: Rename target_flags with a #define to avoid
2442 conflict with a prior declaration.
2444 2004-06-24 Andrew Pinski <apinski@apple.com>
2446 * objc/encoding.h: Wrap the functions with extern "C" for C++
2448 * objc/hash.h: Likewise.
2449 * objc/objc-api.h: Likewise.
2450 * objc/objc-list.h: Likewise.
2451 * objc/runtime.h: Likewise.
2452 * objc/sarray.h: Likewise.
2453 * objc/thr.h: Likewise.
2454 * objc/typedstream.h: Likewise.
2457 2004-06-21 Nick Clifton <nickc@redhat.com>
2459 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2462 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
2464 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2465 (exception_gc.lo): New.
2466 (OBJS_GC): Add exception_gc.lo.
2468 2004-06-17 Richard Henderson <rth@redhat.com>
2470 * exception.c: New file.
2471 * Makefile.in (exception.lo): New.
2474 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2476 * linking.m (_objcInit): New empty function
2479 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2481 * configure.ac: Support --enable-shared=libobjc.
2482 * configure: Regenerate.
2485 * configure.ac: Do not disable shared by default.
2486 * configure: Regenerate.
2488 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2490 * Protocol.m ([-isEqual:]): Small optimizations returning
2491 immediately if the argument is equal to self, and accessing
2492 the argument's name directly if it's a protocol.
2494 2004-06-03 David Ayers <d.ayers@inode.at>
2496 * Protocol.m ([-isEqual:]): Test the class of the argument.
2498 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2500 * configure.ac (includedir): Rename to ...
2502 * Makefile.in: s/includedir/includedirname/.
2505 * configure.ac (includedir): Set to "include"
2507 (libext) Set to empty except for Darwin.
2508 * configure: Regenerate
2509 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2510 s/include/$(includedir)/g.
2512 2004-05-25 Daniel Jacobowitz <drow@false.org>
2514 * Makefile.in: Add .NOEXPORT.
2516 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2518 Merge from the libobjc-branch
2519 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2521 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2523 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2525 * Makefile.in (OBJC_H): Add objc-deps.h.
2527 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2529 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2530 ([-hash], [-isEqual:]): New methods.
2532 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2534 * sarray.c (sarray_free): Add a better comment.
2536 2004-01-27 Adam Fedor <fedor@gnu.org>
2538 * hash.c (hash_add): Cast cachep to int.
2539 * selector.c (__sel_register_typed_name): Cast
2540 soffset_decode to int.
2542 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2544 * selector.c: Rename register_selectors_from_list to
2545 __objc_register_selectors_from_list. Update caller.
2546 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2547 while registering selectors. Use __sel_register_typed_name instead
2548 of sel_register_typed_name. Check for NULL method_name:s.
2549 (pool_alloc_selector): New function.
2550 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2551 selector structures.
2552 * sendmsg.c (class_add_method_list): Use
2553 __objc_register_selectors_from_list.
2554 * objc/runtime.h: Add __objc_register_selectors_from_list.
2556 2004-01-25 Adam Fedor <fedor@gnu.org>
2557 Nicola Pero <n.pero@mi.flashnet.it>
2558 Andrew Pinski <pinskia@physics.uc.edu>
2560 * objc/objc-decls.h: New file.
2561 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2562 (_objc_load_callback): Likewise.
2563 (_objc_object_alloc): Likewise.
2564 (_objc_object_copy): Likewise.
2565 (_objc_object_dispose): Likewise.
2567 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2569 * archive.c: s/__inline__/inline
2570 * sendmsg.c: Likewise.
2572 * encoding.c: Remove FIXME about the warning
2573 about unused variable.
2574 * sendmsg.c: Add a FIXME comment saying that
2575 this should be using libffi.
2577 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2580 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2582 * archive.c (objc_read_class): Initialize class_name.
2583 (objc_read_selector): Initialize selector_name.
2585 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2587 * Makefile.in (toolexecdir): Remove trailing space.
2589 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2592 * configure.ac: De-precious CC so multilibs work.
2593 * configure: Regenerate.
2595 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2597 * configure.ac: Restore toolexecdir.
2598 * Makefile.in: Restore toolexecdir.
2599 * configure: Regenerate.
2601 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2603 * configure.ac: Remove (unused) glibcpp_prefixdir.
2604 * configure: Regenerate.
2606 * configure.in: Rename to configure.ac.
2607 * Makefile.in: Update to match.
2609 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2610 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2611 * configure.in: Remove glibcpp_toolexecdir (unused).
2612 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2613 config.h or stamp-h (unused). Move one comment to the right place.
2614 * configure: Regenerate.
2615 * config.h.in: Remove (unused).
2617 * config.h.in: Regenerate with autoheader.
2619 * Makefile.in: Remove (unused) gcc_version_trigger.
2620 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2621 gcc_version_trigger.
2622 * configure: Regenerate.
2624 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2625 Sort file into sections. Remove dnl where appropriate. Fix
2627 * configure: Regenerate.
2629 * configure.in: Replace old AC_PROG_CC hack with new one.
2630 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2631 are no subdirectory output files, so this is fine). Change prereq
2633 * aclocal.m4: Include ../config/no-executables.m4.
2634 * configure: Regenerate with autoconf 2.59.
2636 * configure.in: Improve comments on gthread_cflags. Improve m4
2637 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2638 * configure: Regenerate.
2640 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2641 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2642 redundant checks for values of RANLIB, AR, INSTALL.
2643 * configure: Regenerate.
2645 * configure.in: Clean up handling of
2646 --enable-version-specific-runtime-libs and related variables;
2647 replace 'if test' with 'case' where reasonable. Fix comments.
2648 Remove useless libstdcxx_interface.
2649 * configure: Regenerate.
2651 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2652 Replace uses of target_alias with target_noncanonical.
2653 * aclocal.m4: Include ../config/acx.m4.
2654 * configure: Regenerate.
2655 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2656 Fix copyright statement.
2658 * configure.in: Hand-inline bulky, confusing macros from
2659 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2660 Update copyright notice. Remove stuff for automake, which isn't
2661 used in this directory. Remove emacs local variables.
2662 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2663 * configure: Regenerate.
2665 2004-03-16 Manfred Hollstein <mh@suse.com>
2667 * Makefile.in, configure.in, configure: Update copyright years.
2669 2004-03-15 Manfred Hollstein <mh@suse.com>
2671 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2672 definition from configure.in.
2673 * configure.in (PACKAGE): Add definition.
2674 (VERSION): Add definition; substitute it in output files.
2675 * configure: Re-generate.
2677 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2679 * objc/hash.h (hash_string, compare_strings):
2680 Add type-casts to make Objective-C++ happy.
2681 * objc/typedstream.h (objc_get_stream_class_version):
2682 Rename parameter from 'class' to 'class_name' to make
2683 Objective-C++ happy.
2685 2004-03-01 Michael Matz <matz@suse.de>
2687 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2689 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2691 * objc/objc-api.h (objc_super): The 'class' field shall
2692 be named 'super_class' #ifdef __cplusplus.
2694 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2697 * encoding.c (rs6000_special_round_type_align): Define.
2699 2004-01-14 Adam Fedor <fedor@gnu.org>
2702 * selector.c (__objc_register_instance_methods_to_class): Free
2703 new_list if not used.
2705 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2708 * sarray.c (sarray_free): Free array->is_copy_of latter.
2710 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2713 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2714 instance_methods if it's NULL.
2715 (descriptionForClassMethod): Likewise for class_methods.
2717 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2719 * Makefile.in (runtime-info.h): Remove -Wp.
2721 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2723 * Makefile.in (CC1OBJ): Remove.
2724 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2726 Use .m extension for temporary file.
2727 Remove assembler temp file.
2729 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2731 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2733 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2735 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2737 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2739 * configure: Regenerate.
2741 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2743 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2744 (libdir)/gcc-lib/ when installing.
2745 * configure: Regenerate.
2747 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2750 * sendmsg.c (get_imp): Fixed rare threading problem.
2751 (__objc_responds_to): Similar fixes.
2752 (objc_msg_lookup): Similar fixes.
2753 (__objc_init_install_dtable): Lock the runtime before checking if the
2756 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2758 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2759 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2760 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2761 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2762 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2763 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2764 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2765 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2766 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2767 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2768 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2770 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2771 Nicola Pero <n.pero@mi.flashnet.it>
2774 * init.c (class_superclass_of_class): New function.
2775 (create_tree_of_subclasses_inherited_from): Use it.
2776 (__objc_tree_insert_class): Likewise.
2777 (class_is_subclass_of_class): Likewise.
2779 2003-04-11 David Chad <davidc@freebsd.org>
2780 Loren J. Rittle <ljrittle@acm.org>
2783 * objc/hash.h (hash_string): Constify correctly.
2784 (compare_ptrs): Use direct compare.
2785 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2786 * objc/sarray.h: Global rename index to indx to avoid shadow.
2788 2003-03-12 Andreas Schwab <schwab@suse.de>
2790 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2791 glibcpp_toolexeclibdir.
2792 * configure: Rebuilt.
2794 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2796 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2798 * configure: Rebuilt.
2800 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2802 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2803 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2804 version_specific_libs is enabled.
2805 * configure: Rebuilt.
2807 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2809 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2810 (install-libs, install-headers): Prepend $(DESTDIR) to
2811 destination paths in all (un)installation commands.
2813 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2815 * thr-objc.c: Include coretypes.h and tm.h.
2817 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2819 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2821 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2823 * configure.in: Remove skip-this-dir support.
2824 * configure: Regenerate.
2826 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2828 * Makefile.in (all): Fix multilib parallel build.
2830 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2832 * sendmsg.c (nil_method): Declare not to take a variable number of
2834 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2835 (objc_msg_lookup_super): The same.
2837 2002-09-10 Jan Hubicka <jh@suse.cz>
2839 * nil_method.c (nil_method): No longer defined with variable
2842 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2844 * objc/encoding.h: Fix formatting.
2845 * objc/hash.h: Likewise.
2846 * objc/objc-api.h: Likewise.
2847 * objc/runtime.h: Likewise.
2848 * objc/thr.h: Likewise.
2849 * archive.c: Likewise.
2850 * class.c: Likewise.
2851 * encoding.c: Likewise.
2856 * nil_method.c: Likewise.
2857 * objects.c: Likewise.
2858 * sarray.c: Likewise.
2859 * selector.c: Likewise.
2860 * sendmsg.c: Likewise.
2861 * thr-mach.c: Likewise.
2864 2002-06-25 DJ Delorie <dj@redhat.com>
2866 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2867 GLIBCPP_TOPREL_CONFIGURE.
2868 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2869 * configure: Regenerate.
2871 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2873 * Object.m (forward, read, write): Fix unused parameter warnings.
2874 * encoding.c: Include <stdlib.h>.
2875 (target_flags): Mark with attribute unused.
2877 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2878 (__objc_generate_gc_type_description): Prototype.
2879 * selector.c (__objc_selector_max_index): Change to unsigned int.
2881 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2883 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2884 we always have a return value: if __objc_msg_forward does not
2885 supply a forwarding implementation, return the default
2886 __builtin_apply based one.
2888 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2890 * Object.m: Fix signed/unsigned warning.
2891 * Protocol.m: Likewise.
2892 * archive.c: Always include stdlib.h.
2893 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2894 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2895 Fix signed/unsigned warning.
2896 (objc_write_type, objc_read_type, objc_write_types,
2897 objc_read_types): Ensure ctype 8-bit safety.
2898 (__objc_no_write, __objc_no_read): Mark unused parameters.
2899 * class.c (class_table_setup): Specify void arg.
2900 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2901 objc_skip_typespec, objc_skip_offset,
2902 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2903 (objc_layout_structure_next_member): Ensure variables are
2905 * gc.c (__objc_generate_gc_type_description,
2906 class_ivar_set_gcinvisible): Mark unused parameters.
2907 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2909 (__objc_init_protocols) Fix signed/unsigned warning.
2910 * nil_method.c (nil_method): Mark unused parameters.
2911 * thr.h (objc_thread_callback): Specify void arg.
2912 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2913 signed/unsigned warning.
2914 (sarray_free): Fix formatting.
2915 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2916 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2918 2002-06-09 Andreas Jaeger <aj@suse.de>
2920 * encoding.c (objc_layout_structure_next_member): Remove unused
2923 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2925 * Makefile.in (SHELL): Set to @SHELL@.
2927 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2929 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2931 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2932 * configure: Regenerate.
2934 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2936 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2937 script entry, and set LD to it when configuring multilibs.
2938 * configure: Rebuilt.
2940 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2942 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2944 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2947 * objc/objc-api.h (struct objc_protocol_list): Change type of
2948 member count from int to size_t.
2950 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2953 * aclocal.m4: Replace with version copied from libstdc++-v3.
2954 * configure.in: Update for changes to aclocal and Makefile.
2955 * configure: Regenerate.
2956 * Makefile.in: Correct install of multilibs and shared libs, use
2957 INSTALL_DATA for include files.
2959 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2961 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2962 categories - when an unclaimed category was found, the loop was
2963 doing two steps forward instead of one, so that in certain cases
2964 it was failing to properly load all the categories. (Reported
2965 with fix by Alexander Malmberg <alexander@malmberg.org>).
2967 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2969 * encoding.c: Add target_flags.
2971 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2973 * objc/objc-api.h (_C_VECTOR): New.
2975 * encoding.c (VECTOR_TYPE): New.
2977 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2979 * class.c: Rewritten the class table to use optimized, lock-free
2980 lookup. This more than doubles the speed of class method
2981 invocations. (class_table_setup), (class_table_insert),
2982 (class_table_replace), (class_table_get_safe),
2983 (class_table_next), (class_table_print),
2984 (class_table_print_histogram): New functions.
2985 (__objc_init_class_tables): Use class_table_setup.
2986 (__objc_add_class_to_hash): Use class_table_get_safe and
2987 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2988 assert the existence of the table; do not lock the runtime; use
2989 class_table_get_safe. (objc_next_class): Use class_table_next.
2990 (__objc_resolve_class_links): Use class_table_next.
2991 (class_pose_as): Use class_table_replace.
2993 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2995 * gc.c: Removed the DEBUG declaration.
2997 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2999 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
3000 rather than through objc_thread_id, to save a function call.
3001 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
3004 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
3006 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
3007 to cast an id to a Class, which can not be done. Make the check
3008 by using CLS_ISMETA on the class pointer instead.
3009 (object_is_meta_class): Similar fix.
3011 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
3013 * configure.in (AC_EXEEXT): Work around in case it expands to
3014 nothing, as in autoconf 2.50.
3015 * acinclude.m4: Likewise.
3016 * configure: Rebuilt.
3018 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
3020 * THREADS: Explain that when we compile libobjc inside GCC, we
3021 always use thr-objc.c as a backend, which uses GCC's thread code.
3023 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
3025 * init.c (__objc_send_message_in_list): When setting a new entry
3026 in __objc_load_methods use the method IMP as key, but check to see
3027 if the method is in the hashtable by looking at the IMP also.
3028 Also ... call the method after adding it to the hashtable rather
3029 than before ... thus preventing an obscure possibility of infinite
3030 recursion if a +load method itself loads a subclass.
3032 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
3034 * init.c (__objc_send_message_in_list): When setting a new entry
3035 in __objc_load_methods use the method name as key, not the method
3036 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
3038 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
3040 * objc-features.texi: Move to ../gcc/objc.texi.
3042 * Makefile.in: Don't generate documentation from
3045 2001-05-01 Mark Mitchell <mark@codesourcery.com>
3047 * fdl.texi: New file.
3048 * objc-features.texi: Simplify.
3049 * Makefile.in: Adjust accordingly.
3051 2001-04-30 Mark Mitchell <mark@codesourcery.com>
3053 * objc-features.texi: Use the GFDL.
3055 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
3057 * encoding.c (REAL_TYPE): Define.
3059 2001-03-19 David Edelsohn <edelsohn@gnu.org>
3061 * encoding.c (TYPE_MODE): Define.
3063 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
3065 * thr.c (objc_thread_add): New function.
3066 (objc_thread_remove): Ditto.
3067 * objc/thr.h: Declare them.
3068 * libobjc.def: Mention them.
3070 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
3072 * objc-features.texi: Document the @compatibility_alias compiler
3073 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
3075 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3077 * sendmsg.c (__objc_forward): Delete strlen() declaration.
3079 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3081 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
3082 we're not interested in the result and they might fail.
3083 * configure: Regenerated.
3085 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3087 * objc-features.texi: Use @email.
3089 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3091 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
3094 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
3096 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
3097 determines the value dynamically.
3099 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
3101 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
3102 libraries to provide a function that returns the real forwarding
3103 function. This can alleviate problems __builtin_apply() and
3104 friends have on various platforms. (Solution suggested by Helge
3107 * objc/objc-api.h: Define __objc_msg_forward.
3109 * sendmsg.c: Define gen_rtx_REG.
3111 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3113 * thr-rtems.c: New file. Stub to compile.
3115 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3117 * configure: Rebuilt with new libtool.m4.
3119 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3121 * configure.in: Create a config.h file. Check for <sched.h>.
3122 * configure: Regenerate.
3124 * config.h.in: Check for <sched.h>.
3126 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
3128 * configure: Regenerate after change to ../libtool.m4.
3130 2000-08-14 Andreas Schwab <schwab@suse.de>
3132 * objc-features.texi (Top): Move @menu at end of node.
3134 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
3136 * objc-features.texi: Move @node Top before @menu.
3138 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3140 * objc-features.texi: Documented the new -fconstant-string-class
3143 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3145 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3146 improve the Posix thread support for Objective-C.
3148 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3150 * aclocal.m4: Replace copy of ../libtool.m4 with
3151 sinclude(../libtool.m4).
3153 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
3155 * configure.in: Added libtool support; build shared libraries
3156 if --enable-shared was passed on command line.
3157 * Makefile.in: Modified most compilation commands to use libtool.
3158 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3159 libtool distribution.
3161 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3163 * sarray.c, Object.m: Removed the explicit prototypes for strlen
3164 and memcpy on 64-bit platforms (Suggested by Rodney Brown
3167 2000-05-12 H.J. Lu (hjl@gnu.org)
3169 * Makefile.in (GTHREAD_FLAGS): New.
3170 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3171 (OBJC_THREAD_FILE): Changed to thr-objc.
3173 * configure.in (GTHREAD_FLAGS): New, check and replace it for
3175 (OBJC_THREAD_FILE): Removed.
3179 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3181 * objc/hash.h: Include string.h.
3183 2000-04-15 David Edelsohn <edelsohn@gnu.org>
3185 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3187 2000-04-12 Jakub Jelinek <jakub@redhat.com>
3189 * Object.m (strlen): Provide prototype on all 64bit platforms,
3191 * sarray.c (memcpy): Likewise.
3192 * encoding.c (objc_layout_finish_structure): Don't use
3193 ROUND_TYPE_ALIGN on sparc.
3195 * encoding.c (objc_layout_structure_next_member): Do the whole
3196 procedure even for the first member, so that we get correct
3199 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3201 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3204 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3206 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3208 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3210 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3212 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3214 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3215 the compiler when building C code.
3217 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3219 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3220 libdir, libsubdir and tooldir.
3222 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3224 * init.c (__objc_force_linking): Make global.
3226 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3228 * configure.in (AC_EXEEXT): Remove call.
3229 (compiler_name): Explicitly check with no extension and .exe
3231 * configure: Regenerate.
3233 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3235 * Makefile.in (CC1OBJ): Define in terms of CC.
3236 (runtime-info.h): Use.
3238 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3240 * objc-features.texi: Updated the URL to Boehm's GC page.
3242 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3244 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3245 the char as being signed (patch from Daniel Jacobowitz
3248 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3250 * configure.in (AC_PREREQ): Update to 2.13.
3251 (AC_EXEEXT): Call to find possible file extension.
3252 (compiler_name): Use.
3253 * configure: Regenerate.
3255 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3257 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3259 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3261 * configure.in (thread_file): Correct and simplify code to find
3263 * configure: Rebuilt.
3265 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3267 * configure.in (compiler_name): Add check to detect if this
3268 language's compiler has been built.
3269 * configure: Regenerate.
3271 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3273 * configure.in: Use AC_PREREQ(2.12.1).
3275 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3277 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3279 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3281 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3283 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3285 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3287 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3289 * objc-features.texi (Top): Changed the email address.
3290 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3292 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3294 * encoding.c: Redefine get_inner_array_type to get the first entry
3297 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3299 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3300 (objc_get_type_qualifiers): Similarly.
3301 * objc/encoding.h (_C_BYREF): Define.
3304 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3306 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3307 works out on 64-bit systems.
3309 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3311 * Makefile.in (INCLUDES): Make it multilib-friendly.
3313 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3315 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3317 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3318 Jeffrey A Law (law@cygnus.com)
3320 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3321 (FLAGS_TO_PASS): Added.
3322 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3324 * archive.c: Change config.h to tconfig.h.
3326 * configure.in: Find gcc's object directory even for multilibs.
3328 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
3330 * configure.in: Escape ^ in grep string.
3331 * configure: Rebuilt.
3333 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3335 * All .h files pushed down into the objc/ subdirectory.
3336 * Makefile.in (copy_headers): Corresponding changes.
3337 * configure.in (AC_INIT): Corresponding changes.
3338 * configure: Rebuilt.
3340 1998-09-30 Ben Elliston <bje@cygnus.com>
3341 Jeff Law <law@cygnus.com>
3343 * Makefile.in: Rewrite.
3345 * configure.in: Likewise.
3347 * configure: Regenerate.
3349 * All .c files. Remove "objc" prefix when including objc header
3350 files. Include tconfig.h, not ../tconfig.h.
3352 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3354 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3355 (get_inner_array_type): Define.
3357 1998-09-21 Ben Elliston <bje@cygnus.com>
3359 * New directory. Moved files from ../gcc/objc.