1 2017-05-02 Release Manager
5 2017-02-07 Richard Biener <rguenther@suse.de>
7 PR tree-optimization/79256
9 * encoding.c (objc_layout_structure_next_member): Adjust
10 ADJUST_FIELD_ALIGN usage.
12 2017-01-18 Matthias Klose <doko@ubuntu.com>
15 * configure.ac: Allow default for --with-target-bdw-gc-include.
16 * configure: Regenerate.
19 * configure.ac: Use the libgc.la file when available.
20 * configure: Regenerate.
22 2017-01-17 Jakub Jelinek <jakub@redhat.com>
25 * configure: Regenerated.
26 * configure.ac: Add GCC_BASE_VER.
27 * Makefile.in (gcc_version): Use @get_gcc_base_ver@ instead of cat to
28 get version from BASE-VER file.
29 * configure: Regenerated.
31 2017-01-01 Jakub Jelinek <jakub@redhat.com>
33 Update copyright years.
35 2016-12-01 Matthias Klose <doko@ubuntu.com>
37 * configure.ac: Don't use pkg-config to check for bdw-gc.
38 * configure: Regenerate.
40 2016-11-30 Matthias Klose <doko@ubuntu.com>
42 * configure.ac: Set BDW_GC_CFLAGS and BDW_GC_LIBS after checking
43 for the existence of the pkg-config modules.
46 2016-11-30 Jakub Jelinek <jakub@redhat.com>
48 * configure.ac (--enable-objc-gc): If not given, default to
50 * configure: Regenerated.
52 2016-11-30 Matthias Klose <doko@ubuntu.com>
54 * configure.ac (--enable-objc-gc): Allow to configure with a
55 system provided boehm-gc.
56 * configure: Regenerate.
57 * Makefile.in (OBJC_BOEHM_GC_LIBS): Get value from configure.
58 * gc.c: Include system bdw-gc headers.
60 * objects.c: Likewise.
62 2016-11-15 Matthias Klose <doko@ubuntu.com>
64 * aclocal.m4: Regenerate.
65 * configure: Likewise.
67 2016-01-04 Jakub Jelinek <jakub@redhat.com>
69 Update copyright years.
71 2015-11-07 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
74 * encoding.c (_darwin_rs6000_special_round_type_align): Use
75 __CHAR_BIT__ instead of BITS_PER_UNIT.
76 (objc_sizeof_type): Likewise.
77 (objc_layout_structure): Likewise.
78 (objc_layout_structure_next_member): Likewise.
79 (objc_layout_finish_structure): Likewise.
80 (objc_layout_structure_get_info): Likewise.
82 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
85 * encoding.c (objc_layout_finish_structure): Remove usage of
88 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
91 * sendmsg.c (tm.h): Remove include.
93 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
96 * sendmsg.c (gen_rtx): Remove macro.
97 (gen_rtx_MEM): Likewise.
98 (gen_rtx_REG): Likewise.
101 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
104 * sendmsg.c: Remove check of STRUCT_VALUE macro.
106 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
108 * configure.ac: Remove manual SJLJ check.
109 * config.h.in: Regenerate.
110 * configure: Likewise.
111 * exception.c: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__.
113 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
115 * aclocal.m4: Regenerated with automake-1.11.6.
117 2015-05-04 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
119 * configure: Regenerate.
121 2015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
123 * acinclude.m4: Include bitfields.m4.
124 * config.h.in: Regenerate.
125 * configure: Likewise.
126 * configure.ac: Invoke gt_BITFIELD_TYPE_MATTERS.
127 * encoding.c: Check HAVE_BITFIELD_TYPE_MATTERS.
129 2015-04-29 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
131 * encoding.c (objc_layout_structure_next_member): Check the value of
132 PCC_BITFIELD_TYPE_MATTERS not if it is defined.
134 2015-02-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137 * thr.c (_XOPEN_SOURCE): Remove.
139 2015-01-27 Matthias Klose <doko@ubuntu.com>
141 * sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp.
143 2015-01-09 Dimitris Papavasiliou <dpapavas@gmail.com>
146 * ivars.c: Add a check for classes without instance
147 variables, which have a NULL ivar list pointer.
149 2015-01-05 Jakub Jelinek <jakub@redhat.com>
151 Update copyright years.
153 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
156 * configure: Regenerated.
158 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
161 * configure: Regenerate.
163 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
165 * thr.c (_XOPEN_SOURCE): Define as 600.
167 2014-07-27 Alan Modra <amodra@gmail.com>
168 Matthias Klose <doko@ubuntu.com>
172 * encoding.c: Define rs6000_special_adjust_field_align_p.
174 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
176 Update copyright years
178 2013-09-20 Alan Modra <amodra@gmail.com>
180 * configure: Regenerate.
182 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
184 * class.c: Fix typos.
185 * encoding.c: Likewise.
187 * objc-private/runtime.h: Likewise.
188 * objc/runtime.h: Likewise.
189 * objc-sync.c: Likewise.
191 2013-07-04 Kai Tietz <ktietz@redhat.com>
193 * exception.c: Add check for SjLj to SEH blocks.
195 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
197 Update copyright years.
199 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
201 * encoding.c (TARGET_VSX): Provide definitions based on the
202 current compilation options, and not based off the target options
204 (TARGET_ALTIVEC): Likewise.
205 (TARGET_64BIT): Likewise.
207 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
209 * configure: Regenerated.
211 2012-07-19 Tristan Gingold <gingold@adacore.com>
212 Richard Henderson <rth@redhat.com>
214 * exception.c (__gnu_objc_personality_seh0): New function.
216 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
218 * configure: Regenerated.
220 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
222 * configure.ac (enable_objc_gc): Remove alpha*-dec-osf* handling.
223 * configure: Regenerate.
225 * thr.c (_XOPEN_SOURCE): Define unconditionally.
227 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
229 * configure: Regenerate.
231 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
233 * Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
234 * configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
235 * configure: Regenerate.
236 * config.h.in: Regenerate.
238 2011-10-17 Paul Brook <paul@codesourcery.com>
239 Matthias Klose <doko@ubuntu.com>
241 * exception.c (parse_lsda_header): hardcode ttype_encoding for older
243 (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
245 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
248 * init.c (__objc_exec_class): Work around a bug in clang's code
249 generation. Clang sets the class->info field to values different
250 from 0x1 or 0x2 (the only allowed values in the traditional GNU
251 Objective-C runtime ABI) to store some additional information, but
252 this breaks backwards compatibility. Wipe out all the bits in the
253 fields other than the first two upon loading a class.
255 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
257 * class.c (objc_lookup_class): Added back for compatibility with
258 clang which seems to emit calls to it.
260 2011-10-08 Richard Frith-Macdonald <rfm@gnu.org>
261 Nicola Pero <nicola.pero@meta-innovation.com>
264 * sendmsg.c (__objc_send_initialize): If a class does not have an
265 +initialize method, search for an +initialize method in the
266 superclass and in the ancestor classes and execute the first one
267 that is found. This makes the GNU runtime behave in the same way
268 as the Apple/NeXT runtime with respect to +initialize methods and
271 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
274 * class.c (__objc_update_classes_with_methods): Iterate over meta
275 classes as well as normal classes when refreshing the method
276 implementations. This fixes replacing class methods.
278 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
280 * class.c (class_getSuperclass): Fixed to work with meta classes
281 still in construction too.
283 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
285 * class.c (class_getSuperclass): Fixed typo in comment.
287 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
290 * class.c (class_getSuperclass): Return the superclass if the
291 class is in construction.
292 * objc/runtime.h (class_getSuperclass): Updated documentation.
294 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
296 * Makefile.in (INCLUDES): Search
297 $(srcdir)/$(MULTISRCTOP)../libgcc.
299 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
301 * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
303 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
305 * configure.ac (VERSION): Bumped to 4:0:0.
306 * configure (VERSION): Likewise.
308 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
310 * objc/README: Updated.
311 * objc-private/selector.h: Updated comments.
313 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
315 * sendmsg.c (class_get_instance_method): Removed.
316 (class_get_class_method): Removed.
317 (objc_get_uninstalled_dtable): Removed.
319 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
321 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
322 * objects.c (class_create_instance): Removed.
323 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
324 * gc.c (__objc_generate_gc_type_description): Use
325 class_getInstanceSize() instead of class_get_instance_size().
326 * selector.c (sel_types_match): Made static.
327 (sel_get_typed_uid): Removed.
328 (sel_get_any_typed_uid): Removed.
329 (sel_get_name): Removed.
330 (sel_get_type): Removed.
331 (sel_register_name): Removed.
332 (sel_register_typed_name): Removed.
333 (sel_get_uid): Removed.
335 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
337 * encoding.c (method_get_number_of_arguments): Removed.
338 (method_get_sizeof_arguments): Removed.
340 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
342 * class.c (objc_next_class): Removed.
343 (class_pose_as): Removed.
345 (class_table_replace): Removed.
346 (objc_lookup_class): Removed.
348 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
350 Removed the Traditional Objective-C runtime public API.
351 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
352 (install-headers): Do not create the objc/deprecated directory and
353 do not install the deprecated headers.
354 (OBJC_H): Removed encoding.h and objc-api.h.
355 * Object.m: Removed all methods with the exception of -class and
356 -isEqual:. Updated includes. ([-class]): Use Modern API.
357 * objc/Object.h: Do not include deprecated/Object.h.
358 * objc/deprecated/Object.h: Removed.
359 * linking.m (__objc_linking): Call [Object class] instead of
361 * Protocol.m: Removed all methods with the exception of -isEqual:.
363 * objc/Protocol.h: Do not include deprecated/Protocol.h.
364 * objc/deprecated/Protocol.h: Removed.
365 * objc/deprecated/struct_objc_symtab.h: Removed.
366 * objc/deprecated/struct_objc_module.h: Removed.
367 * objc/deprecated/struct_objc_ivar.h: Removed.
368 * objc/deprecated/struct_objc_ivar_list.h: Removed.
369 * objc/deprecated/struct_objc_method.h: Removed.
370 * objc/deprecated/struct_objc_method_list.h: Removed.
371 * objc/deprecated/struct_objc_protocol_list.h: Removed.
372 * objc/deprecated/struct_objc_category.h: Removed.
373 * objc/deprecated/MetaClass.h: Removed.
374 * objc/deprecated/objc_msg_sendv.h: Removed.
375 * objc/deprecated/README: Removed.
376 * objc/deprecated/struct_objc_class.h: Removed.
377 * objc/deprecated/struct_objc_protocol.h: Removed.
378 * objc/deprecated/struct_objc_selector.h: Removed.
379 * objc/encoding.h: Removed.
380 * objc/message.h (struct objc_super): Removed the definition for
381 the Traditional Objective-C runtime API.
382 * objc/objc.h: Do not include objc/objc-decls.h.
383 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
384 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
385 and deprecated/objc_msg_sendv.h. Uncommented new definition of
387 * objc/objc-api.h: Removed.
388 * objc/runtime.h: Updated comments. Removed check to detect
389 concurrent usage of Traditional and Modern APIs.
390 * objc-private/module-abi-8.h: Always define struct objc_class and
391 struct objc_protocol. (struct objc_protocol_list): Changed type
392 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
393 (class_get_instance_size): Added.
394 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
395 'struct objc_protocol *' as argument, not a 'Protocol *'.
396 * objc-private/runtime.h: Updated comments.
397 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
398 * class.c: Include objc-private/selector.h.
399 (objc_get_meta_class): Return a Class instead of a MetaClass.
400 * encoding.c (method_get_next_argument): Removed.
401 (method_get_first_argument): Removed.
402 (method_get_nth_argument): Removed.
403 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
404 Include objc-private/module-abi-8.h and ctype.h.
405 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
406 objc_protocl *' as argument, not a 'Protocol *'.
407 (class_addProtocol): Added casts to 'struct objc_protocol *' and
409 (class_copyProtocolList): Likewise.
410 (protocol_conformsToProtocol): Likewise.
411 (protocol_copyProtocolList): Likewise.
412 * sarray.c: Include objc-private/module-abi-8.h.
413 * sendmsg.c (method_get_next_argument): Removed.
414 (method_get_first_argument): Removed.
415 (method_get_nth_argument): Removed.
416 (objc_msg_sendv): Removed.
417 (arglist_t, retval_t): New. (class_get_class_method): Take a
418 'Class', not 'MetaClass', argument.
419 * thr.c: Include module-abi-8.h.
421 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
423 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
424 and objc_get_uninstalled_dtable.h.
425 * objc/deprecated/struct_objc_static_instances.h: Removed.
426 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
427 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
428 and deprecated/objc_get_uninstalled_dtable.h.
430 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
432 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
433 * objc/deprecated/objc_object_alloc.h: Removed.
434 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
435 * objects.c (_objc_object_alloc, _objc_object_dispose,
436 _objc_object_copy): Removed.
437 * libobjc.def (__objc_object_alloc, __objc_object_copy,
438 __objc_object_dispose): Removed.
440 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
442 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
443 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
444 * objc/deprecated/METHOD_NULL.h: Removed.
446 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
448 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
449 objc_malloc.h and objc_unexpected_exception.h.
450 (exception.lo): Do not use -Wno-deprecated-declarations.
451 (exception_gc.lo): Likewise.
452 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
453 deprecated/objc_malloc.h and
454 deprecated/objc_unexpected_exception.h.
455 * objc/deprecated/objc_valloc.h: Removed.
456 * objc/deprecated/objc_malloc.h: Removed.
457 * objc/deprecated/objc_unexpected_exception.h: Removed.
458 * exception.c (_objc_unexpected_exception): Removed.
459 (objc_exception_throw): Do not check for
460 _objc_unexpected_exception.
461 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
462 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
463 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
465 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
467 * objc/objc.h: Do not include deprecated/STR.h.
468 * objc/deprecated/STR.h: Removed.
469 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
471 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
473 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
474 (OBJC_DEPRECATED_H): Likewise.
475 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
476 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
477 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
478 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
479 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
480 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
481 * objc/sarray.h: Removed.
482 * objc/hash.h: Removed.
483 * objc/deprecated/sarray.h: Removed.
484 * objc/deprecated/hash.h: Removed.
485 * objc/Object.h: Do not include objc/deprecated/hash.h
486 * Object.m: Include string.h.
487 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
488 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
491 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
493 * Object.m ([-forward::]): Removed.
494 * objc/deprecated/Object.h ([-forward::]): Removed.
495 * sendmsg.c (__objc_forward): Updated comments.
497 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
499 * Makefile.in (OBJC_H): Removed objc-list.h.
500 (OBJC_DEPRECATED_H): Removed objc-list.h.
501 * objc/objc-list.h: File removed.
502 * objc/deprecated/objc-list.h: File removed.
504 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
506 * Makefile.in (OBJC_H): Removed typedstream.h.
507 (OBJC_DEPRECATED_H): Removed typedstream.h.
508 (C_SOURCE_FILES): Removed archive.c.
509 (Object.lo): Rule removed.
510 (Object_gc.lo): Likewise.
511 (archive.lo): Likewise.
512 (archive_gc.lo): Likewise.
513 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
515 Do not include deprecated/typedstream.h.
516 * Object.m: Removed the same methods.
517 * archive.c: File removed.
518 * objc/typedstream.h: File removed.
519 * objc/deprecated/typedstream.h: File removed.
520 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
521 __objc_write_class, __objc_write_object, __objc_write_selector,
522 objc_close_typed_stream, objc_end_of_typed_stream,
523 objc_flush_typed_stream, objc_get_stream_class_version,
524 objc_open_typed_stream, objc_open_typed_stream_for_file,
525 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
526 objc_read_object, objc_read_selector, objc_read_short,
527 objc_read_string, objc_read_type, objc_read_types,
528 objc_read_unsigned_char, objc_read_unsigned_int,
529 objc_read_unsigned_long, objc_read_unsigned_short,
530 objc_write_array, objc_write_char, objc_write_int,
531 objc_write_long, objc_write_object, objc_write_object_reference,
532 objc_write_root_object, objc_write_selector, objc_write_short,
533 objc_write_string, objc_write_string_atomic, objc_write_type,
534 objc_write_types, objc_write_unsigned_char,
535 objc_write_unsigned_int, objc_write_unsigned_long,
536 objc_write_unsigned_short): Removed.
538 2011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
540 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
541 * objc/deprecated/objc_error.h: Removed.
542 * objc/objc-api.h: Do not include deprecated/objc_error.h.
543 * libobjc.def (objc_error, objc_verror): Removed.
544 * error.c (_objc_error_handler, objc_error, objc_verror,
545 objc_set_error_handler): Removed.
546 * Object.m ([-error:], [-perform:], [-perform:with:],
547 [-perform:with:with], [-subclassResponsibility:],
548 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
550 * objc/deprecated/Object.h: Removed the same methods.
551 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
552 method after trying to invoke the "doesNotRecognize:" method.
554 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
556 * sendmsg.c: Reindented part of the file. No non-trivial changes
559 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
561 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
562 not objc_lookup_class.
564 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
565 David Ayers <ayers@fsfe.org>
568 * sendmsg.c: Include objc/hash.h.
569 (get_implementation): New function, mostly with code from get_imp
570 updated to support the new +initialize dispatch table logic.
571 (get_imp): Use get_implementation.
572 (__objc_responds_to): Updated to support the new +initialize
573 dispatch table logic.
574 (class_respondsToSelector): Likewise.
575 (objc_msg_lookup): Use get_implementation.
576 (__objc_init_install_dtable): Removed.
577 (__objc_install_methods_in_dtable): Updated arguments.
578 (__objc_install_dispatch_table_for_class): Renamed to
579 __objc_install_dtable_for_class and updated to support the new
580 +initialize dispatch table logic.
581 (__objc_update_dispatch_table_for_class): Updated to support the
582 new +initialize dispatch table logic.
583 (__objc_forward): Call get_implementation instead of get_imp.
584 (prepared_dtable_table): New.
585 (__objc_prepare_dtable_for_class): New.
586 (__objc_prepared_dtable_for_class): New.
587 (__objc_get_prepared_imp): New.
588 (__objc_install_prepared_dtable_for_class): New.
590 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
593 * selector.c (__sel_register_typed_name): Use sel_types_match()
594 instead of strcmp() to compare selector types (Suggestion by
595 Richard Frith-Macdonald <rfm@gnu.org>).
597 2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
600 * Makefile.in (OBJC_GCFLAGS): Move ...
601 * configure.ac (enable_objc_gc): ... here.
602 Add $(libsuffix) to OBJC_BOEHM_GC.
603 * configure: Regenerate.
605 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
607 * selector.c (sel_getTypedSelector): Return NULL if there are
608 multiple selectors with conflicting types.
609 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
611 2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
614 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
617 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
619 * configure: Regenerate.
621 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
623 * init.c (create_tree_of_subclasses_inherited_from): Use
624 class_superclass_of_class instead of assuming a class is
625 unresolved when it could be resolved. Tidied up assignment and
627 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
628 (objc_tree_insert_class): Tidied up loop; return immediately upon
630 (__objc_exec_class): Do not set __objc_class_tree_list.
632 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
634 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
636 (sel_registerTypedName): Same.
637 (sel_registerName): Same.
638 * objc/runtime.h: Updated documentation.
640 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
642 * objc/runtime.h (class_addIvar): Updated documentation. The
643 alignment is actually the log_2 of the alignment in bytes.
644 * ivars.c (class_addIvar): Corresponding change to the
647 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
649 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
650 be consistent with method_getTypeEncoding and
651 ivar_getTypeEncoding.
652 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
653 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
654 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
655 (sel_get_type): Updated call to sel_getType.
657 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
659 * objc/runtime.h (class_conformsToProtocol,
660 class_copyProtocolList): Updated documentation.
662 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
664 * init.c (create_tree_of_subclasses_inherited_from): Updated
665 DEBUG_PRINTF messages.
666 (__objc_tree_insert_class): Same.
667 (__objc_send_load_using_method_list): Same.
668 (__objc_send_load): Same.
669 (__objc_exec_class): Same. In particular, do not print the module
670 name since it is no longer used.
671 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
672 tracking +initialize calls.
673 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
674 tracking updates of dispatch tables.
675 (__objc_install_dispatch_table_for_class): Same.
677 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
679 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
680 (libobjc_gc$(libsuffix).la): Likewise.
682 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
684 * sendmsg.c (class_addMethod): Return NO if the method already
687 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
689 * init.c (duplicate_classes): New.
690 (__objc_exec_class): Initialize duplicate_classes.
691 (__objc_create_classes_tree): Ignore classes in the
692 duplicate_classes table.
693 (__objc_call_load_callback): Same.
694 (__objc_init_class): If a duplicate class is found, add it to
695 duplicate_classes instead of aborting. Return YES if the class is
696 not a duplicate, and NO if it is.
697 * objc-private/runtime.h (__objc_init_class): Updated prototype.
699 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
701 * objc-private/objc-list.h: Reindented file. No code changes.
702 * objc-private/sarray.h: Same change.
704 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
706 * objc-private/accessors.h: Removed 'extern "C"' guards. This
707 file is never compiled with C++.
708 * objc-private/hash.h: Same change.
709 * objc-private/objc-list.h: Same change.
710 * objc-private/objc-sync.h: Same change.
711 * objc-private/protocols.h: Same change.
712 * objc-private/runtime.h: Same change.
713 * objc-private/sarray.h: Same change.
714 * objc-private/selector.h: Same change.
716 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
719 * class.c (__objc_add_class_to_hash): Return YES if the class was
720 added, and NO if it already existed.
721 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
722 NO, then abort the program with an error message.
723 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
726 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
728 * init.c (_objc_load_callback): Initialize with 0.
729 (__objc_call_callback): Renamed to __objc_call_load_callback.
730 Check _objc_load_callback only once, and if it is not set, return
732 (objc_send_load): Updated call to __objc_call_callback.
734 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
737 * init.c (__objc_send_message_in_list): Renamed to
738 __objc_send_load_using_method_list. Do not take an 'op' argument.
739 Register the 'load' selector if needed.
740 (__objc_send_load): Do not register the 'load' selector. Updated
741 call to __objc_send_message_in_list.
742 (__objc_create_classes_tree): Add the class of any claimed
743 category that was loaded in the module to the list of classes for
744 which we try to execute +load.
746 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
748 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
750 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
751 a pointer using DEBUG_PRINTF.
753 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
756 * selector.c (__sel_register_typed_name): When registering a new
757 selector with the same name as an existing one, reuse the existing
758 name string. Also updated types, casts and comments in the whole
761 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
763 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
764 to be 'struct objc_selector *' and not 'SEL'.
765 * init.c (__objc_exec_class): Call
766 __objc_register_selectors_from_module instead of iterating over
767 each selector and calling __sel_register_typed_name for each.
768 * objc-private/selector.h: Declare
769 __objc_register_selectors_from_module instead of
770 __sel_register_typed_name.
771 * selector.c (__objc_register_selectors_from_module): New.
772 (__sel_register_typed_name): Made static.
774 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
776 * linking.m: Do not include objc/NXConstStr.h.
778 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
780 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
781 * objc-private/common.h (DEBUG_PRINTF): To here.
782 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
784 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
786 * hash.c: Tidied up comments and indentation. No code changes.
788 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
791 * accessors.m (objc_getProperty): If not atomic, do not
792 retain/autorelease the returned value.
794 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
796 * objc-private/runtime.h (__objc_selector_max_index,
797 __objc_init_selector_tables, __objc_register_selectors_from_class,
798 __objc_register_selectors_from_list,
799 __objc_register_selectors_from_description_list): Moved to ...
800 * objc-private/selector.h: ... here.
802 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
804 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
805 (__objc_print_dtable_stats): Removed.
806 (__sel_register_typed_name): Removed.
807 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
809 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
811 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
812 if appropriate, after loading the module.
814 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
816 * sendmsg.c (method_setImplementation): Do not declare.
818 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
820 * objc/message.h: Updated comments.
821 * objc/runtime.h: Updated comments.
823 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
825 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
826 * protocols.c: Updated all calls to objc_lookupClass to call
827 objc_lookUpClass instead.
828 * sendmsg.c (objc_lookupClass): Do not declare.
829 (get_imp): Update call to objc_lookupClass to call
830 objc_lookUpClass instead.
831 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
833 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
835 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
836 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
837 define. Updated comments.
839 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
841 * objc/encoding.h: Updated comments.
842 * objc/runtime.h: Updated comments.
843 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
844 (objc_sizeof_type): Same.
845 (objc_alignof_type): Same.
846 (objc_aligned_size): Same.
847 (objc_promoted_size): Same.
848 (objc_skip_type_qualifiers): Same.
849 (objc_skip_typespec): Same.
850 (objc_skip_offset): Same.
851 (objc_skip_argspec): Same.
852 (objc_get_type_qualifiers): Same.
853 (objc_layout_structure): Same.
854 (objc_layout_structure_next_member): Same.
855 (objc_layout_finish_structure): Same.
856 (objc_layout_structure_get_info): Same.
858 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
860 * init.c: Updated comments.
861 * objc/objc-api.h: Updated comments.
862 * objc/runtime.h (_objc_load_callback): Declare.
864 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
866 * objc/Object.h: Include deprecated/typedstream.h and
867 deprecated/hash.h instead of typedstream.h. Updated comments.
869 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
871 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
872 * objc/deprecated/objc_msg_sendv.h: New.
873 * objc/message.h: Do not define retval_t, apply_t, arglist,
874 arglist_t, objc_msg_sendv, now in
875 objc/deprecated/objc_msg_sendv.h.
876 * objc/objc.h: Do not include message.h; include
877 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
878 * sendmsg.c: Include objc/message.h.
879 * thr.c: Include objc/message.h.
881 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
883 * objc/objc-exception.h: Include objc-decls.h. Mark all
884 functions with objc_EXPORT.
885 * objc/objc-sync.h: Same change.
887 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
889 * Protocol.m: Moved all methods, with the exception of -isEqual:,
890 into the 'Deprecated' category.
891 * objc/Protocol.h: Removed all methods, moved to
892 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
893 * objc/deprecated/Protocol.h: New.
894 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
896 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
898 * init.c: Include objc-private/selector.h. Do not declare
899 __sel_register_typed_name.
900 * objc-private/selector.h (__sel_register_typed_name): Declare.
901 * selector.c: Include objc-private/selector.h.
903 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
905 * class.c: Tidied up comments and indentation. No code changes.
911 * objc-foreach.c: Same.
918 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
920 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
921 instead of objc/objc-api.h.
922 (init_check_module_version): Take a 'struct objc_module *'
923 argument instead of 'Module_t'. Use 'struct objc_module *'
924 instead of 'Module_t'.
925 (__objc_created_classes_tree): Take a 'struct objc_module *'
926 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
928 (__objc_call_callback): Take a 'struct objc_module *' argument
929 instead of 'Module_t'; use 'struct objc_symtab *' instead of
930 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
931 (_objc_load_callback): Take a 'struct objc_category *' argument
932 instead of 'Category *'.
933 (class_superclass_of_class): Use objc_getClass() instead of
935 (create_tree_of_subclasses_inherited_from): Same change (also, use
936 an explicit 'if' instead of '?').
937 (objc_init_statics): Same change.
938 (objc_send_load): Same change.
939 (__objc_init_protocol): same change.
940 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
941 argument instead of 'MethodList_t'. Use 'struct objc_method *'
942 instead of 'Method_t'.
943 (__objc_send_load): Use 'struct objc_method_list *' instead of
944 'MethodList_t'. Use sel_registerName() instead of
946 (__objc_exec_class): Take a 'struct objc_module *' argument
947 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
948 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
949 Use 'struct objc_category *' instead of 'Category_t'.
951 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
953 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
954 Include objc-private/module-abi-8.h and objc-private/selector.h
955 instead of objc/encoding.h.
956 (objc_msg_lookup_super): Use super->super_class instead of
958 (method_get_first_argument, method_get_next_argument): Declare
960 (class_get_instance_method): Declare before using.
961 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
962 (__objc_init_dispatch_tables, __objc_send_initialize): Use
963 sel_registerName() instead of sel_register_name().
964 (__objc_forward): Use sel_getName() instead of sel_get_name().
965 (objc_get_uninstalled_dtable): Use 'void' as argument.
966 * objc-private/selector.h: New.
968 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
970 * objc/message.h (objc_super): When using the modern API, do not
971 define Super and Super_t, and always use 'super_class' for the
973 (objc_msg_lookup_super): Updated prototype to use 'struct
974 objc_super *' instead of 'Super_t'.
975 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
976 'struct objc_super *' instead of 'Super_t'.
978 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
980 * objc/message.h: Update comments, reindented code and moved
981 deprecated types and functions at the end of the file. No code
984 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
986 * ivars.c (class_addIvar): Use the 'size' argument instead of
987 trying to calculate it using objc_sizeof_type().
988 * objc/runtime.h (class_addIvar): Updated comments.
990 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
992 * sendmsg.c: Reindented some code and tidied up comments. No
995 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
997 * objc/Object.h: Moved all the methods, with the exception of
998 -class and -isEqual:, into ...
999 * objc/deprecated/Object.h: here.
1000 * Object.m: Moved all the methods, with the exception of -class
1001 and -isEqual: into the 'Deprecated' category.
1003 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
1005 * objects.c (object_copy): Do not #undef as we are no longer
1006 including objc/objc-api.h.
1007 * selector.c: Include objc/runtime.h and
1008 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
1009 objc/encoding.h. Updated
1010 (__objc_register_selectors_from_class): Use struct
1011 objc_method_list * instead of MethodList_t.
1012 (__objc_register_selectors_from_list): Use Method instead of
1014 (struct objc_method_description_list): Do not define here.
1015 (__objc_register_instance_methods_to_class): Use struct
1016 objc_method_list * instead of MethodList_t and Method instead of
1019 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
1021 * selector.c: Reindented some code and tidied up comments. No
1022 actual code changes.
1024 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
1026 * encoding.c (_darwin_rs6000_special_round_type_align): New.
1027 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
1029 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
1031 * sendmsg.c (selector_resolveClassMethod): New.
1032 (selector_resolveInstanceMethod): New.
1033 (__objc_resolve_class_method): New.
1034 (__objc_resolve_instance_method): New.
1035 (get_imp): Call __objc_resolve_class_method or
1036 __objc_resolve_instance_method at the appropriate time.
1037 (objc_msg_lookup): Same.
1038 (class_getClassMethod): Same.
1039 (class_getInstanceMethod): Same.
1040 (__objc_init_dispatch_tables): Initialize
1041 selector_resolveClassMethod and selector_resolveInstanceMethod.
1042 * objc/runtime.h: Updated documentation of class_getClassMethod,
1043 class_getInstanceMethod and class_getMethodImplementation.
1045 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
1047 * objc-private/module-abi-8.h (struct objc_symtab): Updated
1048 description of sel_ref_cnt and refs.
1049 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
1051 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1055 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
1056 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
1057 * aclocal.m4: Regenerate.
1058 * configure: Regenerate.
1060 2010-12-03 Matthias Klose <doko@ubuntu.com>
1062 * configure.ac (VERSION): Bump the version to 3:0:0.
1063 * configure: Regenerate.
1065 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
1067 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
1068 pass nil as the receiver since we don't know the receiver at this
1071 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
1073 * ivars.c: Include stdlib.h.
1074 * protocols.c: Same change.
1076 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
1078 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
1080 * init.c: Include objc-private/accessors.h.
1081 (__objc_exec_class): Call __objc_accessors_init.
1082 * objc-private/accessors.h: New.
1084 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1086 * objc/message.h: Moved initial includes outside of extern "C".
1087 * objc/runtime.h: Add extern "C" for Objective-C++.
1089 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1091 * init.c (objc_send_load): Do not wait for NXConstantString to be
1092 registered before executing +load. There is no point if
1093 -fconstant-string-class=xxx is used when compiling all modules,
1094 as is the case for almost all users.
1095 * linking.m (__objc_linking): Do not try to forcefully link in
1098 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1100 * objc/runtime.h: Updated comments.
1101 (class_addMethod): New.
1102 (class_addIvar): New.
1103 (class_replaceMethod): New.
1104 (objc_allocateClassPair): New.
1105 (objc_registerClassPair): New.
1106 (objc_disposeClassPair): New.
1107 * class.c (objc_allocateClassPair): New.
1108 (objc_registerClassPair): New.
1109 (objc_disposeClassPair): New.
1110 (class_getSuperclass): Return Nil if a class is in construction.
1111 * init.c (__objc_exec_class): Call __objc_init_class.
1112 (__objc_init_class): New.
1113 * ivars.c (class_copyIvarList): Return NULL if class is in
1114 construction. Do not lock the runtime mutex.
1115 (class_getInstanceVariable): Return NULL if class is in
1116 construction. Do not lock the runtime mutex.
1117 (class_addIvar): New.
1118 * sendmsg.c (class_addMethod): New.
1119 (class_replaceMethod): New.
1120 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
1121 (_CLS_IN_CONSTRUCTION): New.
1122 (CLS_IS_IN_CONSTRUCTION): New.
1123 (CLS_SET_IN_CONSTRUCTION): New.
1124 (CLS_SET_NOT_IN_CONSTRUCTION): New.
1125 * objc-private/runtime.h (__objc_init_class): New.
1127 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1129 * class.c (class_getSuperclass): Call __objc_resolve_class_links
1130 if the class is not resolved yet.
1131 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
1133 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1135 * objc/runtime.h (class_getIvarLayout): New.
1136 (class_getWeakIvarLayout): New.
1137 (class_setIvarLayout): New.
1138 (class_setWeakIvarLayout): New.
1139 * ivars.c (class_getIvarLayout): New.
1140 (class_getWeakIvarLayout): New.
1141 (class_setIvarLayout): New.
1142 (class_setWeakIvarLayout): New.
1144 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1146 * objc/runtime.h (class_copyPropertyList): New.
1147 (class_getProperty): New.
1148 (property_getAttributes): New.
1149 (property_getName): New.
1150 * ivars.c (class_copyPropertyList): New.
1151 (class_getProperty): New.
1152 (property_getAttributes): New.
1153 (property_getName): New.
1155 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1157 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
1158 * class.c (__objc_update_classes_with_methods): New.
1159 (objc_getClassList): Do not lock the class lock.
1160 * methods.c (method_exchangeImplementations): New.
1161 (method_setImplementation): New.
1162 * objc/runtime.h (method_setImplementation): New.
1163 (method_exchangeImplementations): New.
1165 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1167 * Protocol.m: Include objc/runtime.h and
1168 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
1169 repeat Protocol's instance variables.
1170 (struct objc_method_description_list): Do not define here.
1171 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
1172 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
1173 selectors directly instead of getting names and then using strcmp.
1174 ([descriptionForClassMethod:]): Same change.
1175 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
1176 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
1177 to compare selectors directly instead of getting names and then
1179 * objc/Protocol.h: Updated comments.
1181 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1183 * init.c (__objc_init_protocol): New function which fixes up a
1184 protocol's class pointer, registers it with the runtime, register
1185 all protocol selectors and registers associated protocols too.
1186 (objc_init_statics): Detect if we are initializing protocols, and
1187 if so, use __objc_init_protocol instead of only fixing up the
1189 (__objc_init_protocls): Use __objc_init_protocol.
1190 * objc-private/module-abi-8.h: Updated comments.
1191 * objc-private/runtime.h
1192 (__objc_register_selectors_from_description_list): New.
1193 * selector.c (__objc_register_selectors_from_description_list):
1194 New. (struct objc_method_description_list): Declare.
1195 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
1196 when accessing the name of a method, which is now correctly a SEL.
1197 ([-descriptionForClassMethod:]): Same change.
1198 * protocols.c (protocol_getMethodDescription): Same change.
1199 * objc/runtime.h: Updated comments.
1200 (sel_registerTypedName): Fixed typo in function name.
1202 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1205 * init.c (objc_init_statics): Do not skip the initialization of a
1206 statics list if the first object has already been initialized; in
1207 the case of Protocols, while the first one may have been
1208 initialized, some others may not have been initialized yet.
1210 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1212 * Makefile.in (OBJC_DEPRECATED_H): Added
1213 objc_get_uninstalled_dtable, objc_object_alloc.h and
1214 struct_objc_static_instances.h.
1216 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1218 * encoding.c (method_copyReturnType): New.
1219 (method_copyArgumentType): New.
1220 (method_getReturnType): New.
1221 (method_getArgumentType): New.
1222 * methods.c (method_getDescription): New.
1223 * objc/runtime.h (method_copyReturnType): New.
1224 (method_copyArgumentType): New.
1225 (method_getReturnType): New.
1226 (method_getArgumentType): New.
1227 (method_getDescription): New.
1229 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1231 * encoding.c: Tidied up comments.
1232 (objc_skip_variable_name): New static inline function.
1233 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
1234 the same code over and over.
1235 (objc_alignof_type): Same.
1236 (objc_aligned_size): Same.
1237 (objc_promoted_size): Same.
1238 (objc_skip_typespec): Same.
1239 (objc_layout_structure_next_member): Same.
1240 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
1241 historical bug where objc_skip_offset would skip one byte even if
1242 there is no offset: check that the first offset digit is actually
1243 a digit before skipping it.
1244 (objc_skip_type_qualifiers): Mark as inline.
1245 (objc_skip_typespec): Mark as inline.
1247 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1249 * Makefile.in (C_SOURCE_FILES): Added methods.c.
1250 * encoding.c (method_getNumberOfArguments): New.
1251 (method_get_number_of_arguments): Call
1252 method_getNumberOfArguments.
1253 * ivars.c (ivar_getName): Check for NULL variable argument.
1254 (ivar_getOffset): Check for NULL variable argument.
1255 (ivar_getTypeEncoding): Check for NULL variable argument.
1256 (class_copyIvarList): New.
1258 * protocols.c (class_copyProtocolList): Check for Nil class_
1260 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1261 'struct objc_method_list *' instead of MethodList_t.
1262 (class_getMethodImplementation): New.
1263 (class_respondsToSelector): New.
1264 (class_getInstanceMethod): New.
1265 (class_getClassMethod): New.
1266 * objc/runtime.h: Updated comments.
1267 (class_copyIvarList): New.
1268 (class_getInstanceMethod): New.
1269 (class_getClassMethod): New.
1270 (class_getMethodImplementation): New.
1271 (class_respondsToSelector): New.
1272 (method_getName): New.
1273 (method_getImplementation): New.
1274 (method_getTypeEncoding): New.
1275 (class_copyMethodList): New.
1276 (method_getNumberOfArguments): New.
1278 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1280 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1281 instead of objc/objc-api.h.
1282 (objc_get_unknown_class_handler): Do not define.
1283 (class_isMetaClass): New.
1284 (class_getSuperclass): New.
1285 (class_getVersion): New.
1286 (class_setVersion): New.
1287 (class_getInstanceSize): New.
1288 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1289 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1290 objc_get_super_class.
1291 (get_ttype_entry): Use objc_getRequiredClass instead of
1293 * ivars.c (class_getClassVariable): New.
1294 * objects.c: Include objc/runtime.h, objc/thr.h and
1295 objc-private/module-abi-8.h instead of objc/objc-api.h
1296 * objc/runtime.h (class_getClassVariable): New.
1297 (class_isMetaClass): New.
1298 (class_getSuperclass): New.
1299 (class_getVersion): New.
1300 (class_setVersion): New.
1301 (class_getInstanceSize): New.
1302 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1305 (__CLS_ISINFO): Same.
1306 (__CLS_SETINFO): Same.
1308 (CLS_ISCLASS): Same.
1309 (CLS_ISRESOLV): Same.
1310 (CLS_SETRESOLV): Same.
1311 (CLS_ISINITIALIZED): Same.
1312 (CLS_SETINITIALIZED): Same.
1313 (CLS_GETNUMBER): Same.
1314 (CLS_SETNUMBER): Same.
1316 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1318 * archive.c: Do not include objc/objc.h.
1319 * class.c: Do not include objc/objc.h.
1320 * encoding.c: Include objc/runtime.h, ctype.h and
1321 objc-private/module-abi-8.h instead of objc/objc-api.h and
1323 * error.c: Do not include objc/objc.h.
1324 * gc.c: Include tconfig.h and objc/encoding.h only if
1326 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1327 objc/objc-api.h. Do not include objc/objc.h.
1328 * init.c: Do not include objc/objc.h.
1329 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1330 objc/thr.h instead of objc/objc-api.h. Do not include
1332 * linking.m: Tidied comment.
1333 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1334 Do not include objc/objc.h.
1335 * objects.c: Do not include objc/objc.h.
1336 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1337 * protocols.c: Do not include objc/objc.h.
1338 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1339 not include objc/objc.h.
1340 * selector.c: Do not include objc/objc.h.
1341 * sendmsg.c: Do not include objc/objc.h.
1342 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1343 Do not include objc/objc.h.
1344 * objc/objc-decls.h: Reindented code.
1345 * objc/runtime.h Include objc-decls.h. Updated comments.
1347 (objc_atomic_malloc): New.
1349 (objc_realloc): New.
1351 * objc-private/runtime.h: Updated comments.
1353 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1355 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1356 * objc-private/protocols.h: New.
1358 * init.c: Include objc-private/protocols.h.
1359 (__objc_exec_class): Call __objc_protocols_init on startup.
1360 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1361 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1362 of MethodList_t, and (struct objc_method *) instead of Method_t.
1363 * objc/deprecated/struct_objc_class.h: Define
1364 __objc_STRUCT_OBJC_CLASS_defined.
1365 * objc-private/module-abi-8.h (struct
1366 objc_method_description_list): New.
1367 (struct objc_class): Only define if
1368 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1369 * objc/runtime.h (class_getName): New.
1370 (objc_getProtocol): New.
1371 (objc_copyProtocolList): New.
1372 (class_addProtocol): New.
1373 (class_conformsToProtocol): New.
1374 (class_copyProtocolList): New.
1375 (protocol_conformsToProtocol): New.
1376 (protocol_isEqual): New.
1377 (protocol_getName): New.
1378 (protocol_getMethodDescription): New.
1379 (protocol_copyMethodDescriptionList): New.
1380 (protocol_getProperty): New.
1381 (protocol_copyPropertyList): New.
1382 (protocol_copyProtocolList): New.
1383 * class.c (class_getName): New.
1384 * selector.c (sel_isEqual): New.
1386 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1388 * selector.c (sel_getName): Return "<null selector>" for a NULL
1390 (sel_get_name): Return 0 for a NULL argument.
1391 * objc/runtime.h (sel_getName): Updated documentation.
1393 * objc-private/hash.h (class_hash_table): Unused declaration
1395 (module_hash_table): Same.
1396 * objc/deprecated/hash.h: Same changes.
1398 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1400 * class.c (objc_getClassList): New.
1401 (objc_getRequiredClass): New.
1402 (objc_getMetaClass): New.
1403 (objc_lookupClass): New.
1404 (objc_getClass): New.
1405 (__objc_get_unknown_class_handler): New.
1406 (objc_setGetUnknownClassHandler): New.
1407 (objc_get_class): Use __objc_get_unknown_class_handler.
1408 (objc_lookup_class): Call objc_getClass.
1409 * objc/objc-api.h: Updated comment and copyright notice.
1410 * objc/runtime.h: Updated comments.
1411 (objc_getClass): New.
1412 (objc_lookupClass): New.
1413 (objc_getMetaClass): New.
1414 (objc_getRequiredClass): New.
1415 (objc_getClassList): New.
1416 (objc_setGetUnknownClassHandler): New.
1417 (objc_get_unknown_class_handler): New.
1418 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1419 instead of __objc_runtime_INCLUDE_GNU as include guard.
1420 * objc-private/error.h (_objc_abort): Mark as noreturn.
1422 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1424 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1426 * objc/objc.h: Updated comments.
1427 * objc/runtime.h (object_getClass): New.
1428 (object_getClassName): New.
1429 (object_setClass): New.
1430 (class_getInstanceVariable): New.
1431 (object_getIndexedIvars): New.
1432 (object_getInstanceVariable): New.
1433 (object_setInstanceVariable): New.
1434 (object_getIvar): New.
1435 (object_setIvar): New.
1436 (ivar_getName): New.
1437 (ivar_getOffset): New.
1438 (ivar_getTypeEncoding): New.
1439 * objc-private/module-abi-8.h (struct objc_class): Added.
1440 * objects.c (object_getClassName): New.
1441 (object_setClass): New.
1443 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1445 * objc/objc.h: Updated comments.
1446 * objc/objc-api.h: (object_copy): Added one argument; use a
1447 #define to maintain backwards-compatibility. Moved
1448 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1449 objc_get_uninstalled_dtable into
1450 objc/deprecated/objc_get_uninstalled_dtable.h and
1451 objc/deprecated/objc_object_alloc.h. Include these files.
1452 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1453 * objc/deprecated/objc_object_alloc.h: New.
1454 * objc/runtime.h (set_getName): New.
1457 (sel_registerName): New.
1458 (sel_registerTypedName): New.
1460 (class_createInstance): New.
1462 (object_dispose): New.
1463 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1464 building the garbage collection version.
1465 (__objc_object_alloc): Removed.
1466 (__objc_object_copy): Removed.
1467 (__objc_object_dispose): Removed.
1468 (class_createInstance): New from code in class_create_instance.
1469 Cast second argument of GC_malloc_explicitly_typed. Use
1470 objc_calloc. Do not call _objc_object_alloc.
1471 (class_create_instance): Call class_createInstance.
1472 (object_copy): Added extraBytes argument. Do not call
1474 (object_dispose): Do not call _objc_object_dispose.
1475 * memory.c (objc_free): When using garbage collection, mark the
1477 * selector.c (sel_getName): New.
1478 (sel_get_name): Call sel_getName.
1480 (sel_get_type): Call sel_getType.
1481 (sel_registerName): New.
1482 (sel_register_name): Call sel_registerName.
1483 (sel_registerTypedName): New.
1484 (sel_register_typed_name): Call sel_registerTypedName.
1486 (sel_get_uid): Call sel_getUid.
1488 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1490 * objc/objc-api.h: Define Method, Method_t, Category and
1491 Category_t. Prevent including this file at the same time as
1492 objc/runtime.h. Updated comments.
1493 * objc/deprecated/struct_objc_method.h: Do not define Method,
1495 * objc/deprecated/struct_objc_category.h: Do not define Category,
1497 * objc-private/module-abi-8.h: New file containing a copy of all
1498 the structure definitions. Not used yet.
1499 * objc/encoding.h (objc_aligned_size): Removed duplicate
1500 declaration. Updated comments.
1501 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1502 Category, struct objc_method_description, _C_ID and similar,
1503 _C_CONST and similar and _F_CONST and similar. Added
1504 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1505 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1506 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1507 struct objc_struct_layout, objc_layout_structure,
1508 objc_layout_structure_next_member, objc_layout_finish_structure,
1509 objc_layout_structure_get_info. Prevent including this file at
1510 the same time as objc/objc-api.h.
1512 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1514 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1515 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1516 struct_objc_method_list.h, struct_objc_module.h,
1517 struct_objc_protocol_list.h, struct_objc_symtab.h.
1518 * objc/deprecated/struct_objc_category.h: New.
1519 * objc/deprecated/struct_objc_ivar.h: New.
1520 * objc/deprecated/struct_objc_ivar_list.h: New.
1521 * objc/deprecated/struct_objc_method.h: New.
1522 * objc/deprecated/struct_objc_method_list.h: New.
1523 * objc/deprecated/struct_objc_module.h: New.
1524 * objc/deprecated/struct_objc_protocol_list.h: New.
1525 * objc/deprecated/struct_objc_symtab.h: New.
1526 * objc/deprecated/struct_objc_static_instances.h: New.
1527 * objc/objc-api.h: Definitions of deprecated structures moved into
1528 the above header fragment files in objc/deprecated/. Include the
1529 files instead of definition the structures here. Updated
1531 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1532 (objc_set_enumeration_mutation_handler): Renamed to
1533 objc_setEnumerationMutationHandler.
1534 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1535 to objc_setEnumerationMutationHandler.
1536 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1537 objc_setExceptionMatcher.
1538 (objc_set_uncaught_exception_handler): Renamed to
1539 objc_setUncaughtExceptionHandler.
1540 * exception.c: Same changes.
1542 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1544 * objc-sync.c: Include objc-private/common.h.
1546 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1548 * objc-foreach.c: Include objc-private/common.h.
1549 * objc/deprecated/METHOD_NULL.h: New file.
1550 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1551 defining METHOD_NULL here.
1552 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1553 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1555 ([-respondsTo:]): Same change.
1556 * objc/objc-api.h (method_get_imp): Converted it into a normal
1557 function so that we can hide the internals of struct objc_method.
1558 * sendmsg.c (method_get_imp): Implemented.
1560 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1562 * objc/objc-api.h (struct objc_super, Super, Super_t,
1563 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1564 objc_msg_forward2): Declarations moved to objc/message.h. Include
1566 * objc/message.h: Added such declarations; updated comments.
1568 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1570 Implemented fast enumeration for Objective-C.
1571 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1572 (OBJC_H): Added runtime.h
1573 * objc-foreach.c: New file.
1574 * objc/runtime.h: New file.
1576 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
1578 * objc/deprecated/struct_objc_class.h: Add padding
1579 to avoid warning with -Wpadded.
1581 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1583 * encoding.c (objc_sizeof_type): Added support for vector type and
1584 for double long types.
1585 (objc_alignof_type): Same change.
1586 (objc_skip_typespec): Same change.
1587 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1588 instead of '!' since '!' is already used for _C_VECTOR.
1589 * objc/objc-api.h (_C_LNG_DBL): Added.
1591 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1593 * libobjc_entry.c: File removed.
1595 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
1597 * sendmsg.c (objc_msg_lookup): Remove inline.
1598 (objc_get_uninstalled_dtable): Likewise.
1599 * encoding.c (objc_skip_type_qualifiers): Likewise.
1600 (objc_skip_offset): Likewise.
1601 * archive.c (__objc_write_object): Likewise
1602 (__objc_write_class):
1603 (__objc_write_selector):
1605 (objc_read_unsigned_char):
1607 (objc_read_unsigned_short):
1610 (__objc_read_nbyte_uint):
1611 (objc_read_unsigned_int):
1612 (objc_read_unsigned_long):
1613 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1614 (objc_EXPORT): Likewise.
1615 * objc/message.h (objc-decls.h): Add include.
1616 * objc/objc-api.h: Mark API by objc_EXPORT.
1617 * libobjc.def (__objc_responds_to): Removed.
1619 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1621 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1623 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1624 objc/sarray.h replaced with a placeholder including the file from
1625 the deprecated/ directory.
1626 * objc-private/sarray.h: New file (private copy of sarray.h).
1627 * hash.c: Include <assert.h> instead of "assert.h"
1628 * sarray.c: Include <assert.h> instead of "assert.h". Include
1629 objc-private/sarray.h instead of objc/sarray.h.
1630 * selector.c: Include objc-private/sarray.h instead of
1632 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1633 instead of objc/sarray.h.
1634 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1636 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1638 * objc-private/objc-list.h (list_remove_elem): Unused function
1639 removed. (list_nth): Unused function removed. (list_find):
1640 Unused function removed. (list_lenght): Unused function removed.
1642 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1644 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1645 replaced with a placeholder including the file from the
1646 deprecated/ directory.
1647 * objc/objc-api.h: Updated includes.
1648 * objc/typedstream.h: Updated includes.
1649 * objc-private/hash.h: New file (private copy of hash.h).
1650 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1651 objc/objc-list.h replaced with a placeholder including the file
1652 from the deprecated/ directory.
1653 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1654 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1655 instead of objc/hash.h and objc/objc-list.h.
1656 * selector.c: Same change.
1657 * class.c: Added include <string.h>, which used to be implicitly included
1658 when hash.h was included.
1659 * exception.c: Same change.
1660 * objects.c: Same change.
1661 * sarray.c: Same change.
1662 * sendmsg.c: Same change.
1663 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1665 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1667 Implemented objc_sync_enter() and objc_sync_exit(), which are
1668 required by @synchronized() to work.
1669 * objc-sync.c: New file.
1670 * objc/objc-sync.h: New file.
1671 * objc-private/objc-sync.h: New file.
1672 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1673 Objective-C runtime startup.
1674 * Makefile.in: Added objc-sync.c and objc-sync.h.
1675 * configure.ac: Added GCC_CHECK_TLS.
1676 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1677 * configure: Regenerated.
1678 * config.h.in: Regenerated.
1680 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1682 * Makefile.in (%_gc.lo): New pattern rules to build the
1683 garbage-collected version of the library. Removed rules for
1684 specific files that are no longer needed. Standardized all rules.
1685 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1686 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1688 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1690 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1692 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1693 with Garbage Colletion.
1695 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1697 * memory.c: Do not include objc-private/runtime.h.
1699 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1701 * objc/deprecated/objc_malloc.h: New file.
1702 * objc/deprecated/objc_valloc.h: New file.
1703 * objc/objc-api.h: Include the files instead of defining
1704 objc_valloc, _objc_malloc() and similar.
1705 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1707 * memory.c: Removed the extra layer of indirection of _objc_malloc
1709 (objc_calloc): Use GC_malloc in the garbage-collected
1710 implementation as GC_malloc returns memory that is already freed.
1711 (objc_valloc): Deprecated.
1713 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1715 * objc/deprecated/objc_error.h: New file.
1716 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1717 defining objc_error and related.
1718 * error.c: New file. Added _objc_abort function which replaces
1719 objc_error. No change in functionality as they both print an
1721 * misc.c: File removed. Code moved into memory.c and error.c.
1722 * memory.c: New file.
1723 * objc-private/error.h: New file.
1724 * archive.c: Include objc-private/error.h and use _objc_abort
1725 instead of objc_error everywhere.
1726 * class.c: Same change.
1727 * encoding.c: Same change.
1728 * init.c: Same change, and simplified init_check_module_version.
1729 * memory.c: Same change.
1730 * sendmsg.c: Same change.
1731 * thr.c: Same change.
1732 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1733 (OBJ_H): Reordered list.
1734 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1735 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1736 (misc_gc.lo): Rule removed.
1737 (error_gc.lo): Rule added.
1738 (memory_gc.lo): Rule added.
1740 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1742 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1743 to check the API version. Added some comments.
1745 * objc-private/common.h: New file.
1746 * NXConstStr.m: Include objc-private/common.h.
1747 * Object.m: Same change.
1748 * Protocol.m: Same change.
1749 * archive.c: Same change.
1750 * class.c: Same change.
1751 * encoding.c: Same change.
1752 * exception.c: Same change.
1753 * gc.c: Same change.
1754 * hash.c: Same change.
1755 * init.c: Same change.
1756 * libobjc_entry.c: Same change.
1757 * linking.m: Same change.
1758 * misc.c: Same change (and added a comment).
1759 * nil_method.c: Same change.
1760 * objects.c: Same change.
1761 * sarray.c: Same change.
1762 * selector.c: Same change.
1763 * sendmsg.c: Same change.
1764 * thr.c: Same change.
1766 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1768 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1770 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1772 * archive.c: Removed not needed includes.
1773 * class.c: Same change.
1774 * hash.c: Same change.
1775 * misc.c: Same change.
1776 * nil_method.c: Same change.
1777 * objects.c: Same change.
1778 * sarray.c: Same change.
1779 * sendmsg.c: Same change.
1780 * thr.c: Same change.
1782 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1784 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1785 all the objc/*.h files.
1786 * objc-private/runtime.h: New file.
1787 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1788 files) instead of objc/runtime.h.
1789 * class.c: Same change.
1790 * hash.c: Same change.
1791 * init.c: Same change.
1792 * misc.c: Same change.
1793 * nil_method.c: Same change.
1794 * objects.c: Same change.
1795 * sarray.c: Same change.
1796 * selector.c: Same change.
1797 * sendmsg.c: Same change.
1798 * thr.c: Same change.
1800 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1802 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1803 'struct objc_selector' and 'sel_eq' moved here.
1804 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1805 'struct objc_procotol' moved here.
1806 * objc/deprecated/struct_objc_class.h: New file. Definition of
1807 'struct objc_class' moved here.
1808 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1810 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1811 * objc/message.h: New file. Definitions for relval_t, apply_t,
1812 arglist, arglist_t and objc_msg_lookup were moved here.
1813 * objc/objc.h: Include the above files instead of defining the
1814 corresponding structs, types and functions here. Added new opaque
1815 definitions for SEL and Class. Use Class and not 'struct
1816 objc_class *' in the definition of 'struct objc_object'.
1817 Commented all types defined in the file. Removed special
1818 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1820 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1821 objc_unexpected_exception.h.
1822 * objc/objc-api.h: Updated include of
1823 objc-unexpetected-exception.h
1824 * objc/objc-exception.h: Updated comments.
1825 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1826 files. Reindented list of files.
1828 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1830 * objc/objc-api.h (objc_trace): Unused variable removed.
1832 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1834 * objc/deprecated: New directory.
1835 * objc/deprecated/README: New file.
1836 * objc/README: New file.
1837 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1838 objc/typedstream.h replaced with a placeholder including the file
1839 from the deprecated/ directory.
1840 * objc/deprecated/objc-unexpected-exception.h: New file with the
1841 definition of _objc_unexpected_exception.
1842 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1843 instead of defining _objc_unexpected_exception.
1844 * objc/deprecated/Object.h: New file with the deprecated Object
1845 methods in a 'Deprecated' category.
1846 * objc/Object.h Include deprecated/Object.h instead of defining
1847 the deprecated methods.
1848 * Object.m: Moved deprecated methods into 'Deprecated' category.
1849 * objc-private: New directory.
1850 * objc-private/README: New file.
1851 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1852 (install-headers): Create installation directory for
1853 OBJC_DEPRECATED_H headers, and install them.
1855 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1857 * objc/objc-exception.h: Fixed include of objc.h.
1859 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1861 * objc/objc-exception.h: New file.
1862 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1863 (objc_set_exception_matcher): Implemented.
1864 (objc_exception_throw): Use the uncaught exception handler if set.
1865 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1867 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1868 up. Removed segmentation fault when value is 'nil'.
1869 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1871 * Makefile.in (exception.lo, exception_gc.lo): Use
1872 -Wno-deprecated-declarations when compiling.
1873 (OBJC_H): Added objc-exception.h
1875 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1877 * objc/typedstream.h: Deprecate all functions in the file. This
1879 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1880 [-awake]): Documented that these methods are deprecated. Added a
1881 brief description of the Object class and its relationship to the
1883 * Makefile.in: Compile archive.c and Object.m with
1884 -Wno-deprecated-declarations.
1886 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1888 Removed obsolete intermediate threading layer.
1889 * thr.c: Use __gthread_objc_xxx functions directly instead of
1890 __objc_thread_xxx ones.
1891 * objc/thr.h: Removed prototypes of no longer existing
1892 __objc_thread_xxx functions.
1893 * Makefile.in: Removed thr-objc.lo.
1894 * thr-dce.c: File removed.
1895 * thr-decosf1.c: File removed.
1896 * thr-irix.c: File removed.
1897 * thr-mach.c: File removed.
1898 * thr-objc.c: File removed.
1899 * thr-os2.c: File removed.
1900 * thr-posix.c: File removed.
1901 * thr-pthreads.c: File removed.
1902 * thr-rtems.c: File removed.
1903 * thr-single.c: File removed.
1904 * thr-solaris.c: File removed.
1905 * thr-vxworks.c: File removed.
1906 * thr-win32.c: File removed.
1907 * README.threads: File removed.
1908 * THREADS.MACH: File removed.
1911 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1913 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1915 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1917 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1918 Add a comment as to why, update FIXME comments.
1920 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1922 * makefile.dos: Obsolete file removed.
1924 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1926 * aclocal.m4: Regenerate.
1928 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1931 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1932 Cygwin and MinGW hosts.
1933 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1934 (libobjc.dll): Likewise.
1935 * configure: Regenerate.
1937 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1939 * configure: Regenerate.
1941 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1943 * sarray.c (sarray_free): Use old_buckets variable.
1944 * encoding.c (objc_layout_structure_next_member): Remove unused
1945 bfld_type_size variable.
1947 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1949 * configure.ac (AC_PREREQ): Bump to 2.64.
1951 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1953 * aclocal.m4: Regenerate.
1954 * configure: Regenerate.
1955 * config.h.in: Regenerate.
1957 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1959 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1961 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1963 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1965 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1967 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1969 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1971 2009-04-09 Nick Clifton <nickc@redhat.com>
1973 * sendmsg.c: Change copyright header to refer to version 3 of
1974 the GNU General Public License with version 3.1 of the GCC
1975 Runtime Library Exception and to point readers at the COPYING3
1976 and COPYING3.RUNTIME files and the FSF's license web page.
1977 * NXConstStr.m: Likewise.
1978 * Object.m: Likewise.
1979 * Protocol.m: Likewise.
1980 * archive.c: Likewise.
1981 * class.c: Likewise.
1982 * encoding.c: Likewise.
1983 * exception.c: Likewise.
1987 * libobjc_entry.c: Likewise.
1988 * linking.m: Likewise.
1990 * nil_method.c: Likewise.
1991 * objc/NXConstStr.h: Likewise.
1992 * objc/Object.h: Likewise.
1993 * objc/Protocol.h: Likewise.
1994 * objc/encoding.h: Likewise.
1995 * objc/hash.h: Likewise.
1996 * objc/objc-api.h: Likewise.
1997 * objc/objc-decls.h: Likewise.
1998 * objc/objc-list.h: Likewise.
1999 * objc/objc.h: Likewise.
2000 * objc/runtime.h: Likewise.
2001 * objc/sarray.h: Likewise.
2002 * objc/thr.h: Likewise.
2003 * objc/typedstream.h: Likewise.
2004 * objects.c: Likewise.
2005 * sarray.c: Likewise.
2006 * selector.c: Likewise.
2007 * thr-dce.c: Likewise.
2008 * thr-decosf1.c: Likewise.
2009 * thr-irix.c: Likewise.
2010 * thr-mach.c: Likewise.
2011 * thr-objc.c: Likewise.
2012 * thr-os2.c: Likewise.
2013 * thr-posix.c: Likewise.
2014 * thr-pthreads.c: Likewise.
2015 * thr-rtems.c: Likewise.
2016 * thr-single.c: Likewise.
2017 * thr-solaris.c: Likewise.
2018 * thr-vxworks.c: Likewise.
2019 * thr-win32.c: Likewise.
2021 * libobjc.def: Change copyright header to refer to version 3 of
2022 the GNU General Public License and to point readers at the COPYING3
2023 file and the FSF's license web page.
2024 * makefile.dos: Likewise.
2026 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2028 * Makefile.in: Change copyright header to refer to version
2029 3 of the GNU General Public License and to point readers at the
2030 COPYING3 file and the FSF's license web page.
2031 * configure.ac: Likewise.
2033 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
2034 David Ayers <ayers@fsfe.org>
2037 * objc/objc-api.h (_objc_unexpected_exception): Declare
2038 new hook. Update copyright dates.
2039 * exception.c (objc_exception_throw): Use hook. Update
2041 * libobjc.def (_objc_unexpected_exception): Export hook.
2042 Update copyright dates.
2044 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2046 * configure: Regenerate.
2048 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2050 * configure: Regenerate.
2052 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
2054 * Object.m (errno): Replaced by errno.h include.
2055 (compare): Cast self to id to prevent warning on comparison.
2056 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
2058 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
2059 * thr-win32.c (__objc_thread_detach): Remove type warning.
2060 (__objc_thread_id): Likewise.
2061 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
2064 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2065 Steve Ellcey <sje@cup.hp.com>
2067 * configure: Regenerate for new libtool.
2068 * config.h.in: Regenerate for new libtool.
2070 2008-07-18 Matthias Klose <doko@ubuntu.com>
2072 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
2074 2008-07-18 Matthias Klose <doko@ubuntu.com>
2076 * Makefile.in: Include ../boehm-gc/threads.mk.
2077 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
2079 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2081 * Makefile.in (install-info): New stub target.
2083 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2085 * configure: Regenerate.
2087 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
2089 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
2090 if HAVE_GETIPINFO is not defined.
2092 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
2094 * Object.m (compare): Add type id.
2095 * objc/Object.h: Likewise.
2096 * archive.c (objc_read_class): Use size_t to extend version to be
2097 size of pointer scalar width.
2098 * sendmsg.c (rtx): Undefine it before redefinition.
2099 (__objc_print_dtable_stats): Cast arguments to long as intended.
2101 2008-05-30 Julian Brown <julian@codesourcery.com>
2103 * exception.c (__objc_exception_class): Initialise as constant
2104 array for ARM EABI. Change macro to static const for non-ARM EABI.
2105 (ObjcException): Add note about structure layout. Remove landingPad
2106 and handlerSwitchValue for ARM EABI.
2107 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
2109 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
2110 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
2111 ARM EABI unwinding support.
2112 (objc_exception_throw): Use memcpy to initialise exception class.
2114 2008-05-25 Alan Modra <amodra@bigpond.net.au>
2116 * encoding.c (strip_array_types): Rename from get_inner_array_type.
2117 (rs6000_special_round_type_align): Update.
2119 2008-05-09 Julian Brown <julian@codesourcery.com>
2121 * Makefile.in (LTLDFLAGS): New.
2122 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
2124 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2127 * aclocal.m4: Regenerate.
2128 * configure: Regenerate.
2130 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2132 * configure: Regenerate.
2134 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
2136 * configure.ac: Don't run config-ml.in directly.
2137 (multilib_arg): New.
2138 * configure: Regenerated.
2140 2007-08-06 Andrew Pinski <pinskia@gmail.com>
2143 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
2144 of _Unwind_Word for variables which are used in
2145 read_uleb128/read_sleb128.
2146 (PERSONALITY_FUNCTION): Likewise.
2148 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2150 * aclocal.m4: Regenerated.
2152 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2154 * configure.ac: Fix a typo in *-*-darwin clause.
2155 * configure: Regenerated.
2157 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
2159 * configure.ac: Fix a typo.
2160 * configure: Regenerated.
2162 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2164 * configure: Regenerate.
2166 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
2168 * Makefile.in: Replace all uses of libext with libsuffix.
2169 * configure.ac: Likewise.
2170 * configure: Regenerate.
2173 * Makefile.in: Remove all uses of $(libext).
2175 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
2177 * Makefile.in: Remove all uses of $(libext).
2179 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2181 * configure: Regenerate.
2182 * aclocal.m4: Regenerate.
2184 2007-04-21 Andrew Ruder <andy@aeruder.net>
2186 * sendmsg.c (__objc_get_forward_imp): Call
2187 __objc_msg_forward2 for real.
2189 2007-04-09 Andrew Ruder <andy@aeruder.net>
2191 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
2192 external libraries to provide a function that returns the real
2193 forwarding function based on both the selector and the receiver.
2194 * objc/objc-api.h: Define __objc_msg_forward2.
2196 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2198 * Makefile.in: Add dummy install-pdf target.
2200 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2202 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
2205 2006-10-31 Geoffrey Keating <geoffk@apple.com>
2207 * encoding.c (darwin_rs6000_special_round_type_align): New.
2209 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2211 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
2212 * configure.ac: Use multi.m4 from aclocal rather than custom
2213 code. Use multi_basedir instead of toplevel_srcdir.
2214 * aclocal.m4: Regenerate.
2215 * configure: Regenerate.
2217 2006-10-10 Brooks Moses <bmoses@stanford.edu>
2219 * Makefile.in: Added empty "pdf" target.
2221 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
2223 * configure: Regenerate.
2225 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2227 * Makefile.in: Add install-html target. Add install-html to .PHONY
2229 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2232 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2234 2006-01-24 David Ayers <d.ayers@inode.at>
2237 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2238 and insure the new strings are '\0' termintated.
2240 2006-01-24 David Ayers <d.ayers@inode.at>
2243 * configure.ac: Add include directives for --enable-objc-gc.
2244 * Makefile.in: Ditto.
2245 * configure: Regenerate.
2247 * gc.c (__objc_class_structure_encoding): Increment the used bytes
2248 instead of the local pointer to them.
2250 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2253 * objc/objc-api.c (_C_COMPLEX): New define.
2254 * encoding.c (objc_sizeof_type): Handle _C_Complex.
2255 (objc_alignof_type): Likewise.
2256 (objc_skip_typespec): Likewise.
2258 2005-12-15 David Ayers <d.ayers@inode.at>
2261 * README (+load,+initialize): Fix documentation to reflect
2262 intended and implemented semantics for +load and +initialize.
2264 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2266 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2268 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2269 (rs6000_special_round_type_align): Update for the ABI fix.
2270 (objc_layout_finish_structure): Correct the encoding which is passed to
2273 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2276 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2277 but use the struct layout functions.
2278 (objc_alignof_type): Likewise.
2279 (objc_layout_structure): Handle _C_UNION_B also.
2280 (objc_layout_structure_next_member): Likewise.
2281 (objc_layout_finish_structure): Likewise.
2283 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2286 * objc/objc-api.h (_C_BOOL): New define.
2287 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2288 (objc_alignof_type): Likewise.
2289 (objc_skip_typespec): Likewise.
2291 2005-11-20 David Ayers <d.ayers@inode.at>
2294 * objc/hash.h: Remove deprecated hash API.
2295 * hash_compat.c: Remove.
2296 * Makefile.in: Remove reference to hash_compat.c.
2298 * configure.ac (VERSION): Bump library version to 2:0:0.
2299 * configure: Regenerate.
2301 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
2304 * thr-objc.c (_XOPEN_SOURCE): Define.
2306 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
2309 * objc/objc-api.h (struct objc_ivar): Move definition to
2312 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
2313 Rasmus Hahn <rassahah@neofonie.de>
2316 * archive.c (objc_write_type): Correct the element offset.
2317 (objc_read_type): Likewise.
2319 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2321 * All files: Update FSF address.
2323 2005-08-13 Marcin Koziej <creep@desk.pl>
2324 Andrew Pinski <pinskia@physics.uc.edu>
2327 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2329 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2331 * Makefile.in (extra_ldflags_libobjc): New.
2332 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2333 (libobjc_gc$(libext).la): Likewise.
2334 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2335 "-Wl,-single_module".
2336 * configure: Regenerate.
2337 * linking.m (_objcInit): Remove.
2339 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2342 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2344 2005-06-08 David Ayers <d.ayers@inode.at>
2346 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2347 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2348 objc/runtime.h, objc/sarray.h, objc/thr.h,
2349 objc/typedstream.h: Do not include Objective-C headers as
2352 2005-06-07 David Ayers <d.ayers@inode.at>
2354 * archive.c, init.c, selector.c: Include hash.h.
2355 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2356 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2357 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2358 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2359 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2360 Include Objective-C headers with quotes and objc/ directory
2363 2005-05-19 Richard Henderson <rth@redhat.com>
2365 * exception.c: Revert last change.
2367 2005-05-19 David Ayers <d.ayers@inode.at>
2369 * exception.c: Include tsystem.h for unwind.h.
2371 2005-05-09 Mike Stump <mrs@apple.com>
2373 * configure: Regenerate.
2375 2005-04-12 Mike Stump <mrs@apple.com>
2377 * configure: Regenerate.
2379 2005-03-21 Zack Weinberg <zack@codesourcery.com>
2381 * Makefile.in: Set gcc_version here.
2382 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2383 in definition of toolexeclibdir so that $(gcc_version) is expanded
2385 * aclocal.m4, configure: Regenerate.
2387 2005-03-03 David Ayers <d.ayers@inode.at>
2389 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2390 version reference. Correct typo.
2392 2005-03-02 David Ayers <d.ayers@inode.at>
2395 * Makefile.in (OBJS): Add hash_compat.lo.
2396 (OBJS_GC): Add hash_compat_gc.lo.
2397 (hash_compat_gc.lo): New target and rule.
2398 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2399 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2400 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2401 with objc_. Add deprecated non prefixed inlined versions.
2402 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2404 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2405 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2407 * hash_compat.c: New file.
2408 * archive.c: Update callers.
2410 * selector.c: Likewise.
2411 * libobjc.def: Add objc_ versions of hash functions.
2413 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2416 * Makefile.in (GTHREAD_FLAGS): Remove.
2417 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2418 * thr-objc.c: Include config.h.
2419 * configure.ac: Instead of looking at GCC's makefile, figure out if
2420 GTHREAD_FLAGS should be defined by looking at the `thread model'
2422 * configure: Regenerate.
2423 * config.h.in: Regenerate.
2425 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2428 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2429 (Determine CFLAGS for gthread): Use $host_subdir.
2430 * configure: Regenerate.
2431 * Makefile.in (host_subdir): New.
2434 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2437 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2439 Include limits.h and stdlib.h.
2440 Define BITS_PER_WORD.
2442 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
2444 * selector.c (__objc_init_selector_tables): Add missing void to
2447 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
2449 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2450 * configure, aclocal.m4: Regenerate.
2452 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2454 * configure: Regenerate for libtool change.
2456 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2458 * configure: Regenerate for libtool reversion.
2460 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2462 * configure: Regenerate for libtool change.
2464 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2466 * aclocal.m4, config.h.in: Regenerate.
2468 2004-10-08 Mike Stump <mrs@apple.com>
2469 Andrew Pinski <pinskia@physics.uc.edu>
2471 * aclocal.m4: Rename to ...
2472 * acinclude.m4: here and also use m4_include instead of sinclude.
2473 * aclocal.m4: Regenerate.
2474 * configure: Regenerate.
2475 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2476 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2478 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2480 * archive.c: Fix all the warnings about passing unsigned char*
2481 to char* and the other way too.
2483 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2486 * exception.c: Include config.h
2487 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2489 * configure.ac: Find out what exception handling code we use.
2490 * configure: Regenerate.
2491 * config.h.in: New file, regenerate.
2493 2004-09-16 Andrew Pinski <apinski@apple.com>
2495 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2497 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2499 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2500 ACX_NONCANONICAL_TARGET.
2501 * configure: Regenerate.
2503 2004-08-13 Ziemowit Laski <zlaski@apple.com>
2505 * objc/sarray.h: Hoist include of assert.h near the top of file,
2506 and mark the remainder of the file 'extern "C"'.
2508 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2510 * objc/Object.h: Move includes out of extern "C" blocks.
2511 * objc/encoding.h: Likewise.
2512 * objc/hash.h: Likewise.
2513 * objc/objc-api.h: Likewise.
2514 * objc/runtime.h: Likewise.
2515 * objc/sarray.h: Likewise.
2516 * objc/typedstream.h: Likewise.
2518 2004-08-12 Ziemowit Laski <zlaski@apple.com>
2520 * objc/NXConstStr.h: Update copyright date; bracket with
2521 'extern "C"' for C++ use; make include syntax consistent
2522 by using <...> instead of "..."; hoist <objc/...> includes
2523 above the 'extern "C"' block.
2524 * objc/Object.h: Likewise.
2525 * objc/Protocol.h: Likewise.
2526 * objc/encoding.h: Likewise.
2527 * objc/hash.h: Likewise.
2528 * objc/runtime.h: Likewise.
2529 * objc/sarray.h: Likewise.
2530 * objc/thr.h: Likewise.
2531 * objc/typedstream.h: Likewise.
2532 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2533 (objc_static_instances): For C++ case, do away with
2535 (objc_method): Hoist definition to file scope.
2536 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2537 class_get_instance_method, class_create_instance,
2538 class_get_class_name, class_get_instance_size,
2539 class_get_meta_class, class_get_super_class, class_get_version,
2540 class_is_class, class_is_meta_class, class_set_version,
2541 class_get_gc_object_type, class_ivar_set_gcinvisible,
2542 get_imp): Rename 'class' parameter to '_class'.
2543 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2544 * objc/objc.h: Update copyright date.
2545 (arglist_t): Provide a union tag.
2547 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2549 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2550 but instead use the attribute noreturn.
2552 2004-06-28 Zack Weinberg <zack@codesourcery.com>
2554 * encoding.c: Rename target_flags with a #define to avoid
2555 conflict with a prior declaration.
2557 2004-06-24 Andrew Pinski <apinski@apple.com>
2559 * objc/encoding.h: Wrap the functions with extern "C" for C++
2561 * objc/hash.h: Likewise.
2562 * objc/objc-api.h: Likewise.
2563 * objc/objc-list.h: Likewise.
2564 * objc/runtime.h: Likewise.
2565 * objc/sarray.h: Likewise.
2566 * objc/thr.h: Likewise.
2567 * objc/typedstream.h: Likewise.
2570 2004-06-21 Nick Clifton <nickc@redhat.com>
2572 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2575 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
2577 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2578 (exception_gc.lo): New.
2579 (OBJS_GC): Add exception_gc.lo.
2581 2004-06-17 Richard Henderson <rth@redhat.com>
2583 * exception.c: New file.
2584 * Makefile.in (exception.lo): New.
2587 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2589 * linking.m (_objcInit): New empty function
2592 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2594 * configure.ac: Support --enable-shared=libobjc.
2595 * configure: Regenerate.
2598 * configure.ac: Do not disable shared by default.
2599 * configure: Regenerate.
2601 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2603 * Protocol.m ([-isEqual:]): Small optimizations returning
2604 immediately if the argument is equal to self, and accessing
2605 the argument's name directly if it's a protocol.
2607 2004-06-03 David Ayers <d.ayers@inode.at>
2609 * Protocol.m ([-isEqual:]): Test the class of the argument.
2611 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2613 * configure.ac (includedir): Rename to ...
2615 * Makefile.in: s/includedir/includedirname/.
2618 * configure.ac (includedir): Set to "include"
2620 (libext) Set to empty except for Darwin.
2621 * configure: Regenerate
2622 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2623 s/include/$(includedir)/g.
2625 2004-05-25 Daniel Jacobowitz <drow@false.org>
2627 * Makefile.in: Add .NOEXPORT.
2629 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2631 Merge from the libobjc-branch
2632 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2634 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2636 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2638 * Makefile.in (OBJC_H): Add objc-deps.h.
2640 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2642 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2643 ([-hash], [-isEqual:]): New methods.
2645 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2647 * sarray.c (sarray_free): Add a better comment.
2649 2004-01-27 Adam Fedor <fedor@gnu.org>
2651 * hash.c (hash_add): Cast cachep to int.
2652 * selector.c (__sel_register_typed_name): Cast
2653 soffset_decode to int.
2655 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2657 * selector.c: Rename register_selectors_from_list to
2658 __objc_register_selectors_from_list. Update caller.
2659 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2660 while registering selectors. Use __sel_register_typed_name instead
2661 of sel_register_typed_name. Check for NULL method_name:s.
2662 (pool_alloc_selector): New function.
2663 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2664 selector structures.
2665 * sendmsg.c (class_add_method_list): Use
2666 __objc_register_selectors_from_list.
2667 * objc/runtime.h: Add __objc_register_selectors_from_list.
2669 2004-01-25 Adam Fedor <fedor@gnu.org>
2670 Nicola Pero <n.pero@mi.flashnet.it>
2671 Andrew Pinski <pinskia@physics.uc.edu>
2673 * objc/objc-decls.h: New file.
2674 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2675 (_objc_load_callback): Likewise.
2676 (_objc_object_alloc): Likewise.
2677 (_objc_object_copy): Likewise.
2678 (_objc_object_dispose): Likewise.
2680 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2682 * archive.c: s/__inline__/inline
2683 * sendmsg.c: Likewise.
2685 * encoding.c: Remove FIXME about the warning
2686 about unused variable.
2687 * sendmsg.c: Add a FIXME comment saying that
2688 this should be using libffi.
2690 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2693 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2695 * archive.c (objc_read_class): Initialize class_name.
2696 (objc_read_selector): Initialize selector_name.
2698 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2700 * Makefile.in (toolexecdir): Remove trailing space.
2702 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2705 * configure.ac: De-precious CC so multilibs work.
2706 * configure: Regenerate.
2708 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2710 * configure.ac: Restore toolexecdir.
2711 * Makefile.in: Restore toolexecdir.
2712 * configure: Regenerate.
2714 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2716 * configure.ac: Remove (unused) glibcpp_prefixdir.
2717 * configure: Regenerate.
2719 * configure.in: Rename to configure.ac.
2720 * Makefile.in: Update to match.
2722 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2723 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2724 * configure.in: Remove glibcpp_toolexecdir (unused).
2725 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2726 config.h or stamp-h (unused). Move one comment to the right place.
2727 * configure: Regenerate.
2728 * config.h.in: Remove (unused).
2730 * config.h.in: Regenerate with autoheader.
2732 * Makefile.in: Remove (unused) gcc_version_trigger.
2733 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2734 gcc_version_trigger.
2735 * configure: Regenerate.
2737 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2738 Sort file into sections. Remove dnl where appropriate. Fix
2740 * configure: Regenerate.
2742 * configure.in: Replace old AC_PROG_CC hack with new one.
2743 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2744 are no subdirectory output files, so this is fine). Change prereq
2746 * aclocal.m4: Include ../config/no-executables.m4.
2747 * configure: Regenerate with autoconf 2.59.
2749 * configure.in: Improve comments on gthread_cflags. Improve m4
2750 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2751 * configure: Regenerate.
2753 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2754 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2755 redundant checks for values of RANLIB, AR, INSTALL.
2756 * configure: Regenerate.
2758 * configure.in: Clean up handling of
2759 --enable-version-specific-runtime-libs and related variables;
2760 replace 'if test' with 'case' where reasonable. Fix comments.
2761 Remove useless libstdcxx_interface.
2762 * configure: Regenerate.
2764 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2765 Replace uses of target_alias with target_noncanonical.
2766 * aclocal.m4: Include ../config/acx.m4.
2767 * configure: Regenerate.
2768 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2769 Fix copyright statement.
2771 * configure.in: Hand-inline bulky, confusing macros from
2772 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2773 Update copyright notice. Remove stuff for automake, which isn't
2774 used in this directory. Remove emacs local variables.
2775 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2776 * configure: Regenerate.
2778 2004-03-16 Manfred Hollstein <mh@suse.com>
2780 * Makefile.in, configure.in, configure: Update copyright years.
2782 2004-03-15 Manfred Hollstein <mh@suse.com>
2784 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2785 definition from configure.in.
2786 * configure.in (PACKAGE): Add definition.
2787 (VERSION): Add definition; substitute it in output files.
2788 * configure: Re-generate.
2790 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2792 * objc/hash.h (hash_string, compare_strings):
2793 Add type-casts to make Objective-C++ happy.
2794 * objc/typedstream.h (objc_get_stream_class_version):
2795 Rename parameter from 'class' to 'class_name' to make
2796 Objective-C++ happy.
2798 2004-03-01 Michael Matz <matz@suse.de>
2800 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2802 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2804 * objc/objc-api.h (objc_super): The 'class' field shall
2805 be named 'super_class' #ifdef __cplusplus.
2807 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2810 * encoding.c (rs6000_special_round_type_align): Define.
2812 2004-01-14 Adam Fedor <fedor@gnu.org>
2815 * selector.c (__objc_register_instance_methods_to_class): Free
2816 new_list if not used.
2818 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2821 * sarray.c (sarray_free): Free array->is_copy_of latter.
2823 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2826 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2827 instance_methods if it's NULL.
2828 (descriptionForClassMethod): Likewise for class_methods.
2830 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2832 * Makefile.in (runtime-info.h): Remove -Wp.
2834 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2836 * Makefile.in (CC1OBJ): Remove.
2837 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2839 Use .m extension for temporary file.
2840 Remove assembler temp file.
2842 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2844 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2846 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2848 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2850 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2852 * configure: Regenerate.
2854 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2856 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2857 (libdir)/gcc-lib/ when installing.
2858 * configure: Regenerate.
2860 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2863 * sendmsg.c (get_imp): Fixed rare threading problem.
2864 (__objc_responds_to): Similar fixes.
2865 (objc_msg_lookup): Similar fixes.
2866 (__objc_init_install_dtable): Lock the runtime before checking if the
2869 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2871 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2872 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2873 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2874 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2875 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2876 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2877 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2878 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2879 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2880 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2881 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2883 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2884 Nicola Pero <n.pero@mi.flashnet.it>
2887 * init.c (class_superclass_of_class): New function.
2888 (create_tree_of_subclasses_inherited_from): Use it.
2889 (__objc_tree_insert_class): Likewise.
2890 (class_is_subclass_of_class): Likewise.
2892 2003-04-11 David Chad <davidc@freebsd.org>
2893 Loren J. Rittle <ljrittle@acm.org>
2896 * objc/hash.h (hash_string): Constify correctly.
2897 (compare_ptrs): Use direct compare.
2898 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2899 * objc/sarray.h: Global rename index to indx to avoid shadow.
2901 2003-03-12 Andreas Schwab <schwab@suse.de>
2903 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2904 glibcpp_toolexeclibdir.
2905 * configure: Rebuilt.
2907 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2909 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2911 * configure: Rebuilt.
2913 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2915 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2916 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2917 version_specific_libs is enabled.
2918 * configure: Rebuilt.
2920 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2922 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2923 (install-libs, install-headers): Prepend $(DESTDIR) to
2924 destination paths in all (un)installation commands.
2926 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2928 * thr-objc.c: Include coretypes.h and tm.h.
2930 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2932 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2934 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2936 * configure.in: Remove skip-this-dir support.
2937 * configure: Regenerate.
2939 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2941 * Makefile.in (all): Fix multilib parallel build.
2943 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2945 * sendmsg.c (nil_method): Declare not to take a variable number of
2947 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2948 (objc_msg_lookup_super): The same.
2950 2002-09-10 Jan Hubicka <jh@suse.cz>
2952 * nil_method.c (nil_method): No longer defined with variable
2955 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2957 * objc/encoding.h: Fix formatting.
2958 * objc/hash.h: Likewise.
2959 * objc/objc-api.h: Likewise.
2960 * objc/runtime.h: Likewise.
2961 * objc/thr.h: Likewise.
2962 * archive.c: Likewise.
2963 * class.c: Likewise.
2964 * encoding.c: Likewise.
2969 * nil_method.c: Likewise.
2970 * objects.c: Likewise.
2971 * sarray.c: Likewise.
2972 * selector.c: Likewise.
2973 * sendmsg.c: Likewise.
2974 * thr-mach.c: Likewise.
2977 2002-06-25 DJ Delorie <dj@redhat.com>
2979 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2980 GLIBCPP_TOPREL_CONFIGURE.
2981 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2982 * configure: Regenerate.
2984 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2986 * Object.m (forward, read, write): Fix unused parameter warnings.
2987 * encoding.c: Include <stdlib.h>.
2988 (target_flags): Mark with attribute unused.
2990 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2991 (__objc_generate_gc_type_description): Prototype.
2992 * selector.c (__objc_selector_max_index): Change to unsigned int.
2994 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2996 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2997 we always have a return value: if __objc_msg_forward does not
2998 supply a forwarding implementation, return the default
2999 __builtin_apply based one.
3001 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3003 * Object.m: Fix signed/unsigned warning.
3004 * Protocol.m: Likewise.
3005 * archive.c: Always include stdlib.h.
3006 (objc_read_short, objc_read_unsigned_short, objc_read_int,
3007 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
3008 Fix signed/unsigned warning.
3009 (objc_write_type, objc_read_type, objc_write_types,
3010 objc_read_types): Ensure ctype 8-bit safety.
3011 (__objc_no_write, __objc_no_read): Mark unused parameters.
3012 * class.c (class_table_setup): Specify void arg.
3013 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
3014 objc_skip_typespec, objc_skip_offset,
3015 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
3016 (objc_layout_structure_next_member): Ensure variables are
3018 * gc.c (__objc_generate_gc_type_description,
3019 class_ivar_set_gcinvisible): Mark unused parameters.
3020 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
3022 (__objc_init_protocols) Fix signed/unsigned warning.
3023 * nil_method.c (nil_method): Mark unused parameters.
3024 * thr.h (objc_thread_callback): Specify void arg.
3025 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
3026 signed/unsigned warning.
3027 (sarray_free): Fix formatting.
3028 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
3029 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
3031 2002-06-09 Andreas Jaeger <aj@suse.de>
3033 * encoding.c (objc_layout_structure_next_member): Remove unused
3036 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3038 * Makefile.in (SHELL): Set to @SHELL@.
3040 (ALL_CFLAGS): Add $(WARN_CFLAGS).
3042 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3044 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
3045 * configure: Regenerate.
3047 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
3049 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3050 script entry, and set LD to it when configuring multilibs.
3051 * configure: Rebuilt.
3053 2002-04-19 David O'Brien <obrien@FreeBSD.org>
3055 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
3057 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
3060 * objc/objc-api.h (struct objc_protocol_list): Change type of
3061 member count from int to size_t.
3063 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3066 * aclocal.m4: Replace with version copied from libstdc++-v3.
3067 * configure.in: Update for changes to aclocal and Makefile.
3068 * configure: Regenerate.
3069 * Makefile.in: Correct install of multilibs and shared libs, use
3070 INSTALL_DATA for include files.
3072 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
3074 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
3075 categories - when an unclaimed category was found, the loop was
3076 doing two steps forward instead of one, so that in certain cases
3077 it was failing to properly load all the categories. (Reported
3078 with fix by Alexander Malmberg <alexander@malmberg.org>).
3080 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
3082 * encoding.c: Add target_flags.
3084 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
3086 * objc/objc-api.h (_C_VECTOR): New.
3088 * encoding.c (VECTOR_TYPE): New.
3090 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
3092 * class.c: Rewritten the class table to use optimized, lock-free
3093 lookup. This more than doubles the speed of class method
3094 invocations. (class_table_setup), (class_table_insert),
3095 (class_table_replace), (class_table_get_safe),
3096 (class_table_next), (class_table_print),
3097 (class_table_print_histogram): New functions.
3098 (__objc_init_class_tables): Use class_table_setup.
3099 (__objc_add_class_to_hash): Use class_table_get_safe and
3100 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
3101 assert the existence of the table; do not lock the runtime; use
3102 class_table_get_safe. (objc_next_class): Use class_table_next.
3103 (__objc_resolve_class_links): Use class_table_next.
3104 (class_pose_as): Use class_table_replace.
3106 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
3108 * gc.c: Removed the DEBUG declaration.
3110 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
3112 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
3113 rather than through objc_thread_id, to save a function call.
3114 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
3117 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
3119 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
3120 to cast an id to a Class, which can not be done. Make the check
3121 by using CLS_ISMETA on the class pointer instead.
3122 (object_is_meta_class): Similar fix.
3124 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
3126 * configure.in (AC_EXEEXT): Work around in case it expands to
3127 nothing, as in autoconf 2.50.
3128 * acinclude.m4: Likewise.
3129 * configure: Rebuilt.
3131 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
3133 * THREADS: Explain that when we compile libobjc inside GCC, we
3134 always use thr-objc.c as a backend, which uses GCC's thread code.
3136 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
3138 * init.c (__objc_send_message_in_list): When setting a new entry
3139 in __objc_load_methods use the method IMP as key, but check to see
3140 if the method is in the hashtable by looking at the IMP also.
3141 Also ... call the method after adding it to the hashtable rather
3142 than before ... thus preventing an obscure possibility of infinite
3143 recursion if a +load method itself loads a subclass.
3145 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
3147 * init.c (__objc_send_message_in_list): When setting a new entry
3148 in __objc_load_methods use the method name as key, not the method
3149 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
3151 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
3153 * objc-features.texi: Move to ../gcc/objc.texi.
3155 * Makefile.in: Don't generate documentation from
3158 2001-05-01 Mark Mitchell <mark@codesourcery.com>
3160 * fdl.texi: New file.
3161 * objc-features.texi: Simplify.
3162 * Makefile.in: Adjust accordingly.
3164 2001-04-30 Mark Mitchell <mark@codesourcery.com>
3166 * objc-features.texi: Use the GFDL.
3168 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
3170 * encoding.c (REAL_TYPE): Define.
3172 2001-03-19 David Edelsohn <edelsohn@gnu.org>
3174 * encoding.c (TYPE_MODE): Define.
3176 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
3178 * thr.c (objc_thread_add): New function.
3179 (objc_thread_remove): Ditto.
3180 * objc/thr.h: Declare them.
3181 * libobjc.def: Mention them.
3183 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
3185 * objc-features.texi: Document the @compatibility_alias compiler
3186 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
3188 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3190 * sendmsg.c (__objc_forward): Delete strlen() declaration.
3192 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3194 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
3195 we're not interested in the result and they might fail.
3196 * configure: Regenerated.
3198 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3200 * objc-features.texi: Use @email.
3202 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3204 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
3207 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
3209 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
3210 determines the value dynamically.
3212 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
3214 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
3215 libraries to provide a function that returns the real forwarding
3216 function. This can alleviate problems __builtin_apply() and
3217 friends have on various platforms. (Solution suggested by Helge
3220 * objc/objc-api.h: Define __objc_msg_forward.
3222 * sendmsg.c: Define gen_rtx_REG.
3224 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3226 * thr-rtems.c: New file. Stub to compile.
3228 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3230 * configure: Rebuilt with new libtool.m4.
3232 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3234 * configure.in: Create a config.h file. Check for <sched.h>.
3235 * configure: Regenerate.
3237 * config.h.in: Check for <sched.h>.
3239 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
3241 * configure: Regenerate after change to ../libtool.m4.
3243 2000-08-14 Andreas Schwab <schwab@suse.de>
3245 * objc-features.texi (Top): Move @menu at end of node.
3247 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
3249 * objc-features.texi: Move @node Top before @menu.
3251 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3253 * objc-features.texi: Documented the new -fconstant-string-class
3256 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3258 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3259 improve the Posix thread support for Objective-C.
3261 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3263 * aclocal.m4: Replace copy of ../libtool.m4 with
3264 sinclude(../libtool.m4).
3266 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
3268 * configure.in: Added libtool support; build shared libraries
3269 if --enable-shared was passed on command line.
3270 * Makefile.in: Modified most compilation commands to use libtool.
3271 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3272 libtool distribution.
3274 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3276 * sarray.c, Object.m: Removed the explicit prototypes for strlen
3277 and memcpy on 64-bit platforms (Suggested by Rodney Brown
3280 2000-05-12 H.J. Lu (hjl@gnu.org)
3282 * Makefile.in (GTHREAD_FLAGS): New.
3283 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3284 (OBJC_THREAD_FILE): Changed to thr-objc.
3286 * configure.in (GTHREAD_FLAGS): New, check and replace it for
3288 (OBJC_THREAD_FILE): Removed.
3292 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3294 * objc/hash.h: Include string.h.
3296 2000-04-15 David Edelsohn <edelsohn@gnu.org>
3298 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3300 2000-04-12 Jakub Jelinek <jakub@redhat.com>
3302 * Object.m (strlen): Provide prototype on all 64bit platforms,
3304 * sarray.c (memcpy): Likewise.
3305 * encoding.c (objc_layout_finish_structure): Don't use
3306 ROUND_TYPE_ALIGN on sparc.
3308 * encoding.c (objc_layout_structure_next_member): Do the whole
3309 procedure even for the first member, so that we get correct
3312 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3314 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3317 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3319 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3321 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3323 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3325 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3327 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3328 the compiler when building C code.
3330 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3332 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3333 libdir, libsubdir and tooldir.
3335 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3337 * init.c (__objc_force_linking): Make global.
3339 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3341 * configure.in (AC_EXEEXT): Remove call.
3342 (compiler_name): Explicitly check with no extension and .exe
3344 * configure: Regenerate.
3346 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3348 * Makefile.in (CC1OBJ): Define in terms of CC.
3349 (runtime-info.h): Use.
3351 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3353 * objc-features.texi: Updated the URL to Boehm's GC page.
3355 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3357 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3358 the char as being signed (patch from Daniel Jacobowitz
3361 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3363 * configure.in (AC_PREREQ): Update to 2.13.
3364 (AC_EXEEXT): Call to find possible file extension.
3365 (compiler_name): Use.
3366 * configure: Regenerate.
3368 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3370 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3372 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3374 * configure.in (thread_file): Correct and simplify code to find
3376 * configure: Rebuilt.
3378 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3380 * configure.in (compiler_name): Add check to detect if this
3381 language's compiler has been built.
3382 * configure: Regenerate.
3384 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3386 * configure.in: Use AC_PREREQ(2.12.1).
3388 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3390 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3392 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3394 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3396 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3398 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3400 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3402 * objc-features.texi (Top): Changed the email address.
3403 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3405 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3407 * encoding.c: Redefine get_inner_array_type to get the first entry
3410 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3412 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3413 (objc_get_type_qualifiers): Similarly.
3414 * objc/encoding.h (_C_BYREF): Define.
3417 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3419 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3420 works out on 64-bit systems.
3422 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3424 * Makefile.in (INCLUDES): Make it multilib-friendly.
3426 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3428 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3430 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3431 Jeffrey A Law (law@cygnus.com)
3433 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3434 (FLAGS_TO_PASS): Added.
3435 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3437 * archive.c: Change config.h to tconfig.h.
3439 * configure.in: Find gcc's object directory even for multilibs.
3441 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
3443 * configure.in: Escape ^ in grep string.
3444 * configure: Rebuilt.
3446 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3448 * All .h files pushed down into the objc/ subdirectory.
3449 * Makefile.in (copy_headers): Corresponding changes.
3450 * configure.in (AC_INIT): Corresponding changes.
3451 * configure: Rebuilt.
3453 1998-09-30 Ben Elliston <bje@cygnus.com>
3454 Jeff Law <law@cygnus.com>
3456 * Makefile.in: Rewrite.
3458 * configure.in: Likewise.
3460 * configure: Regenerate.
3462 * All .c files. Remove "objc" prefix when including objc header
3463 files. Include tconfig.h, not ../tconfig.h.
3465 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3467 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3468 (get_inner_array_type): Define.
3470 1998-09-21 Ben Elliston <bje@cygnus.com>
3472 * New directory. Moved files from ../gcc/objc.
3474 Copyright (C) 1998-2017 Free Software Foundation, Inc.
3476 Copying and distribution of this file, with or without modification,
3477 are permitted in any medium without royalty provided the copyright
3478 notice and this notice are preserved.