1 2015-05-04 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3 * configure: Regenerate.
5 2015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7 * acinclude.m4: Include bitfields.m4.
8 * config.h.in: Regenerate.
10 * configure.ac: Invoke gt_BITFIELD_TYPE_MATTERS.
11 * encoding.c: Check HAVE_BITFIELD_TYPE_MATTERS.
13 2015-04-29 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15 * encoding.c (objc_layout_structure_next_member): Check the value of
16 PCC_BITFIELD_TYPE_MATTERS not if it is defined.
18 2015-02-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21 * thr.c (_XOPEN_SOURCE): Remove.
23 2015-01-27 Matthias Klose <doko@ubuntu.com>
25 * sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp.
27 2015-01-09 Dimitris Papavasiliou <dpapavas@gmail.com>
30 * ivars.c: Add a check for classes without instance
31 variables, which have a NULL ivar list pointer.
33 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35 Update copyright years.
37 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
40 * configure: Regenerated.
42 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
45 * configure: Regenerate.
47 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
49 * thr.c (_XOPEN_SOURCE): Define as 600.
51 2014-07-27 Alan Modra <amodra@gmail.com>
52 Matthias Klose <doko@ubuntu.com>
56 * encoding.c: Define rs6000_special_adjust_field_align_p.
58 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
60 Update copyright years
62 2013-09-20 Alan Modra <amodra@gmail.com>
64 * configure: Regenerate.
66 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
69 * encoding.c: Likewise.
71 * objc-private/runtime.h: Likewise.
72 * objc/runtime.h: Likewise.
73 * objc-sync.c: Likewise.
75 2013-07-04 Kai Tietz <ktietz@redhat.com>
77 * exception.c: Add check for SjLj to SEH blocks.
79 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
81 Update copyright years.
83 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
85 * encoding.c (TARGET_VSX): Provide definitions based on the
86 current compilation options, and not based off the target options
88 (TARGET_ALTIVEC): Likewise.
89 (TARGET_64BIT): Likewise.
91 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
93 * configure: Regenerated.
95 2012-07-19 Tristan Gingold <gingold@adacore.com>
96 Richard Henderson <rth@redhat.com>
98 * exception.c (__gnu_objc_personality_seh0): New function.
100 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
102 * configure: Regenerated.
104 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
106 * configure.ac (enable_objc_gc): Remove alpha*-dec-osf* handling.
107 * configure: Regenerate.
109 * thr.c (_XOPEN_SOURCE): Define unconditionally.
111 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
113 * configure: Regenerate.
115 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
117 * Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
118 * configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
119 * configure: Regenerate.
120 * config.h.in: Regenerate.
122 2011-10-17 Paul Brook <paul@codesourcery.com>
123 Matthias Klose <doko@ubuntu.com>
125 * exception.c (parse_lsda_header): hardcode ttype_encoding for older
127 (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
129 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
132 * init.c (__objc_exec_class): Work around a bug in clang's code
133 generation. Clang sets the class->info field to values different
134 from 0x1 or 0x2 (the only allowed values in the traditional GNU
135 Objective-C runtime ABI) to store some additional information, but
136 this breaks backwards compatibility. Wipe out all the bits in the
137 fields other than the first two upon loading a class.
139 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
141 * class.c (objc_lookup_class): Added back for compatibility with
142 clang which seems to emit calls to it.
144 2011-10-08 Richard Frith-Macdonald <rfm@gnu.org>
145 Nicola Pero <nicola.pero@meta-innovation.com>
148 * sendmsg.c (__objc_send_initialize): If a class does not have an
149 +initialize method, search for an +initialize method in the
150 superclass and in the ancestor classes and execute the first one
151 that is found. This makes the GNU runtime behave in the same way
152 as the Apple/NeXT runtime with respect to +initialize methods and
155 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
158 * class.c (__objc_update_classes_with_methods): Iterate over meta
159 classes as well as normal classes when refreshing the method
160 implementations. This fixes replacing class methods.
162 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
164 * class.c (class_getSuperclass): Fixed to work with meta classes
165 still in construction too.
167 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
169 * class.c (class_getSuperclass): Fixed typo in comment.
171 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
174 * class.c (class_getSuperclass): Return the superclass if the
175 class is in construction.
176 * objc/runtime.h (class_getSuperclass): Updated documentation.
178 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
180 * Makefile.in (INCLUDES): Search
181 $(srcdir)/$(MULTISRCTOP)../libgcc.
183 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
185 * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
187 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
189 * configure.ac (VERSION): Bumped to 4:0:0.
190 * configure (VERSION): Likewise.
192 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
194 * objc/README: Updated.
195 * objc-private/selector.h: Updated comments.
197 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
199 * sendmsg.c (class_get_instance_method): Removed.
200 (class_get_class_method): Removed.
201 (objc_get_uninstalled_dtable): Removed.
203 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
205 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
206 * objects.c (class_create_instance): Removed.
207 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
208 * gc.c (__objc_generate_gc_type_description): Use
209 class_getInstanceSize() instead of class_get_instance_size().
210 * selector.c (sel_types_match): Made static.
211 (sel_get_typed_uid): Removed.
212 (sel_get_any_typed_uid): Removed.
213 (sel_get_name): Removed.
214 (sel_get_type): Removed.
215 (sel_register_name): Removed.
216 (sel_register_typed_name): Removed.
217 (sel_get_uid): Removed.
219 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
221 * encoding.c (method_get_number_of_arguments): Removed.
222 (method_get_sizeof_arguments): Removed.
224 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
226 * class.c (objc_next_class): Removed.
227 (class_pose_as): Removed.
229 (class_table_replace): Removed.
230 (objc_lookup_class): Removed.
232 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
234 Removed the Traditional Objective-C runtime public API.
235 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
236 (install-headers): Do not create the objc/deprecated directory and
237 do not install the deprecated headers.
238 (OBJC_H): Removed encoding.h and objc-api.h.
239 * Object.m: Removed all methods with the exception of -class and
240 -isEqual:. Updated includes. ([-class]): Use Modern API.
241 * objc/Object.h: Do not include deprecated/Object.h.
242 * objc/deprecated/Object.h: Removed.
243 * linking.m (__objc_linking): Call [Object class] instead of
245 * Protocol.m: Removed all methods with the exception of -isEqual:.
247 * objc/Protocol.h: Do not include deprecated/Protocol.h.
248 * objc/deprecated/Protocol.h: Removed.
249 * objc/deprecated/struct_objc_symtab.h: Removed.
250 * objc/deprecated/struct_objc_module.h: Removed.
251 * objc/deprecated/struct_objc_ivar.h: Removed.
252 * objc/deprecated/struct_objc_ivar_list.h: Removed.
253 * objc/deprecated/struct_objc_method.h: Removed.
254 * objc/deprecated/struct_objc_method_list.h: Removed.
255 * objc/deprecated/struct_objc_protocol_list.h: Removed.
256 * objc/deprecated/struct_objc_category.h: Removed.
257 * objc/deprecated/MetaClass.h: Removed.
258 * objc/deprecated/objc_msg_sendv.h: Removed.
259 * objc/deprecated/README: Removed.
260 * objc/deprecated/struct_objc_class.h: Removed.
261 * objc/deprecated/struct_objc_protocol.h: Removed.
262 * objc/deprecated/struct_objc_selector.h: Removed.
263 * objc/encoding.h: Removed.
264 * objc/message.h (struct objc_super): Removed the definition for
265 the Traditional Objective-C runtime API.
266 * objc/objc.h: Do not include objc/objc-decls.h.
267 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
268 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
269 and deprecated/objc_msg_sendv.h. Uncommented new definition of
271 * objc/objc-api.h: Removed.
272 * objc/runtime.h: Updated comments. Removed check to detect
273 concurrent usage of Traditional and Modern APIs.
274 * objc-private/module-abi-8.h: Always define struct objc_class and
275 struct objc_protocol. (struct objc_protocol_list): Changed type
276 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
277 (class_get_instance_size): Added.
278 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
279 'struct objc_protocol *' as argument, not a 'Protocol *'.
280 * objc-private/runtime.h: Updated comments.
281 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
282 * class.c: Include objc-private/selector.h.
283 (objc_get_meta_class): Return a Class instead of a MetaClass.
284 * encoding.c (method_get_next_argument): Removed.
285 (method_get_first_argument): Removed.
286 (method_get_nth_argument): Removed.
287 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
288 Include objc-private/module-abi-8.h and ctype.h.
289 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
290 objc_protocl *' as argument, not a 'Protocol *'.
291 (class_addProtocol): Added casts to 'struct objc_protocol *' and
293 (class_copyProtocolList): Likewise.
294 (protocol_conformsToProtocol): Likewise.
295 (protocol_copyProtocolList): Likewise.
296 * sarray.c: Include objc-private/module-abi-8.h.
297 * sendmsg.c (method_get_next_argument): Removed.
298 (method_get_first_argument): Removed.
299 (method_get_nth_argument): Removed.
300 (objc_msg_sendv): Removed.
301 (arglist_t, retval_t): New. (class_get_class_method): Take a
302 'Class', not 'MetaClass', argument.
303 * thr.c: Include module-abi-8.h.
305 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
307 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
308 and objc_get_uninstalled_dtable.h.
309 * objc/deprecated/struct_objc_static_instances.h: Removed.
310 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
311 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
312 and deprecated/objc_get_uninstalled_dtable.h.
314 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
316 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
317 * objc/deprecated/objc_object_alloc.h: Removed.
318 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
319 * objects.c (_objc_object_alloc, _objc_object_dispose,
320 _objc_object_copy): Removed.
321 * libobjc.def (__objc_object_alloc, __objc_object_copy,
322 __objc_object_dispose): Removed.
324 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
326 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
327 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
328 * objc/deprecated/METHOD_NULL.h: Removed.
330 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
332 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
333 objc_malloc.h and objc_unexpected_exception.h.
334 (exception.lo): Do not use -Wno-deprecated-declarations.
335 (exception_gc.lo): Likewise.
336 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
337 deprecated/objc_malloc.h and
338 deprecated/objc_unexpected_exception.h.
339 * objc/deprecated/objc_valloc.h: Removed.
340 * objc/deprecated/objc_malloc.h: Removed.
341 * objc/deprecated/objc_unexpected_exception.h: Removed.
342 * exception.c (_objc_unexpected_exception): Removed.
343 (objc_exception_throw): Do not check for
344 _objc_unexpected_exception.
345 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
346 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
347 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
349 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
351 * objc/objc.h: Do not include deprecated/STR.h.
352 * objc/deprecated/STR.h: Removed.
353 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
355 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
357 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
358 (OBJC_DEPRECATED_H): Likewise.
359 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
360 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
361 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
362 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
363 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
364 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
365 * objc/sarray.h: Removed.
366 * objc/hash.h: Removed.
367 * objc/deprecated/sarray.h: Removed.
368 * objc/deprecated/hash.h: Removed.
369 * objc/Object.h: Do not include objc/deprecated/hash.h
370 * Object.m: Include string.h.
371 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
372 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
375 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
377 * Object.m ([-forward::]): Removed.
378 * objc/deprecated/Object.h ([-forward::]): Removed.
379 * sendmsg.c (__objc_forward): Updated comments.
381 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
383 * Makefile.in (OBJC_H): Removed objc-list.h.
384 (OBJC_DEPRECATED_H): Removed objc-list.h.
385 * objc/objc-list.h: File removed.
386 * objc/deprecated/objc-list.h: File removed.
388 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
390 * Makefile.in (OBJC_H): Removed typedstream.h.
391 (OBJC_DEPRECATED_H): Removed typedstream.h.
392 (C_SOURCE_FILES): Removed archive.c.
393 (Object.lo): Rule removed.
394 (Object_gc.lo): Likewise.
395 (archive.lo): Likewise.
396 (archive_gc.lo): Likewise.
397 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
399 Do not include deprecated/typedstream.h.
400 * Object.m: Removed the same methods.
401 * archive.c: File removed.
402 * objc/typedstream.h: File removed.
403 * objc/deprecated/typedstream.h: File removed.
404 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
405 __objc_write_class, __objc_write_object, __objc_write_selector,
406 objc_close_typed_stream, objc_end_of_typed_stream,
407 objc_flush_typed_stream, objc_get_stream_class_version,
408 objc_open_typed_stream, objc_open_typed_stream_for_file,
409 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
410 objc_read_object, objc_read_selector, objc_read_short,
411 objc_read_string, objc_read_type, objc_read_types,
412 objc_read_unsigned_char, objc_read_unsigned_int,
413 objc_read_unsigned_long, objc_read_unsigned_short,
414 objc_write_array, objc_write_char, objc_write_int,
415 objc_write_long, objc_write_object, objc_write_object_reference,
416 objc_write_root_object, objc_write_selector, objc_write_short,
417 objc_write_string, objc_write_string_atomic, objc_write_type,
418 objc_write_types, objc_write_unsigned_char,
419 objc_write_unsigned_int, objc_write_unsigned_long,
420 objc_write_unsigned_short): Removed.
422 2011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
424 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
425 * objc/deprecated/objc_error.h: Removed.
426 * objc/objc-api.h: Do not include deprecated/objc_error.h.
427 * libobjc.def (objc_error, objc_verror): Removed.
428 * error.c (_objc_error_handler, objc_error, objc_verror,
429 objc_set_error_handler): Removed.
430 * Object.m ([-error:], [-perform:], [-perform:with:],
431 [-perform:with:with], [-subclassResponsibility:],
432 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
434 * objc/deprecated/Object.h: Removed the same methods.
435 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
436 method after trying to invoke the "doesNotRecognize:" method.
438 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
440 * sendmsg.c: Reindented part of the file. No non-trivial changes
443 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
445 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
446 not objc_lookup_class.
448 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
449 David Ayers <ayers@fsfe.org>
452 * sendmsg.c: Include objc/hash.h.
453 (get_implementation): New function, mostly with code from get_imp
454 updated to support the new +initialize dispatch table logic.
455 (get_imp): Use get_implementation.
456 (__objc_responds_to): Updated to support the new +initialize
457 dispatch table logic.
458 (class_respondsToSelector): Likewise.
459 (objc_msg_lookup): Use get_implementation.
460 (__objc_init_install_dtable): Removed.
461 (__objc_install_methods_in_dtable): Updated arguments.
462 (__objc_install_dispatch_table_for_class): Renamed to
463 __objc_install_dtable_for_class and updated to support the new
464 +initialize dispatch table logic.
465 (__objc_update_dispatch_table_for_class): Updated to support the
466 new +initialize dispatch table logic.
467 (__objc_forward): Call get_implementation instead of get_imp.
468 (prepared_dtable_table): New.
469 (__objc_prepare_dtable_for_class): New.
470 (__objc_prepared_dtable_for_class): New.
471 (__objc_get_prepared_imp): New.
472 (__objc_install_prepared_dtable_for_class): New.
474 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
477 * selector.c (__sel_register_typed_name): Use sel_types_match()
478 instead of strcmp() to compare selector types (Suggestion by
479 Richard Frith-Macdonald <rfm@gnu.org>).
481 2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
484 * Makefile.in (OBJC_GCFLAGS): Move ...
485 * configure.ac (enable_objc_gc): ... here.
486 Add $(libsuffix) to OBJC_BOEHM_GC.
487 * configure: Regenerate.
489 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
491 * selector.c (sel_getTypedSelector): Return NULL if there are
492 multiple selectors with conflicting types.
493 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
495 2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
498 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
501 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
503 * configure: Regenerate.
505 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
507 * init.c (create_tree_of_subclasses_inherited_from): Use
508 class_superclass_of_class instead of assuming a class is
509 unresolved when it could be resolved. Tidied up assignment and
511 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
512 (objc_tree_insert_class): Tidied up loop; return immediately upon
514 (__objc_exec_class): Do not set __objc_class_tree_list.
516 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
518 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
520 (sel_registerTypedName): Same.
521 (sel_registerName): Same.
522 * objc/runtime.h: Updated documentation.
524 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
526 * objc/runtime.h (class_addIvar): Updated documentation. The
527 alignment is actually the log_2 of the alignment in bytes.
528 * ivars.c (class_addIvar): Corresponding change to the
531 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
533 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
534 be consistent with method_getTypeEncoding and
535 ivar_getTypeEncoding.
536 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
537 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
538 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
539 (sel_get_type): Updated call to sel_getType.
541 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
543 * objc/runtime.h (class_conformsToProtocol,
544 class_copyProtocolList): Updated documentation.
546 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
548 * init.c (create_tree_of_subclasses_inherited_from): Updated
549 DEBUG_PRINTF messages.
550 (__objc_tree_insert_class): Same.
551 (__objc_send_load_using_method_list): Same.
552 (__objc_send_load): Same.
553 (__objc_exec_class): Same. In particular, do not print the module
554 name since it is no longer used.
555 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
556 tracking +initialize calls.
557 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
558 tracking updates of dispatch tables.
559 (__objc_install_dispatch_table_for_class): Same.
561 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
563 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
564 (libobjc_gc$(libsuffix).la): Likewise.
566 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
568 * sendmsg.c (class_addMethod): Return NO if the method already
571 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
573 * init.c (duplicate_classes): New.
574 (__objc_exec_class): Initialize duplicate_classes.
575 (__objc_create_classes_tree): Ignore classes in the
576 duplicate_classes table.
577 (__objc_call_load_callback): Same.
578 (__objc_init_class): If a duplicate class is found, add it to
579 duplicate_classes instead of aborting. Return YES if the class is
580 not a duplicate, and NO if it is.
581 * objc-private/runtime.h (__objc_init_class): Updated prototype.
583 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
585 * objc-private/objc-list.h: Reindented file. No code changes.
586 * objc-private/sarray.h: Same change.
588 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
590 * objc-private/accessors.h: Removed 'extern "C"' guards. This
591 file is never compiled with C++.
592 * objc-private/hash.h: Same change.
593 * objc-private/objc-list.h: Same change.
594 * objc-private/objc-sync.h: Same change.
595 * objc-private/protocols.h: Same change.
596 * objc-private/runtime.h: Same change.
597 * objc-private/sarray.h: Same change.
598 * objc-private/selector.h: Same change.
600 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
603 * class.c (__objc_add_class_to_hash): Return YES if the class was
604 added, and NO if it already existed.
605 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
606 NO, then abort the program with an error message.
607 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
610 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
612 * init.c (_objc_load_callback): Initialize with 0.
613 (__objc_call_callback): Renamed to __objc_call_load_callback.
614 Check _objc_load_callback only once, and if it is not set, return
616 (objc_send_load): Updated call to __objc_call_callback.
618 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
621 * init.c (__objc_send_message_in_list): Renamed to
622 __objc_send_load_using_method_list. Do not take an 'op' argument.
623 Register the 'load' selector if needed.
624 (__objc_send_load): Do not register the 'load' selector. Updated
625 call to __objc_send_message_in_list.
626 (__objc_create_classes_tree): Add the class of any claimed
627 category that was loaded in the module to the list of classes for
628 which we try to execute +load.
630 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
632 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
634 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
635 a pointer using DEBUG_PRINTF.
637 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
640 * selector.c (__sel_register_typed_name): When registering a new
641 selector with the same name as an existing one, reuse the existing
642 name string. Also updated types, casts and comments in the whole
645 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
647 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
648 to be 'struct objc_selector *' and not 'SEL'.
649 * init.c (__objc_exec_class): Call
650 __objc_register_selectors_from_module instead of iterating over
651 each selector and calling __sel_register_typed_name for each.
652 * objc-private/selector.h: Declare
653 __objc_register_selectors_from_module instead of
654 __sel_register_typed_name.
655 * selector.c (__objc_register_selectors_from_module): New.
656 (__sel_register_typed_name): Made static.
658 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
660 * linking.m: Do not include objc/NXConstStr.h.
662 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
664 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
665 * objc-private/common.h (DEBUG_PRINTF): To here.
666 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
668 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
670 * hash.c: Tidied up comments and indentation. No code changes.
672 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
675 * accessors.m (objc_getProperty): If not atomic, do not
676 retain/autorelease the returned value.
678 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
680 * objc-private/runtime.h (__objc_selector_max_index,
681 __objc_init_selector_tables, __objc_register_selectors_from_class,
682 __objc_register_selectors_from_list,
683 __objc_register_selectors_from_description_list): Moved to ...
684 * objc-private/selector.h: ... here.
686 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
688 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
689 (__objc_print_dtable_stats): Removed.
690 (__sel_register_typed_name): Removed.
691 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
693 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
695 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
696 if appropriate, after loading the module.
698 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
700 * sendmsg.c (method_setImplementation): Do not declare.
702 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
704 * objc/message.h: Updated comments.
705 * objc/runtime.h: Updated comments.
707 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
709 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
710 * protocols.c: Updated all calls to objc_lookupClass to call
711 objc_lookUpClass instead.
712 * sendmsg.c (objc_lookupClass): Do not declare.
713 (get_imp): Update call to objc_lookupClass to call
714 objc_lookUpClass instead.
715 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
717 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
719 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
720 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
721 define. Updated comments.
723 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
725 * objc/encoding.h: Updated comments.
726 * objc/runtime.h: Updated comments.
727 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
728 (objc_sizeof_type): Same.
729 (objc_alignof_type): Same.
730 (objc_aligned_size): Same.
731 (objc_promoted_size): Same.
732 (objc_skip_type_qualifiers): Same.
733 (objc_skip_typespec): Same.
734 (objc_skip_offset): Same.
735 (objc_skip_argspec): Same.
736 (objc_get_type_qualifiers): Same.
737 (objc_layout_structure): Same.
738 (objc_layout_structure_next_member): Same.
739 (objc_layout_finish_structure): Same.
740 (objc_layout_structure_get_info): Same.
742 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
744 * init.c: Updated comments.
745 * objc/objc-api.h: Updated comments.
746 * objc/runtime.h (_objc_load_callback): Declare.
748 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
750 * objc/Object.h: Include deprecated/typedstream.h and
751 deprecated/hash.h instead of typedstream.h. Updated comments.
753 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
755 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
756 * objc/deprecated/objc_msg_sendv.h: New.
757 * objc/message.h: Do not define retval_t, apply_t, arglist,
758 arglist_t, objc_msg_sendv, now in
759 objc/deprecated/objc_msg_sendv.h.
760 * objc/objc.h: Do not include message.h; include
761 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
762 * sendmsg.c: Include objc/message.h.
763 * thr.c: Include objc/message.h.
765 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
767 * objc/objc-exception.h: Include objc-decls.h. Mark all
768 functions with objc_EXPORT.
769 * objc/objc-sync.h: Same change.
771 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
773 * Protocol.m: Moved all methods, with the exception of -isEqual:,
774 into the 'Deprecated' category.
775 * objc/Protocol.h: Removed all methods, moved to
776 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
777 * objc/deprecated/Protocol.h: New.
778 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
780 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
782 * init.c: Include objc-private/selector.h. Do not declare
783 __sel_register_typed_name.
784 * objc-private/selector.h (__sel_register_typed_name): Declare.
785 * selector.c: Include objc-private/selector.h.
787 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
789 * class.c: Tidied up comments and indentation. No code changes.
795 * objc-foreach.c: Same.
802 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
804 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
805 instead of objc/objc-api.h.
806 (init_check_module_version): Take a 'struct objc_module *'
807 argument instead of 'Module_t'. Use 'struct objc_module *'
808 instead of 'Module_t'.
809 (__objc_created_classes_tree): Take a 'struct objc_module *'
810 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
812 (__objc_call_callback): Take a 'struct objc_module *' argument
813 instead of 'Module_t'; use 'struct objc_symtab *' instead of
814 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
815 (_objc_load_callback): Take a 'struct objc_category *' argument
816 instead of 'Category *'.
817 (class_superclass_of_class): Use objc_getClass() instead of
819 (create_tree_of_subclasses_inherited_from): Same change (also, use
820 an explicit 'if' instead of '?').
821 (objc_init_statics): Same change.
822 (objc_send_load): Same change.
823 (__objc_init_protocol): same change.
824 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
825 argument instead of 'MethodList_t'. Use 'struct objc_method *'
826 instead of 'Method_t'.
827 (__objc_send_load): Use 'struct objc_method_list *' instead of
828 'MethodList_t'. Use sel_registerName() instead of
830 (__objc_exec_class): Take a 'struct objc_module *' argument
831 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
832 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
833 Use 'struct objc_category *' instead of 'Category_t'.
835 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
837 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
838 Include objc-private/module-abi-8.h and objc-private/selector.h
839 instead of objc/encoding.h.
840 (objc_msg_lookup_super): Use super->super_class instead of
842 (method_get_first_argument, method_get_next_argument): Declare
844 (class_get_instance_method): Declare before using.
845 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
846 (__objc_init_dispatch_tables, __objc_send_initialize): Use
847 sel_registerName() instead of sel_register_name().
848 (__objc_forward): Use sel_getName() instead of sel_get_name().
849 (objc_get_uninstalled_dtable): Use 'void' as argument.
850 * objc-private/selector.h: New.
852 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
854 * objc/message.h (objc_super): When using the modern API, do not
855 define Super and Super_t, and always use 'super_class' for the
857 (objc_msg_lookup_super): Updated prototype to use 'struct
858 objc_super *' instead of 'Super_t'.
859 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
860 'struct objc_super *' instead of 'Super_t'.
862 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
864 * objc/message.h: Update comments, reindented code and moved
865 deprecated types and functions at the end of the file. No code
868 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
870 * ivars.c (class_addIvar): Use the 'size' argument instead of
871 trying to calculate it using objc_sizeof_type().
872 * objc/runtime.h (class_addIvar): Updated comments.
874 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
876 * sendmsg.c: Reindented some code and tidied up comments. No
879 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
881 * objc/Object.h: Moved all the methods, with the exception of
882 -class and -isEqual:, into ...
883 * objc/deprecated/Object.h: here.
884 * Object.m: Moved all the methods, with the exception of -class
885 and -isEqual: into the 'Deprecated' category.
887 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
889 * objects.c (object_copy): Do not #undef as we are no longer
890 including objc/objc-api.h.
891 * selector.c: Include objc/runtime.h and
892 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
893 objc/encoding.h. Updated
894 (__objc_register_selectors_from_class): Use struct
895 objc_method_list * instead of MethodList_t.
896 (__objc_register_selectors_from_list): Use Method instead of
898 (struct objc_method_description_list): Do not define here.
899 (__objc_register_instance_methods_to_class): Use struct
900 objc_method_list * instead of MethodList_t and Method instead of
903 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
905 * selector.c: Reindented some code and tidied up comments. No
908 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
910 * encoding.c (_darwin_rs6000_special_round_type_align): New.
911 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
913 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
915 * sendmsg.c (selector_resolveClassMethod): New.
916 (selector_resolveInstanceMethod): New.
917 (__objc_resolve_class_method): New.
918 (__objc_resolve_instance_method): New.
919 (get_imp): Call __objc_resolve_class_method or
920 __objc_resolve_instance_method at the appropriate time.
921 (objc_msg_lookup): Same.
922 (class_getClassMethod): Same.
923 (class_getInstanceMethod): Same.
924 (__objc_init_dispatch_tables): Initialize
925 selector_resolveClassMethod and selector_resolveInstanceMethod.
926 * objc/runtime.h: Updated documentation of class_getClassMethod,
927 class_getInstanceMethod and class_getMethodImplementation.
929 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
931 * objc-private/module-abi-8.h (struct objc_symtab): Updated
932 description of sel_ref_cnt and refs.
933 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
935 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
939 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
940 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
941 * aclocal.m4: Regenerate.
942 * configure: Regenerate.
944 2010-12-03 Matthias Klose <doko@ubuntu.com>
946 * configure.ac (VERSION): Bump the version to 3:0:0.
947 * configure: Regenerate.
949 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
951 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
952 pass nil as the receiver since we don't know the receiver at this
955 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
957 * ivars.c: Include stdlib.h.
958 * protocols.c: Same change.
960 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
962 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
964 * init.c: Include objc-private/accessors.h.
965 (__objc_exec_class): Call __objc_accessors_init.
966 * objc-private/accessors.h: New.
968 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
970 * objc/message.h: Moved initial includes outside of extern "C".
971 * objc/runtime.h: Add extern "C" for Objective-C++.
973 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
975 * init.c (objc_send_load): Do not wait for NXConstantString to be
976 registered before executing +load. There is no point if
977 -fconstant-string-class=xxx is used when compiling all modules,
978 as is the case for almost all users.
979 * linking.m (__objc_linking): Do not try to forcefully link in
982 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
984 * objc/runtime.h: Updated comments.
985 (class_addMethod): New.
986 (class_addIvar): New.
987 (class_replaceMethod): New.
988 (objc_allocateClassPair): New.
989 (objc_registerClassPair): New.
990 (objc_disposeClassPair): New.
991 * class.c (objc_allocateClassPair): New.
992 (objc_registerClassPair): New.
993 (objc_disposeClassPair): New.
994 (class_getSuperclass): Return Nil if a class is in construction.
995 * init.c (__objc_exec_class): Call __objc_init_class.
996 (__objc_init_class): New.
997 * ivars.c (class_copyIvarList): Return NULL if class is in
998 construction. Do not lock the runtime mutex.
999 (class_getInstanceVariable): Return NULL if class is in
1000 construction. Do not lock the runtime mutex.
1001 (class_addIvar): New.
1002 * sendmsg.c (class_addMethod): New.
1003 (class_replaceMethod): New.
1004 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
1005 (_CLS_IN_CONSTRUCTION): New.
1006 (CLS_IS_IN_CONSTRUCTION): New.
1007 (CLS_SET_IN_CONSTRUCTION): New.
1008 (CLS_SET_NOT_IN_CONSTRUCTION): New.
1009 * objc-private/runtime.h (__objc_init_class): New.
1011 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1013 * class.c (class_getSuperclass): Call __objc_resolve_class_links
1014 if the class is not resolved yet.
1015 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
1017 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1019 * objc/runtime.h (class_getIvarLayout): New.
1020 (class_getWeakIvarLayout): New.
1021 (class_setIvarLayout): New.
1022 (class_setWeakIvarLayout): New.
1023 * ivars.c (class_getIvarLayout): New.
1024 (class_getWeakIvarLayout): New.
1025 (class_setIvarLayout): New.
1026 (class_setWeakIvarLayout): New.
1028 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1030 * objc/runtime.h (class_copyPropertyList): New.
1031 (class_getProperty): New.
1032 (property_getAttributes): New.
1033 (property_getName): New.
1034 * ivars.c (class_copyPropertyList): New.
1035 (class_getProperty): New.
1036 (property_getAttributes): New.
1037 (property_getName): New.
1039 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1041 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
1042 * class.c (__objc_update_classes_with_methods): New.
1043 (objc_getClassList): Do not lock the class lock.
1044 * methods.c (method_exchangeImplementations): New.
1045 (method_setImplementation): New.
1046 * objc/runtime.h (method_setImplementation): New.
1047 (method_exchangeImplementations): New.
1049 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1051 * Protocol.m: Include objc/runtime.h and
1052 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
1053 repeat Protocol's instance variables.
1054 (struct objc_method_description_list): Do not define here.
1055 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
1056 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
1057 selectors directly instead of getting names and then using strcmp.
1058 ([descriptionForClassMethod:]): Same change.
1059 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
1060 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
1061 to compare selectors directly instead of getting names and then
1063 * objc/Protocol.h: Updated comments.
1065 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1067 * init.c (__objc_init_protocol): New function which fixes up a
1068 protocol's class pointer, registers it with the runtime, register
1069 all protocol selectors and registers associated protocols too.
1070 (objc_init_statics): Detect if we are initializing protocols, and
1071 if so, use __objc_init_protocol instead of only fixing up the
1073 (__objc_init_protocls): Use __objc_init_protocol.
1074 * objc-private/module-abi-8.h: Updated comments.
1075 * objc-private/runtime.h
1076 (__objc_register_selectors_from_description_list): New.
1077 * selector.c (__objc_register_selectors_from_description_list):
1078 New. (struct objc_method_description_list): Declare.
1079 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
1080 when accessing the name of a method, which is now correctly a SEL.
1081 ([-descriptionForClassMethod:]): Same change.
1082 * protocols.c (protocol_getMethodDescription): Same change.
1083 * objc/runtime.h: Updated comments.
1084 (sel_registerTypedName): Fixed typo in function name.
1086 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1089 * init.c (objc_init_statics): Do not skip the initialization of a
1090 statics list if the first object has already been initialized; in
1091 the case of Protocols, while the first one may have been
1092 initialized, some others may not have been initialized yet.
1094 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1096 * Makefile.in (OBJC_DEPRECATED_H): Added
1097 objc_get_uninstalled_dtable, objc_object_alloc.h and
1098 struct_objc_static_instances.h.
1100 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1102 * encoding.c (method_copyReturnType): New.
1103 (method_copyArgumentType): New.
1104 (method_getReturnType): New.
1105 (method_getArgumentType): New.
1106 * methods.c (method_getDescription): New.
1107 * objc/runtime.h (method_copyReturnType): New.
1108 (method_copyArgumentType): New.
1109 (method_getReturnType): New.
1110 (method_getArgumentType): New.
1111 (method_getDescription): New.
1113 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1115 * encoding.c: Tidied up comments.
1116 (objc_skip_variable_name): New static inline function.
1117 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
1118 the same code over and over.
1119 (objc_alignof_type): Same.
1120 (objc_aligned_size): Same.
1121 (objc_promoted_size): Same.
1122 (objc_skip_typespec): Same.
1123 (objc_layout_structure_next_member): Same.
1124 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
1125 historical bug where objc_skip_offset would skip one byte even if
1126 there is no offset: check that the first offset digit is actually
1127 a digit before skipping it.
1128 (objc_skip_type_qualifiers): Mark as inline.
1129 (objc_skip_typespec): Mark as inline.
1131 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1133 * Makefile.in (C_SOURCE_FILES): Added methods.c.
1134 * encoding.c (method_getNumberOfArguments): New.
1135 (method_get_number_of_arguments): Call
1136 method_getNumberOfArguments.
1137 * ivars.c (ivar_getName): Check for NULL variable argument.
1138 (ivar_getOffset): Check for NULL variable argument.
1139 (ivar_getTypeEncoding): Check for NULL variable argument.
1140 (class_copyIvarList): New.
1142 * protocols.c (class_copyProtocolList): Check for Nil class_
1144 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1145 'struct objc_method_list *' instead of MethodList_t.
1146 (class_getMethodImplementation): New.
1147 (class_respondsToSelector): New.
1148 (class_getInstanceMethod): New.
1149 (class_getClassMethod): New.
1150 * objc/runtime.h: Updated comments.
1151 (class_copyIvarList): New.
1152 (class_getInstanceMethod): New.
1153 (class_getClassMethod): New.
1154 (class_getMethodImplementation): New.
1155 (class_respondsToSelector): New.
1156 (method_getName): New.
1157 (method_getImplementation): New.
1158 (method_getTypeEncoding): New.
1159 (class_copyMethodList): New.
1160 (method_getNumberOfArguments): New.
1162 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1164 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1165 instead of objc/objc-api.h.
1166 (objc_get_unknown_class_handler): Do not define.
1167 (class_isMetaClass): New.
1168 (class_getSuperclass): New.
1169 (class_getVersion): New.
1170 (class_setVersion): New.
1171 (class_getInstanceSize): New.
1172 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1173 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1174 objc_get_super_class.
1175 (get_ttype_entry): Use objc_getRequiredClass instead of
1177 * ivars.c (class_getClassVariable): New.
1178 * objects.c: Include objc/runtime.h, objc/thr.h and
1179 objc-private/module-abi-8.h instead of objc/objc-api.h
1180 * objc/runtime.h (class_getClassVariable): New.
1181 (class_isMetaClass): New.
1182 (class_getSuperclass): New.
1183 (class_getVersion): New.
1184 (class_setVersion): New.
1185 (class_getInstanceSize): New.
1186 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1189 (__CLS_ISINFO): Same.
1190 (__CLS_SETINFO): Same.
1192 (CLS_ISCLASS): Same.
1193 (CLS_ISRESOLV): Same.
1194 (CLS_SETRESOLV): Same.
1195 (CLS_ISINITIALIZED): Same.
1196 (CLS_SETINITIALIZED): Same.
1197 (CLS_GETNUMBER): Same.
1198 (CLS_SETNUMBER): Same.
1200 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1202 * archive.c: Do not include objc/objc.h.
1203 * class.c: Do not include objc/objc.h.
1204 * encoding.c: Include objc/runtime.h, ctype.h and
1205 objc-private/module-abi-8.h instead of objc/objc-api.h and
1207 * error.c: Do not include objc/objc.h.
1208 * gc.c: Include tconfig.h and objc/encoding.h only if
1210 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1211 objc/objc-api.h. Do not include objc/objc.h.
1212 * init.c: Do not include objc/objc.h.
1213 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1214 objc/thr.h instead of objc/objc-api.h. Do not include
1216 * linking.m: Tidied comment.
1217 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1218 Do not include objc/objc.h.
1219 * objects.c: Do not include objc/objc.h.
1220 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1221 * protocols.c: Do not include objc/objc.h.
1222 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1223 not include objc/objc.h.
1224 * selector.c: Do not include objc/objc.h.
1225 * sendmsg.c: Do not include objc/objc.h.
1226 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1227 Do not include objc/objc.h.
1228 * objc/objc-decls.h: Reindented code.
1229 * objc/runtime.h Include objc-decls.h. Updated comments.
1231 (objc_atomic_malloc): New.
1233 (objc_realloc): New.
1235 * objc-private/runtime.h: Updated comments.
1237 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1239 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1240 * objc-private/protocols.h: New.
1242 * init.c: Include objc-private/protocols.h.
1243 (__objc_exec_class): Call __objc_protocols_init on startup.
1244 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1245 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1246 of MethodList_t, and (struct objc_method *) instead of Method_t.
1247 * objc/deprecated/struct_objc_class.h: Define
1248 __objc_STRUCT_OBJC_CLASS_defined.
1249 * objc-private/module-abi-8.h (struct
1250 objc_method_description_list): New.
1251 (struct objc_class): Only define if
1252 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1253 * objc/runtime.h (class_getName): New.
1254 (objc_getProtocol): New.
1255 (objc_copyProtocolList): New.
1256 (class_addProtocol): New.
1257 (class_conformsToProtocol): New.
1258 (class_copyProtocolList): New.
1259 (protocol_conformsToProtocol): New.
1260 (protocol_isEqual): New.
1261 (protocol_getName): New.
1262 (protocol_getMethodDescription): New.
1263 (protocol_copyMethodDescriptionList): New.
1264 (protocol_getProperty): New.
1265 (protocol_copyPropertyList): New.
1266 (protocol_copyProtocolList): New.
1267 * class.c (class_getName): New.
1268 * selector.c (sel_isEqual): New.
1270 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1272 * selector.c (sel_getName): Return "<null selector>" for a NULL
1274 (sel_get_name): Return 0 for a NULL argument.
1275 * objc/runtime.h (sel_getName): Updated documentation.
1277 * objc-private/hash.h (class_hash_table): Unused declaration
1279 (module_hash_table): Same.
1280 * objc/deprecated/hash.h: Same changes.
1282 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1284 * class.c (objc_getClassList): New.
1285 (objc_getRequiredClass): New.
1286 (objc_getMetaClass): New.
1287 (objc_lookupClass): New.
1288 (objc_getClass): New.
1289 (__objc_get_unknown_class_handler): New.
1290 (objc_setGetUnknownClassHandler): New.
1291 (objc_get_class): Use __objc_get_unknown_class_handler.
1292 (objc_lookup_class): Call objc_getClass.
1293 * objc/objc-api.h: Updated comment and copyright notice.
1294 * objc/runtime.h: Updated comments.
1295 (objc_getClass): New.
1296 (objc_lookupClass): New.
1297 (objc_getMetaClass): New.
1298 (objc_getRequiredClass): New.
1299 (objc_getClassList): New.
1300 (objc_setGetUnknownClassHandler): New.
1301 (objc_get_unknown_class_handler): New.
1302 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1303 instead of __objc_runtime_INCLUDE_GNU as include guard.
1304 * objc-private/error.h (_objc_abort): Mark as noreturn.
1306 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1308 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1310 * objc/objc.h: Updated comments.
1311 * objc/runtime.h (object_getClass): New.
1312 (object_getClassName): New.
1313 (object_setClass): New.
1314 (class_getInstanceVariable): New.
1315 (object_getIndexedIvars): New.
1316 (object_getInstanceVariable): New.
1317 (object_setInstanceVariable): New.
1318 (object_getIvar): New.
1319 (object_setIvar): New.
1320 (ivar_getName): New.
1321 (ivar_getOffset): New.
1322 (ivar_getTypeEncoding): New.
1323 * objc-private/module-abi-8.h (struct objc_class): Added.
1324 * objects.c (object_getClassName): New.
1325 (object_setClass): New.
1327 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1329 * objc/objc.h: Updated comments.
1330 * objc/objc-api.h: (object_copy): Added one argument; use a
1331 #define to maintain backwards-compatibility. Moved
1332 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1333 objc_get_uninstalled_dtable into
1334 objc/deprecated/objc_get_uninstalled_dtable.h and
1335 objc/deprecated/objc_object_alloc.h. Include these files.
1336 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1337 * objc/deprecated/objc_object_alloc.h: New.
1338 * objc/runtime.h (set_getName): New.
1341 (sel_registerName): New.
1342 (sel_registerTypedName): New.
1344 (class_createInstance): New.
1346 (object_dispose): New.
1347 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1348 building the garbage collection version.
1349 (__objc_object_alloc): Removed.
1350 (__objc_object_copy): Removed.
1351 (__objc_object_dispose): Removed.
1352 (class_createInstance): New from code in class_create_instance.
1353 Cast second argument of GC_malloc_explicitly_typed. Use
1354 objc_calloc. Do not call _objc_object_alloc.
1355 (class_create_instance): Call class_createInstance.
1356 (object_copy): Added extraBytes argument. Do not call
1358 (object_dispose): Do not call _objc_object_dispose.
1359 * memory.c (objc_free): When using garbage collection, mark the
1361 * selector.c (sel_getName): New.
1362 (sel_get_name): Call sel_getName.
1364 (sel_get_type): Call sel_getType.
1365 (sel_registerName): New.
1366 (sel_register_name): Call sel_registerName.
1367 (sel_registerTypedName): New.
1368 (sel_register_typed_name): Call sel_registerTypedName.
1370 (sel_get_uid): Call sel_getUid.
1372 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1374 * objc/objc-api.h: Define Method, Method_t, Category and
1375 Category_t. Prevent including this file at the same time as
1376 objc/runtime.h. Updated comments.
1377 * objc/deprecated/struct_objc_method.h: Do not define Method,
1379 * objc/deprecated/struct_objc_category.h: Do not define Category,
1381 * objc-private/module-abi-8.h: New file containing a copy of all
1382 the structure definitions. Not used yet.
1383 * objc/encoding.h (objc_aligned_size): Removed duplicate
1384 declaration. Updated comments.
1385 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1386 Category, struct objc_method_description, _C_ID and similar,
1387 _C_CONST and similar and _F_CONST and similar. Added
1388 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1389 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1390 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1391 struct objc_struct_layout, objc_layout_structure,
1392 objc_layout_structure_next_member, objc_layout_finish_structure,
1393 objc_layout_structure_get_info. Prevent including this file at
1394 the same time as objc/objc-api.h.
1396 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1398 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1399 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1400 struct_objc_method_list.h, struct_objc_module.h,
1401 struct_objc_protocol_list.h, struct_objc_symtab.h.
1402 * objc/deprecated/struct_objc_category.h: New.
1403 * objc/deprecated/struct_objc_ivar.h: New.
1404 * objc/deprecated/struct_objc_ivar_list.h: New.
1405 * objc/deprecated/struct_objc_method.h: New.
1406 * objc/deprecated/struct_objc_method_list.h: New.
1407 * objc/deprecated/struct_objc_module.h: New.
1408 * objc/deprecated/struct_objc_protocol_list.h: New.
1409 * objc/deprecated/struct_objc_symtab.h: New.
1410 * objc/deprecated/struct_objc_static_instances.h: New.
1411 * objc/objc-api.h: Definitions of deprecated structures moved into
1412 the above header fragment files in objc/deprecated/. Include the
1413 files instead of definition the structures here. Updated
1415 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1416 (objc_set_enumeration_mutation_handler): Renamed to
1417 objc_setEnumerationMutationHandler.
1418 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1419 to objc_setEnumerationMutationHandler.
1420 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1421 objc_setExceptionMatcher.
1422 (objc_set_uncaught_exception_handler): Renamed to
1423 objc_setUncaughtExceptionHandler.
1424 * exception.c: Same changes.
1426 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1428 * objc-sync.c: Include objc-private/common.h.
1430 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1432 * objc-foreach.c: Include objc-private/common.h.
1433 * objc/deprecated/METHOD_NULL.h: New file.
1434 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1435 defining METHOD_NULL here.
1436 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1437 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1439 ([-respondsTo:]): Same change.
1440 * objc/objc-api.h (method_get_imp): Converted it into a normal
1441 function so that we can hide the internals of struct objc_method.
1442 * sendmsg.c (method_get_imp): Implemented.
1444 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1446 * objc/objc-api.h (struct objc_super, Super, Super_t,
1447 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1448 objc_msg_forward2): Declarations moved to objc/message.h. Include
1450 * objc/message.h: Added such declarations; updated comments.
1452 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1454 Implemented fast enumeration for Objective-C.
1455 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1456 (OBJC_H): Added runtime.h
1457 * objc-foreach.c: New file.
1458 * objc/runtime.h: New file.
1460 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
1462 * objc/deprecated/struct_objc_class.h: Add padding
1463 to avoid warning with -Wpadded.
1465 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1467 * encoding.c (objc_sizeof_type): Added support for vector type and
1468 for double long types.
1469 (objc_alignof_type): Same change.
1470 (objc_skip_typespec): Same change.
1471 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1472 instead of '!' since '!' is already used for _C_VECTOR.
1473 * objc/objc-api.h (_C_LNG_DBL): Added.
1475 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1477 * libobjc_entry.c: File removed.
1479 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
1481 * sendmsg.c (objc_msg_lookup): Remove inline.
1482 (objc_get_uninstalled_dtable): Likewise.
1483 * encoding.c (objc_skip_type_qualifiers): Likewise.
1484 (objc_skip_offset): Likewise.
1485 * archive.c (__objc_write_object): Likewise
1486 (__objc_write_class):
1487 (__objc_write_selector):
1489 (objc_read_unsigned_char):
1491 (objc_read_unsigned_short):
1494 (__objc_read_nbyte_uint):
1495 (objc_read_unsigned_int):
1496 (objc_read_unsigned_long):
1497 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1498 (objc_EXPORT): Likewise.
1499 * objc/message.h (objc-decls.h): Add include.
1500 * objc/objc-api.h: Mark API by objc_EXPORT.
1501 * libobjc.def (__objc_responds_to): Removed.
1503 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1505 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1507 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1508 objc/sarray.h replaced with a placeholder including the file from
1509 the deprecated/ directory.
1510 * objc-private/sarray.h: New file (private copy of sarray.h).
1511 * hash.c: Include <assert.h> instead of "assert.h"
1512 * sarray.c: Include <assert.h> instead of "assert.h". Include
1513 objc-private/sarray.h instead of objc/sarray.h.
1514 * selector.c: Include objc-private/sarray.h instead of
1516 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1517 instead of objc/sarray.h.
1518 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1520 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1522 * objc-private/objc-list.h (list_remove_elem): Unused function
1523 removed. (list_nth): Unused function removed. (list_find):
1524 Unused function removed. (list_lenght): Unused function removed.
1526 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1528 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1529 replaced with a placeholder including the file from the
1530 deprecated/ directory.
1531 * objc/objc-api.h: Updated includes.
1532 * objc/typedstream.h: Updated includes.
1533 * objc-private/hash.h: New file (private copy of hash.h).
1534 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1535 objc/objc-list.h replaced with a placeholder including the file
1536 from the deprecated/ directory.
1537 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1538 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1539 instead of objc/hash.h and objc/objc-list.h.
1540 * selector.c: Same change.
1541 * class.c: Added include <string.h>, which used to be implicitly included
1542 when hash.h was included.
1543 * exception.c: Same change.
1544 * objects.c: Same change.
1545 * sarray.c: Same change.
1546 * sendmsg.c: Same change.
1547 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1549 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1551 Implemented objc_sync_enter() and objc_sync_exit(), which are
1552 required by @synchronized() to work.
1553 * objc-sync.c: New file.
1554 * objc/objc-sync.h: New file.
1555 * objc-private/objc-sync.h: New file.
1556 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1557 Objective-C runtime startup.
1558 * Makefile.in: Added objc-sync.c and objc-sync.h.
1559 * configure.ac: Added GCC_CHECK_TLS.
1560 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1561 * configure: Regenerated.
1562 * config.h.in: Regenerated.
1564 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1566 * Makefile.in (%_gc.lo): New pattern rules to build the
1567 garbage-collected version of the library. Removed rules for
1568 specific files that are no longer needed. Standardized all rules.
1569 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1570 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1572 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1574 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1576 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1577 with Garbage Colletion.
1579 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1581 * memory.c: Do not include objc-private/runtime.h.
1583 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1585 * objc/deprecated/objc_malloc.h: New file.
1586 * objc/deprecated/objc_valloc.h: New file.
1587 * objc/objc-api.h: Include the files instead of defining
1588 objc_valloc, _objc_malloc() and similar.
1589 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1591 * memory.c: Removed the extra layer of indirection of _objc_malloc
1593 (objc_calloc): Use GC_malloc in the garbage-collected
1594 implementation as GC_malloc returns memory that is already freed.
1595 (objc_valloc): Deprecated.
1597 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1599 * objc/deprecated/objc_error.h: New file.
1600 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1601 defining objc_error and related.
1602 * error.c: New file. Added _objc_abort function which replaces
1603 objc_error. No change in functionality as they both print an
1605 * misc.c: File removed. Code moved into memory.c and error.c.
1606 * memory.c: New file.
1607 * objc-private/error.h: New file.
1608 * archive.c: Include objc-private/error.h and use _objc_abort
1609 instead of objc_error everywhere.
1610 * class.c: Same change.
1611 * encoding.c: Same change.
1612 * init.c: Same change, and simplified init_check_module_version.
1613 * memory.c: Same change.
1614 * sendmsg.c: Same change.
1615 * thr.c: Same change.
1616 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1617 (OBJ_H): Reordered list.
1618 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1619 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1620 (misc_gc.lo): Rule removed.
1621 (error_gc.lo): Rule added.
1622 (memory_gc.lo): Rule added.
1624 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1626 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1627 to check the API version. Added some comments.
1629 * objc-private/common.h: New file.
1630 * NXConstStr.m: Include objc-private/common.h.
1631 * Object.m: Same change.
1632 * Protocol.m: Same change.
1633 * archive.c: Same change.
1634 * class.c: Same change.
1635 * encoding.c: Same change.
1636 * exception.c: Same change.
1637 * gc.c: Same change.
1638 * hash.c: Same change.
1639 * init.c: Same change.
1640 * libobjc_entry.c: Same change.
1641 * linking.m: Same change.
1642 * misc.c: Same change (and added a comment).
1643 * nil_method.c: Same change.
1644 * objects.c: Same change.
1645 * sarray.c: Same change.
1646 * selector.c: Same change.
1647 * sendmsg.c: Same change.
1648 * thr.c: Same change.
1650 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1652 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1654 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1656 * archive.c: Removed not needed includes.
1657 * class.c: Same change.
1658 * hash.c: Same change.
1659 * misc.c: Same change.
1660 * nil_method.c: Same change.
1661 * objects.c: Same change.
1662 * sarray.c: Same change.
1663 * sendmsg.c: Same change.
1664 * thr.c: Same change.
1666 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1668 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1669 all the objc/*.h files.
1670 * objc-private/runtime.h: New file.
1671 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1672 files) instead of objc/runtime.h.
1673 * class.c: Same change.
1674 * hash.c: Same change.
1675 * init.c: Same change.
1676 * misc.c: Same change.
1677 * nil_method.c: Same change.
1678 * objects.c: Same change.
1679 * sarray.c: Same change.
1680 * selector.c: Same change.
1681 * sendmsg.c: Same change.
1682 * thr.c: Same change.
1684 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1686 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1687 'struct objc_selector' and 'sel_eq' moved here.
1688 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1689 'struct objc_procotol' moved here.
1690 * objc/deprecated/struct_objc_class.h: New file. Definition of
1691 'struct objc_class' moved here.
1692 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1694 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1695 * objc/message.h: New file. Definitions for relval_t, apply_t,
1696 arglist, arglist_t and objc_msg_lookup were moved here.
1697 * objc/objc.h: Include the above files instead of defining the
1698 corresponding structs, types and functions here. Added new opaque
1699 definitions for SEL and Class. Use Class and not 'struct
1700 objc_class *' in the definition of 'struct objc_object'.
1701 Commented all types defined in the file. Removed special
1702 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1704 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1705 objc_unexpected_exception.h.
1706 * objc/objc-api.h: Updated include of
1707 objc-unexpetected-exception.h
1708 * objc/objc-exception.h: Updated comments.
1709 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1710 files. Reindented list of files.
1712 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1714 * objc/objc-api.h (objc_trace): Unused variable removed.
1716 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1718 * objc/deprecated: New directory.
1719 * objc/deprecated/README: New file.
1720 * objc/README: New file.
1721 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1722 objc/typedstream.h replaced with a placeholder including the file
1723 from the deprecated/ directory.
1724 * objc/deprecated/objc-unexpected-exception.h: New file with the
1725 definition of _objc_unexpected_exception.
1726 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1727 instead of defining _objc_unexpected_exception.
1728 * objc/deprecated/Object.h: New file with the deprecated Object
1729 methods in a 'Deprecated' category.
1730 * objc/Object.h Include deprecated/Object.h instead of defining
1731 the deprecated methods.
1732 * Object.m: Moved deprecated methods into 'Deprecated' category.
1733 * objc-private: New directory.
1734 * objc-private/README: New file.
1735 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1736 (install-headers): Create installation directory for
1737 OBJC_DEPRECATED_H headers, and install them.
1739 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1741 * objc/objc-exception.h: Fixed include of objc.h.
1743 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1745 * objc/objc-exception.h: New file.
1746 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1747 (objc_set_exception_matcher): Implemented.
1748 (objc_exception_throw): Use the uncaught exception handler if set.
1749 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1751 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1752 up. Removed segmentation fault when value is 'nil'.
1753 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1755 * Makefile.in (exception.lo, exception_gc.lo): Use
1756 -Wno-deprecated-declarations when compiling.
1757 (OBJC_H): Added objc-exception.h
1759 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1761 * objc/typedstream.h: Deprecate all functions in the file. This
1763 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1764 [-awake]): Documented that these methods are deprecated. Added a
1765 brief description of the Object class and its relationship to the
1767 * Makefile.in: Compile archive.c and Object.m with
1768 -Wno-deprecated-declarations.
1770 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1772 Removed obsolete intermediate threading layer.
1773 * thr.c: Use __gthread_objc_xxx functions directly instead of
1774 __objc_thread_xxx ones.
1775 * objc/thr.h: Removed prototypes of no longer existing
1776 __objc_thread_xxx functions.
1777 * Makefile.in: Removed thr-objc.lo.
1778 * thr-dce.c: File removed.
1779 * thr-decosf1.c: File removed.
1780 * thr-irix.c: File removed.
1781 * thr-mach.c: File removed.
1782 * thr-objc.c: File removed.
1783 * thr-os2.c: File removed.
1784 * thr-posix.c: File removed.
1785 * thr-pthreads.c: File removed.
1786 * thr-rtems.c: File removed.
1787 * thr-single.c: File removed.
1788 * thr-solaris.c: File removed.
1789 * thr-vxworks.c: File removed.
1790 * thr-win32.c: File removed.
1791 * README.threads: File removed.
1792 * THREADS.MACH: File removed.
1795 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1797 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1799 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1801 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1802 Add a comment as to why, update FIXME comments.
1804 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1806 * makefile.dos: Obsolete file removed.
1808 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1810 * aclocal.m4: Regenerate.
1812 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1815 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1816 Cygwin and MinGW hosts.
1817 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1818 (libobjc.dll): Likewise.
1819 * configure: Regenerate.
1821 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1823 * configure: Regenerate.
1825 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1827 * sarray.c (sarray_free): Use old_buckets variable.
1828 * encoding.c (objc_layout_structure_next_member): Remove unused
1829 bfld_type_size variable.
1831 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1833 * configure.ac (AC_PREREQ): Bump to 2.64.
1835 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1837 * aclocal.m4: Regenerate.
1838 * configure: Regenerate.
1839 * config.h.in: Regenerate.
1841 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1843 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1845 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1847 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1849 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1851 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1853 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1855 2009-04-09 Nick Clifton <nickc@redhat.com>
1857 * sendmsg.c: Change copyright header to refer to version 3 of
1858 the GNU General Public License with version 3.1 of the GCC
1859 Runtime Library Exception and to point readers at the COPYING3
1860 and COPYING3.RUNTIME files and the FSF's license web page.
1861 * NXConstStr.m: Likewise.
1862 * Object.m: Likewise.
1863 * Protocol.m: Likewise.
1864 * archive.c: Likewise.
1865 * class.c: Likewise.
1866 * encoding.c: Likewise.
1867 * exception.c: Likewise.
1871 * libobjc_entry.c: Likewise.
1872 * linking.m: Likewise.
1874 * nil_method.c: Likewise.
1875 * objc/NXConstStr.h: Likewise.
1876 * objc/Object.h: Likewise.
1877 * objc/Protocol.h: Likewise.
1878 * objc/encoding.h: Likewise.
1879 * objc/hash.h: Likewise.
1880 * objc/objc-api.h: Likewise.
1881 * objc/objc-decls.h: Likewise.
1882 * objc/objc-list.h: Likewise.
1883 * objc/objc.h: Likewise.
1884 * objc/runtime.h: Likewise.
1885 * objc/sarray.h: Likewise.
1886 * objc/thr.h: Likewise.
1887 * objc/typedstream.h: Likewise.
1888 * objects.c: Likewise.
1889 * sarray.c: Likewise.
1890 * selector.c: Likewise.
1891 * thr-dce.c: Likewise.
1892 * thr-decosf1.c: Likewise.
1893 * thr-irix.c: Likewise.
1894 * thr-mach.c: Likewise.
1895 * thr-objc.c: Likewise.
1896 * thr-os2.c: Likewise.
1897 * thr-posix.c: Likewise.
1898 * thr-pthreads.c: Likewise.
1899 * thr-rtems.c: Likewise.
1900 * thr-single.c: Likewise.
1901 * thr-solaris.c: Likewise.
1902 * thr-vxworks.c: Likewise.
1903 * thr-win32.c: Likewise.
1905 * libobjc.def: Change copyright header to refer to version 3 of
1906 the GNU General Public License and to point readers at the COPYING3
1907 file and the FSF's license web page.
1908 * makefile.dos: Likewise.
1910 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1912 * Makefile.in: Change copyright header to refer to version
1913 3 of the GNU General Public License and to point readers at the
1914 COPYING3 file and the FSF's license web page.
1915 * configure.ac: Likewise.
1917 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1918 David Ayers <ayers@fsfe.org>
1921 * objc/objc-api.h (_objc_unexpected_exception): Declare
1922 new hook. Update copyright dates.
1923 * exception.c (objc_exception_throw): Use hook. Update
1925 * libobjc.def (_objc_unexpected_exception): Export hook.
1926 Update copyright dates.
1928 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1930 * configure: Regenerate.
1932 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1934 * configure: Regenerate.
1936 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1938 * Object.m (errno): Replaced by errno.h include.
1939 (compare): Cast self to id to prevent warning on comparison.
1940 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1942 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1943 * thr-win32.c (__objc_thread_detach): Remove type warning.
1944 (__objc_thread_id): Likewise.
1945 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1948 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1949 Steve Ellcey <sje@cup.hp.com>
1951 * configure: Regenerate for new libtool.
1952 * config.h.in: Regenerate for new libtool.
1954 2008-07-18 Matthias Klose <doko@ubuntu.com>
1956 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1958 2008-07-18 Matthias Klose <doko@ubuntu.com>
1960 * Makefile.in: Include ../boehm-gc/threads.mk.
1961 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1963 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1965 * Makefile.in (install-info): New stub target.
1967 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1969 * configure: Regenerate.
1971 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1973 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1974 if HAVE_GETIPINFO is not defined.
1976 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1978 * Object.m (compare): Add type id.
1979 * objc/Object.h: Likewise.
1980 * archive.c (objc_read_class): Use size_t to extend version to be
1981 size of pointer scalar width.
1982 * sendmsg.c (rtx): Undefine it before redefinition.
1983 (__objc_print_dtable_stats): Cast arguments to long as intended.
1985 2008-05-30 Julian Brown <julian@codesourcery.com>
1987 * exception.c (__objc_exception_class): Initialise as constant
1988 array for ARM EABI. Change macro to static const for non-ARM EABI.
1989 (ObjcException): Add note about structure layout. Remove landingPad
1990 and handlerSwitchValue for ARM EABI.
1991 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1993 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1994 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1995 ARM EABI unwinding support.
1996 (objc_exception_throw): Use memcpy to initialise exception class.
1998 2008-05-25 Alan Modra <amodra@bigpond.net.au>
2000 * encoding.c (strip_array_types): Rename from get_inner_array_type.
2001 (rs6000_special_round_type_align): Update.
2003 2008-05-09 Julian Brown <julian@codesourcery.com>
2005 * Makefile.in (LTLDFLAGS): New.
2006 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
2008 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2011 * aclocal.m4: Regenerate.
2012 * configure: Regenerate.
2014 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2016 * configure: Regenerate.
2018 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
2020 * configure.ac: Don't run config-ml.in directly.
2021 (multilib_arg): New.
2022 * configure: Regenerated.
2024 2007-08-06 Andrew Pinski <pinskia@gmail.com>
2027 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
2028 of _Unwind_Word for variables which are used in
2029 read_uleb128/read_sleb128.
2030 (PERSONALITY_FUNCTION): Likewise.
2032 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2034 * aclocal.m4: Regenerated.
2036 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2038 * configure.ac: Fix a typo in *-*-darwin clause.
2039 * configure: Regenerated.
2041 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
2043 * configure.ac: Fix a typo.
2044 * configure: Regenerated.
2046 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2048 * configure: Regenerate.
2050 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
2052 * Makefile.in: Replace all uses of libext with libsuffix.
2053 * configure.ac: Likewise.
2054 * configure: Regenerate.
2057 * Makefile.in: Remove all uses of $(libext).
2059 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
2061 * Makefile.in: Remove all uses of $(libext).
2063 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2065 * configure: Regenerate.
2066 * aclocal.m4: Regenerate.
2068 2007-04-21 Andrew Ruder <andy@aeruder.net>
2070 * sendmsg.c (__objc_get_forward_imp): Call
2071 __objc_msg_forward2 for real.
2073 2007-04-09 Andrew Ruder <andy@aeruder.net>
2075 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
2076 external libraries to provide a function that returns the real
2077 forwarding function based on both the selector and the receiver.
2078 * objc/objc-api.h: Define __objc_msg_forward2.
2080 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2082 * Makefile.in: Add dummy install-pdf target.
2084 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2086 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
2089 2006-10-31 Geoffrey Keating <geoffk@apple.com>
2091 * encoding.c (darwin_rs6000_special_round_type_align): New.
2093 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2095 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
2096 * configure.ac: Use multi.m4 from aclocal rather than custom
2097 code. Use multi_basedir instead of toplevel_srcdir.
2098 * aclocal.m4: Regenerate.
2099 * configure: Regenerate.
2101 2006-10-10 Brooks Moses <bmoses@stanford.edu>
2103 * Makefile.in: Added empty "pdf" target.
2105 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
2107 * configure: Regenerate.
2109 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2111 * Makefile.in: Add install-html target. Add install-html to .PHONY
2113 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2116 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2118 2006-01-24 David Ayers <d.ayers@inode.at>
2121 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2122 and insure the new strings are '\0' termintated.
2124 2006-01-24 David Ayers <d.ayers@inode.at>
2127 * configure.ac: Add include directives for --enable-objc-gc.
2128 * Makefile.in: Ditto.
2129 * configure: Regenerate.
2131 * gc.c (__objc_class_structure_encoding): Increment the used bytes
2132 instead of the local pointer to them.
2134 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2137 * objc/objc-api.c (_C_COMPLEX): New define.
2138 * encoding.c (objc_sizeof_type): Handle _C_Complex.
2139 (objc_alignof_type): Likewise.
2140 (objc_skip_typespec): Likewise.
2142 2005-12-15 David Ayers <d.ayers@inode.at>
2145 * README (+load,+initialize): Fix documentation to reflect
2146 intended and implemented semantics for +load and +initialize.
2148 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2150 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2152 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2153 (rs6000_special_round_type_align): Update for the ABI fix.
2154 (objc_layout_finish_structure): Correct the encoding which is passed to
2157 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2160 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2161 but use the struct layout functions.
2162 (objc_alignof_type): Likewise.
2163 (objc_layout_structure): Handle _C_UNION_B also.
2164 (objc_layout_structure_next_member): Likewise.
2165 (objc_layout_finish_structure): Likewise.
2167 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2170 * objc/objc-api.h (_C_BOOL): New define.
2171 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2172 (objc_alignof_type): Likewise.
2173 (objc_skip_typespec): Likewise.
2175 2005-11-20 David Ayers <d.ayers@inode.at>
2178 * objc/hash.h: Remove deprecated hash API.
2179 * hash_compat.c: Remove.
2180 * Makefile.in: Remove reference to hash_compat.c.
2182 * configure.ac (VERSION): Bump library version to 2:0:0.
2183 * configure: Regenerate.
2185 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
2188 * thr-objc.c (_XOPEN_SOURCE): Define.
2190 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
2193 * objc/objc-api.h (struct objc_ivar): Move definition to
2196 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
2197 Rasmus Hahn <rassahah@neofonie.de>
2200 * archive.c (objc_write_type): Correct the element offset.
2201 (objc_read_type): Likewise.
2203 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2205 * All files: Update FSF address.
2207 2005-08-13 Marcin Koziej <creep@desk.pl>
2208 Andrew Pinski <pinskia@physics.uc.edu>
2211 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2213 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2215 * Makefile.in (extra_ldflags_libobjc): New.
2216 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2217 (libobjc_gc$(libext).la): Likewise.
2218 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2219 "-Wl,-single_module".
2220 * configure: Regenerate.
2221 * linking.m (_objcInit): Remove.
2223 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2226 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2228 2005-06-08 David Ayers <d.ayers@inode.at>
2230 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2231 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2232 objc/runtime.h, objc/sarray.h, objc/thr.h,
2233 objc/typedstream.h: Do not include Objective-C headers as
2236 2005-06-07 David Ayers <d.ayers@inode.at>
2238 * archive.c, init.c, selector.c: Include hash.h.
2239 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2240 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2241 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2242 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2243 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2244 Include Objective-C headers with quotes and objc/ directory
2247 2005-05-19 Richard Henderson <rth@redhat.com>
2249 * exception.c: Revert last change.
2251 2005-05-19 David Ayers <d.ayers@inode.at>
2253 * exception.c: Include tsystem.h for unwind.h.
2255 2005-05-09 Mike Stump <mrs@apple.com>
2257 * configure: Regenerate.
2259 2005-04-12 Mike Stump <mrs@apple.com>
2261 * configure: Regenerate.
2263 2005-03-21 Zack Weinberg <zack@codesourcery.com>
2265 * Makefile.in: Set gcc_version here.
2266 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2267 in definition of toolexeclibdir so that $(gcc_version) is expanded
2269 * aclocal.m4, configure: Regenerate.
2271 2005-03-03 David Ayers <d.ayers@inode.at>
2273 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2274 version reference. Correct typo.
2276 2005-03-02 David Ayers <d.ayers@inode.at>
2279 * Makefile.in (OBJS): Add hash_compat.lo.
2280 (OBJS_GC): Add hash_compat_gc.lo.
2281 (hash_compat_gc.lo): New target and rule.
2282 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2283 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2284 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2285 with objc_. Add deprecated non prefixed inlined versions.
2286 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2288 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2289 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2291 * hash_compat.c: New file.
2292 * archive.c: Update callers.
2294 * selector.c: Likewise.
2295 * libobjc.def: Add objc_ versions of hash functions.
2297 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2300 * Makefile.in (GTHREAD_FLAGS): Remove.
2301 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2302 * thr-objc.c: Include config.h.
2303 * configure.ac: Instead of looking at GCC's makefile, figure out if
2304 GTHREAD_FLAGS should be defined by looking at the `thread model'
2306 * configure: Regenerate.
2307 * config.h.in: Regenerate.
2309 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2312 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2313 (Determine CFLAGS for gthread): Use $host_subdir.
2314 * configure: Regenerate.
2315 * Makefile.in (host_subdir): New.
2318 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2321 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2323 Include limits.h and stdlib.h.
2324 Define BITS_PER_WORD.
2326 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
2328 * selector.c (__objc_init_selector_tables): Add missing void to
2331 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
2333 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2334 * configure, aclocal.m4: Regenerate.
2336 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2338 * configure: Regenerate for libtool change.
2340 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2342 * configure: Regenerate for libtool reversion.
2344 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2346 * configure: Regenerate for libtool change.
2348 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2350 * aclocal.m4, config.h.in: Regenerate.
2352 2004-10-08 Mike Stump <mrs@apple.com>
2353 Andrew Pinski <pinskia@physics.uc.edu>
2355 * aclocal.m4: Rename to ...
2356 * acinclude.m4: here and also use m4_include instead of sinclude.
2357 * aclocal.m4: Regenerate.
2358 * configure: Regenerate.
2359 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2360 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2362 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2364 * archive.c: Fix all the warnings about passing unsigned char*
2365 to char* and the other way too.
2367 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2370 * exception.c: Include config.h
2371 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2373 * configure.ac: Find out what exception handling code we use.
2374 * configure: Regenerate.
2375 * config.h.in: New file, regenerate.
2377 2004-09-16 Andrew Pinski <apinski@apple.com>
2379 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2381 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2383 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2384 ACX_NONCANONICAL_TARGET.
2385 * configure: Regenerate.
2387 2004-08-13 Ziemowit Laski <zlaski@apple.com>
2389 * objc/sarray.h: Hoist include of assert.h near the top of file,
2390 and mark the remainder of the file 'extern "C"'.
2392 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2394 * objc/Object.h: Move includes out of extern "C" blocks.
2395 * objc/encoding.h: Likewise.
2396 * objc/hash.h: Likewise.
2397 * objc/objc-api.h: Likewise.
2398 * objc/runtime.h: Likewise.
2399 * objc/sarray.h: Likewise.
2400 * objc/typedstream.h: Likewise.
2402 2004-08-12 Ziemowit Laski <zlaski@apple.com>
2404 * objc/NXConstStr.h: Update copyright date; bracket with
2405 'extern "C"' for C++ use; make include syntax consistent
2406 by using <...> instead of "..."; hoist <objc/...> includes
2407 above the 'extern "C"' block.
2408 * objc/Object.h: Likewise.
2409 * objc/Protocol.h: Likewise.
2410 * objc/encoding.h: Likewise.
2411 * objc/hash.h: Likewise.
2412 * objc/runtime.h: Likewise.
2413 * objc/sarray.h: Likewise.
2414 * objc/thr.h: Likewise.
2415 * objc/typedstream.h: Likewise.
2416 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2417 (objc_static_instances): For C++ case, do away with
2419 (objc_method): Hoist definition to file scope.
2420 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2421 class_get_instance_method, class_create_instance,
2422 class_get_class_name, class_get_instance_size,
2423 class_get_meta_class, class_get_super_class, class_get_version,
2424 class_is_class, class_is_meta_class, class_set_version,
2425 class_get_gc_object_type, class_ivar_set_gcinvisible,
2426 get_imp): Rename 'class' parameter to '_class'.
2427 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2428 * objc/objc.h: Update copyright date.
2429 (arglist_t): Provide a union tag.
2431 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2433 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2434 but instead use the attribute noreturn.
2436 2004-06-28 Zack Weinberg <zack@codesourcery.com>
2438 * encoding.c: Rename target_flags with a #define to avoid
2439 conflict with a prior declaration.
2441 2004-06-24 Andrew Pinski <apinski@apple.com>
2443 * objc/encoding.h: Wrap the functions with extern "C" for C++
2445 * objc/hash.h: Likewise.
2446 * objc/objc-api.h: Likewise.
2447 * objc/objc-list.h: Likewise.
2448 * objc/runtime.h: Likewise.
2449 * objc/sarray.h: Likewise.
2450 * objc/thr.h: Likewise.
2451 * objc/typedstream.h: Likewise.
2454 2004-06-21 Nick Clifton <nickc@redhat.com>
2456 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2459 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
2461 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2462 (exception_gc.lo): New.
2463 (OBJS_GC): Add exception_gc.lo.
2465 2004-06-17 Richard Henderson <rth@redhat.com>
2467 * exception.c: New file.
2468 * Makefile.in (exception.lo): New.
2471 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2473 * linking.m (_objcInit): New empty function
2476 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2478 * configure.ac: Support --enable-shared=libobjc.
2479 * configure: Regenerate.
2482 * configure.ac: Do not disable shared by default.
2483 * configure: Regenerate.
2485 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2487 * Protocol.m ([-isEqual:]): Small optimizations returning
2488 immediately if the argument is equal to self, and accessing
2489 the argument's name directly if it's a protocol.
2491 2004-06-03 David Ayers <d.ayers@inode.at>
2493 * Protocol.m ([-isEqual:]): Test the class of the argument.
2495 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2497 * configure.ac (includedir): Rename to ...
2499 * Makefile.in: s/includedir/includedirname/.
2502 * configure.ac (includedir): Set to "include"
2504 (libext) Set to empty except for Darwin.
2505 * configure: Regenerate
2506 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2507 s/include/$(includedir)/g.
2509 2004-05-25 Daniel Jacobowitz <drow@false.org>
2511 * Makefile.in: Add .NOEXPORT.
2513 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2515 Merge from the libobjc-branch
2516 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2518 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2520 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2522 * Makefile.in (OBJC_H): Add objc-deps.h.
2524 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2526 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2527 ([-hash], [-isEqual:]): New methods.
2529 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2531 * sarray.c (sarray_free): Add a better comment.
2533 2004-01-27 Adam Fedor <fedor@gnu.org>
2535 * hash.c (hash_add): Cast cachep to int.
2536 * selector.c (__sel_register_typed_name): Cast
2537 soffset_decode to int.
2539 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2541 * selector.c: Rename register_selectors_from_list to
2542 __objc_register_selectors_from_list. Update caller.
2543 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2544 while registering selectors. Use __sel_register_typed_name instead
2545 of sel_register_typed_name. Check for NULL method_name:s.
2546 (pool_alloc_selector): New function.
2547 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2548 selector structures.
2549 * sendmsg.c (class_add_method_list): Use
2550 __objc_register_selectors_from_list.
2551 * objc/runtime.h: Add __objc_register_selectors_from_list.
2553 2004-01-25 Adam Fedor <fedor@gnu.org>
2554 Nicola Pero <n.pero@mi.flashnet.it>
2555 Andrew Pinski <pinskia@physics.uc.edu>
2557 * objc/objc-decls.h: New file.
2558 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2559 (_objc_load_callback): Likewise.
2560 (_objc_object_alloc): Likewise.
2561 (_objc_object_copy): Likewise.
2562 (_objc_object_dispose): Likewise.
2564 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2566 * archive.c: s/__inline__/inline
2567 * sendmsg.c: Likewise.
2569 * encoding.c: Remove FIXME about the warning
2570 about unused variable.
2571 * sendmsg.c: Add a FIXME comment saying that
2572 this should be using libffi.
2574 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2577 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2579 * archive.c (objc_read_class): Initialize class_name.
2580 (objc_read_selector): Initialize selector_name.
2582 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2584 * Makefile.in (toolexecdir): Remove trailing space.
2586 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2589 * configure.ac: De-precious CC so multilibs work.
2590 * configure: Regenerate.
2592 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2594 * configure.ac: Restore toolexecdir.
2595 * Makefile.in: Restore toolexecdir.
2596 * configure: Regenerate.
2598 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2600 * configure.ac: Remove (unused) glibcpp_prefixdir.
2601 * configure: Regenerate.
2603 * configure.in: Rename to configure.ac.
2604 * Makefile.in: Update to match.
2606 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2607 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2608 * configure.in: Remove glibcpp_toolexecdir (unused).
2609 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2610 config.h or stamp-h (unused). Move one comment to the right place.
2611 * configure: Regenerate.
2612 * config.h.in: Remove (unused).
2614 * config.h.in: Regenerate with autoheader.
2616 * Makefile.in: Remove (unused) gcc_version_trigger.
2617 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2618 gcc_version_trigger.
2619 * configure: Regenerate.
2621 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2622 Sort file into sections. Remove dnl where appropriate. Fix
2624 * configure: Regenerate.
2626 * configure.in: Replace old AC_PROG_CC hack with new one.
2627 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2628 are no subdirectory output files, so this is fine). Change prereq
2630 * aclocal.m4: Include ../config/no-executables.m4.
2631 * configure: Regenerate with autoconf 2.59.
2633 * configure.in: Improve comments on gthread_cflags. Improve m4
2634 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2635 * configure: Regenerate.
2637 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2638 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2639 redundant checks for values of RANLIB, AR, INSTALL.
2640 * configure: Regenerate.
2642 * configure.in: Clean up handling of
2643 --enable-version-specific-runtime-libs and related variables;
2644 replace 'if test' with 'case' where reasonable. Fix comments.
2645 Remove useless libstdcxx_interface.
2646 * configure: Regenerate.
2648 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2649 Replace uses of target_alias with target_noncanonical.
2650 * aclocal.m4: Include ../config/acx.m4.
2651 * configure: Regenerate.
2652 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2653 Fix copyright statement.
2655 * configure.in: Hand-inline bulky, confusing macros from
2656 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2657 Update copyright notice. Remove stuff for automake, which isn't
2658 used in this directory. Remove emacs local variables.
2659 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2660 * configure: Regenerate.
2662 2004-03-16 Manfred Hollstein <mh@suse.com>
2664 * Makefile.in, configure.in, configure: Update copyright years.
2666 2004-03-15 Manfred Hollstein <mh@suse.com>
2668 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2669 definition from configure.in.
2670 * configure.in (PACKAGE): Add definition.
2671 (VERSION): Add definition; substitute it in output files.
2672 * configure: Re-generate.
2674 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2676 * objc/hash.h (hash_string, compare_strings):
2677 Add type-casts to make Objective-C++ happy.
2678 * objc/typedstream.h (objc_get_stream_class_version):
2679 Rename parameter from 'class' to 'class_name' to make
2680 Objective-C++ happy.
2682 2004-03-01 Michael Matz <matz@suse.de>
2684 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2686 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2688 * objc/objc-api.h (objc_super): The 'class' field shall
2689 be named 'super_class' #ifdef __cplusplus.
2691 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2694 * encoding.c (rs6000_special_round_type_align): Define.
2696 2004-01-14 Adam Fedor <fedor@gnu.org>
2699 * selector.c (__objc_register_instance_methods_to_class): Free
2700 new_list if not used.
2702 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2705 * sarray.c (sarray_free): Free array->is_copy_of latter.
2707 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2710 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2711 instance_methods if it's NULL.
2712 (descriptionForClassMethod): Likewise for class_methods.
2714 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2716 * Makefile.in (runtime-info.h): Remove -Wp.
2718 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2720 * Makefile.in (CC1OBJ): Remove.
2721 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2723 Use .m extension for temporary file.
2724 Remove assembler temp file.
2726 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2728 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2730 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2732 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2734 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2736 * configure: Regenerate.
2738 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2740 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2741 (libdir)/gcc-lib/ when installing.
2742 * configure: Regenerate.
2744 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2747 * sendmsg.c (get_imp): Fixed rare threading problem.
2748 (__objc_responds_to): Similar fixes.
2749 (objc_msg_lookup): Similar fixes.
2750 (__objc_init_install_dtable): Lock the runtime before checking if the
2753 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2755 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2756 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2757 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2758 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2759 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2760 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2761 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2762 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2763 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2764 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2765 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2767 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2768 Nicola Pero <n.pero@mi.flashnet.it>
2771 * init.c (class_superclass_of_class): New function.
2772 (create_tree_of_subclasses_inherited_from): Use it.
2773 (__objc_tree_insert_class): Likewise.
2774 (class_is_subclass_of_class): Likewise.
2776 2003-04-11 David Chad <davidc@freebsd.org>
2777 Loren J. Rittle <ljrittle@acm.org>
2780 * objc/hash.h (hash_string): Constify correctly.
2781 (compare_ptrs): Use direct compare.
2782 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2783 * objc/sarray.h: Global rename index to indx to avoid shadow.
2785 2003-03-12 Andreas Schwab <schwab@suse.de>
2787 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2788 glibcpp_toolexeclibdir.
2789 * configure: Rebuilt.
2791 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2793 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2795 * configure: Rebuilt.
2797 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2799 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2800 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2801 version_specific_libs is enabled.
2802 * configure: Rebuilt.
2804 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2806 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2807 (install-libs, install-headers): Prepend $(DESTDIR) to
2808 destination paths in all (un)installation commands.
2810 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2812 * thr-objc.c: Include coretypes.h and tm.h.
2814 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2816 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2818 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2820 * configure.in: Remove skip-this-dir support.
2821 * configure: Regenerate.
2823 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2825 * Makefile.in (all): Fix multilib parallel build.
2827 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2829 * sendmsg.c (nil_method): Declare not to take a variable number of
2831 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2832 (objc_msg_lookup_super): The same.
2834 2002-09-10 Jan Hubicka <jh@suse.cz>
2836 * nil_method.c (nil_method): No longer defined with variable
2839 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2841 * objc/encoding.h: Fix formatting.
2842 * objc/hash.h: Likewise.
2843 * objc/objc-api.h: Likewise.
2844 * objc/runtime.h: Likewise.
2845 * objc/thr.h: Likewise.
2846 * archive.c: Likewise.
2847 * class.c: Likewise.
2848 * encoding.c: Likewise.
2853 * nil_method.c: Likewise.
2854 * objects.c: Likewise.
2855 * sarray.c: Likewise.
2856 * selector.c: Likewise.
2857 * sendmsg.c: Likewise.
2858 * thr-mach.c: Likewise.
2861 2002-06-25 DJ Delorie <dj@redhat.com>
2863 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2864 GLIBCPP_TOPREL_CONFIGURE.
2865 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2866 * configure: Regenerate.
2868 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2870 * Object.m (forward, read, write): Fix unused parameter warnings.
2871 * encoding.c: Include <stdlib.h>.
2872 (target_flags): Mark with attribute unused.
2874 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2875 (__objc_generate_gc_type_description): Prototype.
2876 * selector.c (__objc_selector_max_index): Change to unsigned int.
2878 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2880 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2881 we always have a return value: if __objc_msg_forward does not
2882 supply a forwarding implementation, return the default
2883 __builtin_apply based one.
2885 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2887 * Object.m: Fix signed/unsigned warning.
2888 * Protocol.m: Likewise.
2889 * archive.c: Always include stdlib.h.
2890 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2891 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2892 Fix signed/unsigned warning.
2893 (objc_write_type, objc_read_type, objc_write_types,
2894 objc_read_types): Ensure ctype 8-bit safety.
2895 (__objc_no_write, __objc_no_read): Mark unused parameters.
2896 * class.c (class_table_setup): Specify void arg.
2897 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2898 objc_skip_typespec, objc_skip_offset,
2899 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2900 (objc_layout_structure_next_member): Ensure variables are
2902 * gc.c (__objc_generate_gc_type_description,
2903 class_ivar_set_gcinvisible): Mark unused parameters.
2904 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2906 (__objc_init_protocols) Fix signed/unsigned warning.
2907 * nil_method.c (nil_method): Mark unused parameters.
2908 * thr.h (objc_thread_callback): Specify void arg.
2909 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2910 signed/unsigned warning.
2911 (sarray_free): Fix formatting.
2912 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2913 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2915 2002-06-09 Andreas Jaeger <aj@suse.de>
2917 * encoding.c (objc_layout_structure_next_member): Remove unused
2920 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2922 * Makefile.in (SHELL): Set to @SHELL@.
2924 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2926 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2928 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2929 * configure: Regenerate.
2931 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2933 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2934 script entry, and set LD to it when configuring multilibs.
2935 * configure: Rebuilt.
2937 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2939 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2941 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2944 * objc/objc-api.h (struct objc_protocol_list): Change type of
2945 member count from int to size_t.
2947 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2950 * aclocal.m4: Replace with version copied from libstdc++-v3.
2951 * configure.in: Update for changes to aclocal and Makefile.
2952 * configure: Regenerate.
2953 * Makefile.in: Correct install of multilibs and shared libs, use
2954 INSTALL_DATA for include files.
2956 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2958 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2959 categories - when an unclaimed category was found, the loop was
2960 doing two steps forward instead of one, so that in certain cases
2961 it was failing to properly load all the categories. (Reported
2962 with fix by Alexander Malmberg <alexander@malmberg.org>).
2964 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2966 * encoding.c: Add target_flags.
2968 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2970 * objc/objc-api.h (_C_VECTOR): New.
2972 * encoding.c (VECTOR_TYPE): New.
2974 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2976 * class.c: Rewritten the class table to use optimized, lock-free
2977 lookup. This more than doubles the speed of class method
2978 invocations. (class_table_setup), (class_table_insert),
2979 (class_table_replace), (class_table_get_safe),
2980 (class_table_next), (class_table_print),
2981 (class_table_print_histogram): New functions.
2982 (__objc_init_class_tables): Use class_table_setup.
2983 (__objc_add_class_to_hash): Use class_table_get_safe and
2984 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2985 assert the existence of the table; do not lock the runtime; use
2986 class_table_get_safe. (objc_next_class): Use class_table_next.
2987 (__objc_resolve_class_links): Use class_table_next.
2988 (class_pose_as): Use class_table_replace.
2990 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2992 * gc.c: Removed the DEBUG declaration.
2994 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2996 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2997 rather than through objc_thread_id, to save a function call.
2998 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
3001 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
3003 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
3004 to cast an id to a Class, which can not be done. Make the check
3005 by using CLS_ISMETA on the class pointer instead.
3006 (object_is_meta_class): Similar fix.
3008 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
3010 * configure.in (AC_EXEEXT): Work around in case it expands to
3011 nothing, as in autoconf 2.50.
3012 * acinclude.m4: Likewise.
3013 * configure: Rebuilt.
3015 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
3017 * THREADS: Explain that when we compile libobjc inside GCC, we
3018 always use thr-objc.c as a backend, which uses GCC's thread code.
3020 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
3022 * init.c (__objc_send_message_in_list): When setting a new entry
3023 in __objc_load_methods use the method IMP as key, but check to see
3024 if the method is in the hashtable by looking at the IMP also.
3025 Also ... call the method after adding it to the hashtable rather
3026 than before ... thus preventing an obscure possibility of infinite
3027 recursion if a +load method itself loads a subclass.
3029 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
3031 * init.c (__objc_send_message_in_list): When setting a new entry
3032 in __objc_load_methods use the method name as key, not the method
3033 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
3035 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
3037 * objc-features.texi: Move to ../gcc/objc.texi.
3039 * Makefile.in: Don't generate documentation from
3042 2001-05-01 Mark Mitchell <mark@codesourcery.com>
3044 * fdl.texi: New file.
3045 * objc-features.texi: Simplify.
3046 * Makefile.in: Adjust accordingly.
3048 2001-04-30 Mark Mitchell <mark@codesourcery.com>
3050 * objc-features.texi: Use the GFDL.
3052 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
3054 * encoding.c (REAL_TYPE): Define.
3056 2001-03-19 David Edelsohn <edelsohn@gnu.org>
3058 * encoding.c (TYPE_MODE): Define.
3060 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
3062 * thr.c (objc_thread_add): New function.
3063 (objc_thread_remove): Ditto.
3064 * objc/thr.h: Declare them.
3065 * libobjc.def: Mention them.
3067 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
3069 * objc-features.texi: Document the @compatibility_alias compiler
3070 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
3072 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3074 * sendmsg.c (__objc_forward): Delete strlen() declaration.
3076 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3078 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
3079 we're not interested in the result and they might fail.
3080 * configure: Regenerated.
3082 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3084 * objc-features.texi: Use @email.
3086 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3088 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
3091 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
3093 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
3094 determines the value dynamically.
3096 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
3098 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
3099 libraries to provide a function that returns the real forwarding
3100 function. This can alleviate problems __builtin_apply() and
3101 friends have on various platforms. (Solution suggested by Helge
3104 * objc/objc-api.h: Define __objc_msg_forward.
3106 * sendmsg.c: Define gen_rtx_REG.
3108 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3110 * thr-rtems.c: New file. Stub to compile.
3112 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3114 * configure: Rebuilt with new libtool.m4.
3116 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3118 * configure.in: Create a config.h file. Check for <sched.h>.
3119 * configure: Regenerate.
3121 * config.h.in: Check for <sched.h>.
3123 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
3125 * configure: Regenerate after change to ../libtool.m4.
3127 2000-08-14 Andreas Schwab <schwab@suse.de>
3129 * objc-features.texi (Top): Move @menu at end of node.
3131 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
3133 * objc-features.texi: Move @node Top before @menu.
3135 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3137 * objc-features.texi: Documented the new -fconstant-string-class
3140 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3142 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3143 improve the Posix thread support for Objective-C.
3145 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3147 * aclocal.m4: Replace copy of ../libtool.m4 with
3148 sinclude(../libtool.m4).
3150 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
3152 * configure.in: Added libtool support; build shared libraries
3153 if --enable-shared was passed on command line.
3154 * Makefile.in: Modified most compilation commands to use libtool.
3155 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3156 libtool distribution.
3158 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3160 * sarray.c, Object.m: Removed the explicit prototypes for strlen
3161 and memcpy on 64-bit platforms (Suggested by Rodney Brown
3164 2000-05-12 H.J. Lu (hjl@gnu.org)
3166 * Makefile.in (GTHREAD_FLAGS): New.
3167 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3168 (OBJC_THREAD_FILE): Changed to thr-objc.
3170 * configure.in (GTHREAD_FLAGS): New, check and replace it for
3172 (OBJC_THREAD_FILE): Removed.
3176 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3178 * objc/hash.h: Include string.h.
3180 2000-04-15 David Edelsohn <edelsohn@gnu.org>
3182 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3184 2000-04-12 Jakub Jelinek <jakub@redhat.com>
3186 * Object.m (strlen): Provide prototype on all 64bit platforms,
3188 * sarray.c (memcpy): Likewise.
3189 * encoding.c (objc_layout_finish_structure): Don't use
3190 ROUND_TYPE_ALIGN on sparc.
3192 * encoding.c (objc_layout_structure_next_member): Do the whole
3193 procedure even for the first member, so that we get correct
3196 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3198 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3201 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3203 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3205 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3207 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3209 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3211 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3212 the compiler when building C code.
3214 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3216 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3217 libdir, libsubdir and tooldir.
3219 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3221 * init.c (__objc_force_linking): Make global.
3223 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3225 * configure.in (AC_EXEEXT): Remove call.
3226 (compiler_name): Explicitly check with no extension and .exe
3228 * configure: Regenerate.
3230 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3232 * Makefile.in (CC1OBJ): Define in terms of CC.
3233 (runtime-info.h): Use.
3235 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3237 * objc-features.texi: Updated the URL to Boehm's GC page.
3239 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3241 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3242 the char as being signed (patch from Daniel Jacobowitz
3245 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3247 * configure.in (AC_PREREQ): Update to 2.13.
3248 (AC_EXEEXT): Call to find possible file extension.
3249 (compiler_name): Use.
3250 * configure: Regenerate.
3252 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3254 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3256 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3258 * configure.in (thread_file): Correct and simplify code to find
3260 * configure: Rebuilt.
3262 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3264 * configure.in (compiler_name): Add check to detect if this
3265 language's compiler has been built.
3266 * configure: Regenerate.
3268 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3270 * configure.in: Use AC_PREREQ(2.12.1).
3272 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3274 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3276 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3278 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3280 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3282 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3284 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3286 * objc-features.texi (Top): Changed the email address.
3287 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3289 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3291 * encoding.c: Redefine get_inner_array_type to get the first entry
3294 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3296 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3297 (objc_get_type_qualifiers): Similarly.
3298 * objc/encoding.h (_C_BYREF): Define.
3301 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3303 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3304 works out on 64-bit systems.
3306 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3308 * Makefile.in (INCLUDES): Make it multilib-friendly.
3310 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3312 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3314 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3315 Jeffrey A Law (law@cygnus.com)
3317 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3318 (FLAGS_TO_PASS): Added.
3319 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3321 * archive.c: Change config.h to tconfig.h.
3323 * configure.in: Find gcc's object directory even for multilibs.
3325 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
3327 * configure.in: Escape ^ in grep string.
3328 * configure: Rebuilt.
3330 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3332 * All .h files pushed down into the objc/ subdirectory.
3333 * Makefile.in (copy_headers): Corresponding changes.
3334 * configure.in (AC_INIT): Corresponding changes.
3335 * configure: Rebuilt.
3337 1998-09-30 Ben Elliston <bje@cygnus.com>
3338 Jeff Law <law@cygnus.com>
3340 * Makefile.in: Rewrite.
3342 * configure.in: Likewise.
3344 * configure: Regenerate.
3346 * All .c files. Remove "objc" prefix when including objc header
3347 files. Include tconfig.h, not ../tconfig.h.
3349 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3351 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3352 (get_inner_array_type): Define.
3354 1998-09-21 Ben Elliston <bje@cygnus.com>
3356 * New directory. Moved files from ../gcc/objc.