1 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
4 * init.c (__objc_exec_class): Work around a bug in clang's code
5 generation. Clang sets the class->info field to values different
6 from 0x1 or 0x2 (the only allowed values in the traditional GNU
7 Objective-C runtime ABI) to store some additional information, but
8 this breaks backwards compatibility. Wipe out all the bits in the
9 fields other than the first two upon loading a class.
11 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
13 * class.c (objc_lookup_class): Added back for compatibility with
14 clang which seems to emit calls to it.
16 2011-10-08 Richard Frith-Macdonald <rfm@gnu.org>
17 Nicola Pero <nicola.pero@meta-innovation.com>
20 * sendmsg.c (__objc_send_initialize): If a class does not have an
21 +initialize method, search for an +initialize method in the
22 superclass and in the ancestor classes and execute the first one
23 that is found. This makes the GNU runtime behave in the same way
24 as the Apple/NeXT runtime with respect to +initialize methods and
27 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
30 * class.c (__objc_update_classes_with_methods): Iterate over meta
31 classes as well as normal classes when refreshing the method
32 implementations. This fixes replacing class methods.
34 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
36 * class.c (class_getSuperclass): Fixed to work with meta classes
37 still in construction too.
39 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
41 * class.c (class_getSuperclass): Fixed typo in comment.
43 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
46 * class.c (class_getSuperclass): Return the superclass if the
47 class is in construction.
48 * objc/runtime.h (class_getSuperclass): Updated documentation.
50 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
52 * Makefile.in (INCLUDES): Search
53 $(srcdir)/$(MULTISRCTOP)../libgcc.
55 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
57 * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
59 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
61 * configure.ac (VERSION): Bumped to 4:0:0.
62 * configure (VERSION): Likewise.
64 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
66 * objc/README: Updated.
67 * objc-private/selector.h: Updated comments.
69 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
71 * sendmsg.c (class_get_instance_method): Removed.
72 (class_get_class_method): Removed.
73 (objc_get_uninstalled_dtable): Removed.
75 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
77 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
78 * objects.c (class_create_instance): Removed.
79 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
80 * gc.c (__objc_generate_gc_type_description): Use
81 class_getInstanceSize() instead of class_get_instance_size().
82 * selector.c (sel_types_match): Made static.
83 (sel_get_typed_uid): Removed.
84 (sel_get_any_typed_uid): Removed.
85 (sel_get_name): Removed.
86 (sel_get_type): Removed.
87 (sel_register_name): Removed.
88 (sel_register_typed_name): Removed.
89 (sel_get_uid): Removed.
91 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
93 * encoding.c (method_get_number_of_arguments): Removed.
94 (method_get_sizeof_arguments): Removed.
96 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
98 * class.c (objc_next_class): Removed.
99 (class_pose_as): Removed.
101 (class_table_replace): Removed.
102 (objc_lookup_class): Removed.
104 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
106 Removed the Traditional Objective-C runtime public API.
107 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
108 (install-headers): Do not create the objc/deprecated directory and
109 do not install the deprecated headers.
110 (OBJC_H): Removed encoding.h and objc-api.h.
111 * Object.m: Removed all methods with the exception of -class and
112 -isEqual:. Updated includes. ([-class]): Use Modern API.
113 * objc/Object.h: Do not include deprecated/Object.h.
114 * objc/deprecated/Object.h: Removed.
115 * linking.m (__objc_linking): Call [Object class] instead of
117 * Protocol.m: Removed all methods with the exception of -isEqual:.
119 * objc/Protocol.h: Do not include deprecated/Protocol.h.
120 * objc/deprecated/Protocol.h: Removed.
121 * objc/deprecated/struct_objc_symtab.h: Removed.
122 * objc/deprecated/struct_objc_module.h: Removed.
123 * objc/deprecated/struct_objc_ivar.h: Removed.
124 * objc/deprecated/struct_objc_ivar_list.h: Removed.
125 * objc/deprecated/struct_objc_method.h: Removed.
126 * objc/deprecated/struct_objc_method_list.h: Removed.
127 * objc/deprecated/struct_objc_protocol_list.h: Removed.
128 * objc/deprecated/struct_objc_category.h: Removed.
129 * objc/deprecated/MetaClass.h: Removed.
130 * objc/deprecated/objc_msg_sendv.h: Removed.
131 * objc/deprecated/README: Removed.
132 * objc/deprecated/struct_objc_class.h: Removed.
133 * objc/deprecated/struct_objc_protocol.h: Removed.
134 * objc/deprecated/struct_objc_selector.h: Removed.
135 * objc/encoding.h: Removed.
136 * objc/message.h (struct objc_super): Removed the definition for
137 the Traditional Objective-C runtime API.
138 * objc/objc.h: Do not include objc/objc-decls.h.
139 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
140 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
141 and deprecated/objc_msg_sendv.h. Uncommented new definition of
143 * objc/objc-api.h: Removed.
144 * objc/runtime.h: Updated comments. Removed check to detect
145 concurrent usage of Traditional and Modern APIs.
146 * objc-private/module-abi-8.h: Always define struct objc_class and
147 struct objc_protocol. (struct objc_protocol_list): Changed type
148 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
149 (class_get_instance_size): Added.
150 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
151 'struct objc_protocol *' as argument, not a 'Protocol *'.
152 * objc-private/runtime.h: Updated comments.
153 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
154 * class.c: Include objc-private/selector.h.
155 (objc_get_meta_class): Return a Class instead of a MetaClass.
156 * encoding.c (method_get_next_argument): Removed.
157 (method_get_first_argument): Removed.
158 (method_get_nth_argument): Removed.
159 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
160 Include objc-private/module-abi-8.h and ctype.h.
161 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
162 objc_protocl *' as argument, not a 'Protocol *'.
163 (class_addProtocol): Added casts to 'struct objc_protocol *' and
165 (class_copyProtocolList): Likewise.
166 (protocol_conformsToProtocol): Likewise.
167 (protocol_copyProtocolList): Likewise.
168 * sarray.c: Include objc-private/module-abi-8.h.
169 * sendmsg.c (method_get_next_argument): Removed.
170 (method_get_first_argument): Removed.
171 (method_get_nth_argument): Removed.
172 (objc_msg_sendv): Removed.
173 (arglist_t, retval_t): New. (class_get_class_method): Take a
174 'Class', not 'MetaClass', argument.
175 * thr.c: Include module-abi-8.h.
177 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
179 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
180 and objc_get_uninstalled_dtable.h.
181 * objc/deprecated/struct_objc_static_instances.h: Removed.
182 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
183 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
184 and deprecated/objc_get_uninstalled_dtable.h.
186 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
188 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
189 * objc/deprecated/objc_object_alloc.h: Removed.
190 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
191 * objects.c (_objc_object_alloc, _objc_object_dispose,
192 _objc_object_copy): Removed.
193 * libobjc.def (__objc_object_alloc, __objc_object_copy,
194 __objc_object_dispose): Removed.
196 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
198 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
199 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
200 * objc/deprecated/METHOD_NULL.h: Removed.
202 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
204 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
205 objc_malloc.h and objc_unexpected_exception.h.
206 (exception.lo): Do not use -Wno-deprecated-declarations.
207 (exception_gc.lo): Likewise.
208 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
209 deprecated/objc_malloc.h and
210 deprecated/objc_unexpected_exception.h.
211 * objc/deprecated/objc_valloc.h: Removed.
212 * objc/deprecated/objc_malloc.h: Removed.
213 * objc/deprecated/objc_unexpected_exception.h: Removed.
214 * exception.c (_objc_unexpected_exception): Removed.
215 (objc_exception_throw): Do not check for
216 _objc_unexpected_exception.
217 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
218 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
219 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
221 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
223 * objc/objc.h: Do not include deprecated/STR.h.
224 * objc/deprecated/STR.h: Removed.
225 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
227 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
229 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
230 (OBJC_DEPRECATED_H): Likewise.
231 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
232 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
233 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
234 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
235 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
236 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
237 * objc/sarray.h: Removed.
238 * objc/hash.h: Removed.
239 * objc/deprecated/sarray.h: Removed.
240 * objc/deprecated/hash.h: Removed.
241 * objc/Object.h: Do not include objc/deprecated/hash.h
242 * Object.m: Include string.h.
243 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
244 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
247 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
249 * Object.m ([-forward::]): Removed.
250 * objc/deprecated/Object.h ([-forward::]): Removed.
251 * sendmsg.c (__objc_forward): Updated comments.
253 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
255 * Makefile.in (OBJC_H): Removed objc-list.h.
256 (OBJC_DEPRECATED_H): Removed objc-list.h.
257 * objc/objc-list.h: File removed.
258 * objc/deprecated/objc-list.h: File removed.
260 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
262 * Makefile.in (OBJC_H): Removed typedstream.h.
263 (OBJC_DEPRECATED_H): Removed typedstream.h.
264 (C_SOURCE_FILES): Removed archive.c.
265 (Object.lo): Rule removed.
266 (Object_gc.lo): Likewise.
267 (archive.lo): Likewise.
268 (archive_gc.lo): Likewise.
269 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
271 Do not include deprecated/typedstream.h.
272 * Object.m: Removed the same methods.
273 * archive.c: File removed.
274 * objc/typedstream.h: File removed.
275 * objc/deprecated/typedstream.h: File removed.
276 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
277 __objc_write_class, __objc_write_object, __objc_write_selector,
278 objc_close_typed_stream, objc_end_of_typed_stream,
279 objc_flush_typed_stream, objc_get_stream_class_version,
280 objc_open_typed_stream, objc_open_typed_stream_for_file,
281 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
282 objc_read_object, objc_read_selector, objc_read_short,
283 objc_read_string, objc_read_type, objc_read_types,
284 objc_read_unsigned_char, objc_read_unsigned_int,
285 objc_read_unsigned_long, objc_read_unsigned_short,
286 objc_write_array, objc_write_char, objc_write_int,
287 objc_write_long, objc_write_object, objc_write_object_reference,
288 objc_write_root_object, objc_write_selector, objc_write_short,
289 objc_write_string, objc_write_string_atomic, objc_write_type,
290 objc_write_types, objc_write_unsigned_char,
291 objc_write_unsigned_int, objc_write_unsigned_long,
292 objc_write_unsigned_short): Removed.
294 2011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
296 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
297 * objc/deprecated/objc_error.h: Removed.
298 * objc/objc-api.h: Do not include deprecated/objc_error.h.
299 * libobjc.def (objc_error, objc_verror): Removed.
300 * error.c (_objc_error_handler, objc_error, objc_verror,
301 objc_set_error_handler): Removed.
302 * Object.m ([-error:], [-perform:], [-perform:with:],
303 [-perform:with:with], [-subclassResponsibility:],
304 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
306 * objc/deprecated/Object.h: Removed the same methods.
307 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
308 method after trying to invoke the "doesNotRecognize:" method.
310 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
312 * sendmsg.c: Reindented part of the file. No non-trivial changes
315 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
317 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
318 not objc_lookup_class.
320 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
321 David Ayers <ayers@fsfe.org>
324 * sendmsg.c: Include objc/hash.h.
325 (get_implementation): New function, mostly with code from get_imp
326 updated to support the new +initialize dispatch table logic.
327 (get_imp): Use get_implementation.
328 (__objc_responds_to): Updated to support the new +initialize
329 dispatch table logic.
330 (class_respondsToSelector): Likewise.
331 (objc_msg_lookup): Use get_implementation.
332 (__objc_init_install_dtable): Removed.
333 (__objc_install_methods_in_dtable): Updated arguments.
334 (__objc_install_dispatch_table_for_class): Renamed to
335 __objc_install_dtable_for_class and updated to support the new
336 +initialize dispatch table logic.
337 (__objc_update_dispatch_table_for_class): Updated to support the
338 new +initialize dispatch table logic.
339 (__objc_forward): Call get_implementation instead of get_imp.
340 (prepared_dtable_table): New.
341 (__objc_prepare_dtable_for_class): New.
342 (__objc_prepared_dtable_for_class): New.
343 (__objc_get_prepared_imp): New.
344 (__objc_install_prepared_dtable_for_class): New.
346 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
349 * selector.c (__sel_register_typed_name): Use sel_types_match()
350 instead of strcmp() to compare selector types (Suggestion by
351 Richard Frith-Macdonald <rfm@gnu.org>).
353 2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
356 * Makefile.in (OBJC_GCFLAGS): Move ...
357 * configure.ac (enable_objc_gc): ... here.
358 Add $(libsuffix) to OBJC_BOEHM_GC.
359 * configure: Regenerate.
361 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
363 * selector.c (sel_getTypedSelector): Return NULL if there are
364 multiple selectors with conflicting types.
365 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
367 2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
370 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
373 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
375 * configure: Regenerate.
377 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
379 * init.c (create_tree_of_subclasses_inherited_from): Use
380 class_superclass_of_class instead of assuming a class is
381 unresolved when it could be resolved. Tidied up assignment and
383 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
384 (objc_tree_insert_class): Tidied up loop; return immediately upon
386 (__objc_exec_class): Do not set __objc_class_tree_list.
388 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
390 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
392 (sel_registerTypedName): Same.
393 (sel_registerName): Same.
394 * objc/runtime.h: Updated documentation.
396 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
398 * objc/runtime.h (class_addIvar): Updated documentation. The
399 alignment is actually the log_2 of the alignment in bytes.
400 * ivars.c (class_addIvar): Corresponding change to the
403 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
405 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
406 be consistent with method_getTypeEncoding and
407 ivar_getTypeEncoding.
408 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
409 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
410 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
411 (sel_get_type): Updated call to sel_getType.
413 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
415 * objc/runtime.h (class_conformsToProtocol,
416 class_copyProtocolList): Updated documentation.
418 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
420 * init.c (create_tree_of_subclasses_inherited_from): Updated
421 DEBUG_PRINTF messages.
422 (__objc_tree_insert_class): Same.
423 (__objc_send_load_using_method_list): Same.
424 (__objc_send_load): Same.
425 (__objc_exec_class): Same. In particular, do not print the module
426 name since it is no longer used.
427 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
428 tracking +initialize calls.
429 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
430 tracking updates of dispatch tables.
431 (__objc_install_dispatch_table_for_class): Same.
433 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
435 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
436 (libobjc_gc$(libsuffix).la): Likewise.
438 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
440 * sendmsg.c (class_addMethod): Return NO if the method already
443 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
445 * init.c (duplicate_classes): New.
446 (__objc_exec_class): Initialize duplicate_classes.
447 (__objc_create_classes_tree): Ignore classes in the
448 duplicate_classes table.
449 (__objc_call_load_callback): Same.
450 (__objc_init_class): If a duplicate class is found, add it to
451 duplicate_classes instead of aborting. Return YES if the class is
452 not a duplicate, and NO if it is.
453 * objc-private/runtime.h (__objc_init_class): Updated prototype.
455 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
457 * objc-private/objc-list.h: Reindented file. No code changes.
458 * objc-private/sarray.h: Same change.
460 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
462 * objc-private/accessors.h: Removed 'extern "C"' guards. This
463 file is never compiled with C++.
464 * objc-private/hash.h: Same change.
465 * objc-private/objc-list.h: Same change.
466 * objc-private/objc-sync.h: Same change.
467 * objc-private/protocols.h: Same change.
468 * objc-private/runtime.h: Same change.
469 * objc-private/sarray.h: Same change.
470 * objc-private/selector.h: Same change.
472 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
475 * class.c (__objc_add_class_to_hash): Return YES if the class was
476 added, and NO if it already existed.
477 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
478 NO, then abort the program with an error message.
479 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
482 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
484 * init.c (_objc_load_callback): Initialize with 0.
485 (__objc_call_callback): Renamed to __objc_call_load_callback.
486 Check _objc_load_callback only once, and if it is not set, return
488 (objc_send_load): Updated call to __objc_call_callback.
490 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
493 * init.c (__objc_send_message_in_list): Renamed to
494 __objc_send_load_using_method_list. Do not take an 'op' argument.
495 Register the 'load' selector if needed.
496 (__objc_send_load): Do not register the 'load' selector. Updated
497 call to __objc_send_message_in_list.
498 (__objc_create_classes_tree): Add the class of any claimed
499 category that was loaded in the module to the list of classes for
500 which we try to execute +load.
502 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
504 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
506 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
507 a pointer using DEBUG_PRINTF.
509 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
512 * selector.c (__sel_register_typed_name): When registering a new
513 selector with the same name as an existing one, reuse the existing
514 name string. Also updated types, casts and comments in the whole
517 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
519 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
520 to be 'struct objc_selector *' and not 'SEL'.
521 * init.c (__objc_exec_class): Call
522 __objc_register_selectors_from_module instead of iterating over
523 each selector and calling __sel_register_typed_name for each.
524 * objc-private/selector.h: Declare
525 __objc_register_selectors_from_module instead of
526 __sel_register_typed_name.
527 * selector.c (__objc_register_selectors_from_module): New.
528 (__sel_register_typed_name): Made static.
530 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
532 * linking.m: Do not include objc/NXConstStr.h.
534 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
536 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
537 * objc-private/common.h (DEBUG_PRINTF): To here.
538 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
540 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
542 * hash.c: Tidied up comments and indentation. No code changes.
544 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
547 * accessors.m (objc_getProperty): If not atomic, do not
548 retain/autorelease the returned value.
550 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
552 * objc-private/runtime.h (__objc_selector_max_index,
553 __objc_init_selector_tables, __objc_register_selectors_from_class,
554 __objc_register_selectors_from_list,
555 __objc_register_selectors_from_description_list): Moved to ...
556 * objc-private/selector.h: ... here.
558 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
560 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
561 (__objc_print_dtable_stats): Removed.
562 (__sel_register_typed_name): Removed.
563 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
565 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
567 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
568 if appropriate, after loading the module.
570 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
572 * sendmsg.c (method_setImplementation): Do not declare.
574 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
576 * objc/message.h: Updated comments.
577 * objc/runtime.h: Updated comments.
579 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
581 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
582 * protocols.c: Updated all calls to objc_lookupClass to call
583 objc_lookUpClass instead.
584 * sendmsg.c (objc_lookupClass): Do not declare.
585 (get_imp): Update call to objc_lookupClass to call
586 objc_lookUpClass instead.
587 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
589 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
591 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
592 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
593 define. Updated comments.
595 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
597 * objc/encoding.h: Updated comments.
598 * objc/runtime.h: Updated comments.
599 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
600 (objc_sizeof_type): Same.
601 (objc_alignof_type): Same.
602 (objc_aligned_size): Same.
603 (objc_promoted_size): Same.
604 (objc_skip_type_qualifiers): Same.
605 (objc_skip_typespec): Same.
606 (objc_skip_offset): Same.
607 (objc_skip_argspec): Same.
608 (objc_get_type_qualifiers): Same.
609 (objc_layout_structure): Same.
610 (objc_layout_structure_next_member): Same.
611 (objc_layout_finish_structure): Same.
612 (objc_layout_structure_get_info): Same.
614 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
616 * init.c: Updated comments.
617 * objc/objc-api.h: Updated comments.
618 * objc/runtime.h (_objc_load_callback): Declare.
620 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
622 * objc/Object.h: Include deprecated/typedstream.h and
623 deprecated/hash.h instead of typedstream.h. Updated comments.
625 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
627 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
628 * objc/deprecated/objc_msg_sendv.h: New.
629 * objc/message.h: Do not define retval_t, apply_t, arglist,
630 arglist_t, objc_msg_sendv, now in
631 objc/deprecated/objc_msg_sendv.h.
632 * objc/objc.h: Do not include message.h; include
633 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
634 * sendmsg.c: Include objc/message.h.
635 * thr.c: Include objc/message.h.
637 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
639 * objc/objc-exception.h: Include objc-decls.h. Mark all
640 functions with objc_EXPORT.
641 * objc/objc-sync.h: Same change.
643 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
645 * Protocol.m: Moved all methods, with the exception of -isEqual:,
646 into the 'Deprecated' category.
647 * objc/Protocol.h: Removed all methods, moved to
648 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
649 * objc/deprecated/Protocol.h: New.
650 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
652 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
654 * init.c: Include objc-private/selector.h. Do not declare
655 __sel_register_typed_name.
656 * objc-private/selector.h (__sel_register_typed_name): Declare.
657 * selector.c: Include objc-private/selector.h.
659 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
661 * class.c: Tidied up comments and indentation. No code changes.
667 * objc-foreach.c: Same.
674 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
676 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
677 instead of objc/objc-api.h.
678 (init_check_module_version): Take a 'struct objc_module *'
679 argument instead of 'Module_t'. Use 'struct objc_module *'
680 instead of 'Module_t'.
681 (__objc_created_classes_tree): Take a 'struct objc_module *'
682 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
684 (__objc_call_callback): Take a 'struct objc_module *' argument
685 instead of 'Module_t'; use 'struct objc_symtab *' instead of
686 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
687 (_objc_load_callback): Take a 'struct objc_category *' argument
688 instead of 'Category *'.
689 (class_superclass_of_class): Use objc_getClass() instead of
691 (create_tree_of_subclasses_inherited_from): Same change (also, use
692 an explicit 'if' instead of '?').
693 (objc_init_statics): Same change.
694 (objc_send_load): Same change.
695 (__objc_init_protocol): same change.
696 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
697 argument instead of 'MethodList_t'. Use 'struct objc_method *'
698 instead of 'Method_t'.
699 (__objc_send_load): Use 'struct objc_method_list *' instead of
700 'MethodList_t'. Use sel_registerName() instead of
702 (__objc_exec_class): Take a 'struct objc_module *' argument
703 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
704 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
705 Use 'struct objc_category *' instead of 'Category_t'.
707 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
709 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
710 Include objc-private/module-abi-8.h and objc-private/selector.h
711 instead of objc/encoding.h.
712 (objc_msg_lookup_super): Use super->super_class instead of
714 (method_get_first_argument, method_get_next_argument): Declare
716 (class_get_instance_method): Declare before using.
717 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
718 (__objc_init_dispatch_tables, __objc_send_initialize): Use
719 sel_registerName() instead of sel_register_name().
720 (__objc_forward): Use sel_getName() instead of sel_get_name().
721 (objc_get_uninstalled_dtable): Use 'void' as argument.
722 * objc-private/selector.h: New.
724 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
726 * objc/message.h (objc_super): When using the modern API, do not
727 define Super and Super_t, and always use 'super_class' for the
729 (objc_msg_lookup_super): Updated prototype to use 'struct
730 objc_super *' instead of 'Super_t'.
731 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
732 'struct objc_super *' instead of 'Super_t'.
734 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
736 * objc/message.h: Update comments, reindented code and moved
737 deprecated types and functions at the end of the file. No code
740 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
742 * ivars.c (class_addIvar): Use the 'size' argument instead of
743 trying to calculate it using objc_sizeof_type().
744 * objc/runtime.h (class_addIvar): Updated comments.
746 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
748 * sendmsg.c: Reindented some code and tidied up comments. No
751 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
753 * objc/Object.h: Moved all the methods, with the exception of
754 -class and -isEqual:, into ...
755 * objc/deprecated/Object.h: here.
756 * Object.m: Moved all the methods, with the exception of -class
757 and -isEqual: into the 'Deprecated' category.
759 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
761 * objects.c (object_copy): Do not #undef as we are no longer
762 including objc/objc-api.h.
763 * selector.c: Include objc/runtime.h and
764 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
765 objc/encoding.h. Updated
766 (__objc_register_selectors_from_class): Use struct
767 objc_method_list * instead of MethodList_t.
768 (__objc_register_selectors_from_list): Use Method instead of
770 (struct objc_method_description_list): Do not define here.
771 (__objc_register_instance_methods_to_class): Use struct
772 objc_method_list * instead of MethodList_t and Method instead of
775 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
777 * selector.c: Reindented some code and tidied up comments. No
780 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
782 * encoding.c (_darwin_rs6000_special_round_type_align): New.
783 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
785 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
787 * sendmsg.c (selector_resolveClassMethod): New.
788 (selector_resolveInstanceMethod): New.
789 (__objc_resolve_class_method): New.
790 (__objc_resolve_instance_method): New.
791 (get_imp): Call __objc_resolve_class_method or
792 __objc_resolve_instance_method at the appropriate time.
793 (objc_msg_lookup): Same.
794 (class_getClassMethod): Same.
795 (class_getInstanceMethod): Same.
796 (__objc_init_dispatch_tables): Initialize
797 selector_resolveClassMethod and selector_resolveInstanceMethod.
798 * objc/runtime.h: Updated documentation of class_getClassMethod,
799 class_getInstanceMethod and class_getMethodImplementation.
801 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
803 * objc-private/module-abi-8.h (struct objc_symtab): Updated
804 description of sel_ref_cnt and refs.
805 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
807 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
811 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
812 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
813 * aclocal.m4: Regenerate.
814 * configure: Regenerate.
816 2010-12-03 Matthias Klose <doko@ubuntu.com>
818 * configure.ac (VERSION): Bump the version to 3:0:0.
819 * configure: Regenerate.
821 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
823 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
824 pass nil as the receiver since we don't know the receiver at this
827 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
829 * ivars.c: Include stdlib.h.
830 * protocols.c: Same change.
832 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
834 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
836 * init.c: Include objc-private/accessors.h.
837 (__objc_exec_class): Call __objc_accessors_init.
838 * objc-private/accessors.h: New.
840 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
842 * objc/message.h: Moved initial includes outside of extern "C".
843 * objc/runtime.h: Add extern "C" for Objective-C++.
845 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
847 * init.c (objc_send_load): Do not wait for NXConstantString to be
848 registered before executing +load. There is no point if
849 -fconstant-string-class=xxx is used when compiling all modules,
850 as is the case for almost all users.
851 * linking.m (__objc_linking): Do not try to forcefully link in
854 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
856 * objc/runtime.h: Updated comments.
857 (class_addMethod): New.
858 (class_addIvar): New.
859 (class_replaceMethod): New.
860 (objc_allocateClassPair): New.
861 (objc_registerClassPair): New.
862 (objc_disposeClassPair): New.
863 * class.c (objc_allocateClassPair): New.
864 (objc_registerClassPair): New.
865 (objc_disposeClassPair): New.
866 (class_getSuperclass): Return Nil if a class is in construction.
867 * init.c (__objc_exec_class): Call __objc_init_class.
868 (__objc_init_class): New.
869 * ivars.c (class_copyIvarList): Return NULL if class is in
870 construction. Do not lock the runtime mutex.
871 (class_getInstanceVariable): Return NULL if class is in
872 construction. Do not lock the runtime mutex.
873 (class_addIvar): New.
874 * sendmsg.c (class_addMethod): New.
875 (class_replaceMethod): New.
876 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
877 (_CLS_IN_CONSTRUCTION): New.
878 (CLS_IS_IN_CONSTRUCTION): New.
879 (CLS_SET_IN_CONSTRUCTION): New.
880 (CLS_SET_NOT_IN_CONSTRUCTION): New.
881 * objc-private/runtime.h (__objc_init_class): New.
883 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
885 * class.c (class_getSuperclass): Call __objc_resolve_class_links
886 if the class is not resolved yet.
887 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
889 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
891 * objc/runtime.h (class_getIvarLayout): New.
892 (class_getWeakIvarLayout): New.
893 (class_setIvarLayout): New.
894 (class_setWeakIvarLayout): New.
895 * ivars.c (class_getIvarLayout): New.
896 (class_getWeakIvarLayout): New.
897 (class_setIvarLayout): New.
898 (class_setWeakIvarLayout): New.
900 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
902 * objc/runtime.h (class_copyPropertyList): New.
903 (class_getProperty): New.
904 (property_getAttributes): New.
905 (property_getName): New.
906 * ivars.c (class_copyPropertyList): New.
907 (class_getProperty): New.
908 (property_getAttributes): New.
909 (property_getName): New.
911 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
913 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
914 * class.c (__objc_update_classes_with_methods): New.
915 (objc_getClassList): Do not lock the class lock.
916 * methods.c (method_exchangeImplementations): New.
917 (method_setImplementation): New.
918 * objc/runtime.h (method_setImplementation): New.
919 (method_exchangeImplementations): New.
921 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
923 * Protocol.m: Include objc/runtime.h and
924 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
925 repeat Protocol's instance variables.
926 (struct objc_method_description_list): Do not define here.
927 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
928 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
929 selectors directly instead of getting names and then using strcmp.
930 ([descriptionForClassMethod:]): Same change.
931 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
932 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
933 to compare selectors directly instead of getting names and then
935 * objc/Protocol.h: Updated comments.
937 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
939 * init.c (__objc_init_protocol): New function which fixes up a
940 protocol's class pointer, registers it with the runtime, register
941 all protocol selectors and registers associated protocols too.
942 (objc_init_statics): Detect if we are initializing protocols, and
943 if so, use __objc_init_protocol instead of only fixing up the
945 (__objc_init_protocls): Use __objc_init_protocol.
946 * objc-private/module-abi-8.h: Updated comments.
947 * objc-private/runtime.h
948 (__objc_register_selectors_from_description_list): New.
949 * selector.c (__objc_register_selectors_from_description_list):
950 New. (struct objc_method_description_list): Declare.
951 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
952 when accessing the name of a method, which is now correctly a SEL.
953 ([-descriptionForClassMethod:]): Same change.
954 * protocols.c (protocol_getMethodDescription): Same change.
955 * objc/runtime.h: Updated comments.
956 (sel_registerTypedName): Fixed typo in function name.
958 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
961 * init.c (objc_init_statics): Do not skip the initialization of a
962 statics list if the first object has already been initialized; in
963 the case of Protocols, while the first one may have been
964 initialized, some others may not have been initialized yet.
966 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
968 * Makefile.in (OBJC_DEPRECATED_H): Added
969 objc_get_uninstalled_dtable, objc_object_alloc.h and
970 struct_objc_static_instances.h.
972 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
974 * encoding.c (method_copyReturnType): New.
975 (method_copyArgumentType): New.
976 (method_getReturnType): New.
977 (method_getArgumentType): New.
978 * methods.c (method_getDescription): New.
979 * objc/runtime.h (method_copyReturnType): New.
980 (method_copyArgumentType): New.
981 (method_getReturnType): New.
982 (method_getArgumentType): New.
983 (method_getDescription): New.
985 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
987 * encoding.c: Tidied up comments.
988 (objc_skip_variable_name): New static inline function.
989 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
990 the same code over and over.
991 (objc_alignof_type): Same.
992 (objc_aligned_size): Same.
993 (objc_promoted_size): Same.
994 (objc_skip_typespec): Same.
995 (objc_layout_structure_next_member): Same.
996 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
997 historical bug where objc_skip_offset would skip one byte even if
998 there is no offset: check that the first offset digit is actually
999 a digit before skipping it.
1000 (objc_skip_type_qualifiers): Mark as inline.
1001 (objc_skip_typespec): Mark as inline.
1003 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1005 * Makefile.in (C_SOURCE_FILES): Added methods.c.
1006 * encoding.c (method_getNumberOfArguments): New.
1007 (method_get_number_of_arguments): Call
1008 method_getNumberOfArguments.
1009 * ivars.c (ivar_getName): Check for NULL variable argument.
1010 (ivar_getOffset): Check for NULL variable argument.
1011 (ivar_getTypeEncoding): Check for NULL variable argument.
1012 (class_copyIvarList): New.
1014 * protocols.c (class_copyProtocolList): Check for Nil class_
1016 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1017 'struct objc_method_list *' instead of MethodList_t.
1018 (class_getMethodImplementation): New.
1019 (class_respondsToSelector): New.
1020 (class_getInstanceMethod): New.
1021 (class_getClassMethod): New.
1022 * objc/runtime.h: Updated comments.
1023 (class_copyIvarList): New.
1024 (class_getInstanceMethod): New.
1025 (class_getClassMethod): New.
1026 (class_getMethodImplementation): New.
1027 (class_respondsToSelector): New.
1028 (method_getName): New.
1029 (method_getImplementation): New.
1030 (method_getTypeEncoding): New.
1031 (class_copyMethodList): New.
1032 (method_getNumberOfArguments): New.
1034 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1036 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1037 instead of objc/objc-api.h.
1038 (objc_get_unknown_class_handler): Do not define.
1039 (class_isMetaClass): New.
1040 (class_getSuperclass): New.
1041 (class_getVersion): New.
1042 (class_setVersion): New.
1043 (class_getInstanceSize): New.
1044 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1045 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1046 objc_get_super_class.
1047 (get_ttype_entry): Use objc_getRequiredClass instead of
1049 * ivars.c (class_getClassVariable): New.
1050 * objects.c: Include objc/runtime.h, objc/thr.h and
1051 objc-private/module-abi-8.h instead of objc/objc-api.h
1052 * objc/runtime.h (class_getClassVariable): New.
1053 (class_isMetaClass): New.
1054 (class_getSuperclass): New.
1055 (class_getVersion): New.
1056 (class_setVersion): New.
1057 (class_getInstanceSize): New.
1058 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1061 (__CLS_ISINFO): Same.
1062 (__CLS_SETINFO): Same.
1064 (CLS_ISCLASS): Same.
1065 (CLS_ISRESOLV): Same.
1066 (CLS_SETRESOLV): Same.
1067 (CLS_ISINITIALIZED): Same.
1068 (CLS_SETINITIALIZED): Same.
1069 (CLS_GETNUMBER): Same.
1070 (CLS_SETNUMBER): Same.
1072 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1074 * archive.c: Do not include objc/objc.h.
1075 * class.c: Do not include objc/objc.h.
1076 * encoding.c: Include objc/runtime.h, ctype.h and
1077 objc-private/module-abi-8.h instead of objc/objc-api.h and
1079 * error.c: Do not include objc/objc.h.
1080 * gc.c: Include tconfig.h and objc/encoding.h only if
1082 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1083 objc/objc-api.h. Do not include objc/objc.h.
1084 * init.c: Do not include objc/objc.h.
1085 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1086 objc/thr.h instead of objc/objc-api.h. Do not include
1088 * linking.m: Tidied comment.
1089 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1090 Do not include objc/objc.h.
1091 * objects.c: Do not include objc/objc.h.
1092 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1093 * protocols.c: Do not include objc/objc.h.
1094 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1095 not include objc/objc.h.
1096 * selector.c: Do not include objc/objc.h.
1097 * sendmsg.c: Do not include objc/objc.h.
1098 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1099 Do not include objc/objc.h.
1100 * objc/objc-decls.h: Reindented code.
1101 * objc/runtime.h Include objc-decls.h. Updated comments.
1103 (objc_atomic_malloc): New.
1105 (objc_realloc): New.
1107 * objc-private/runtime.h: Updated comments.
1109 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1111 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1112 * objc-private/protocols.h: New.
1114 * init.c: Include objc-private/protocols.h.
1115 (__objc_exec_class): Call __objc_protocols_init on startup.
1116 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1117 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1118 of MethodList_t, and (struct objc_method *) instead of Method_t.
1119 * objc/deprecated/struct_objc_class.h: Define
1120 __objc_STRUCT_OBJC_CLASS_defined.
1121 * objc-private/module-abi-8.h (struct
1122 objc_method_description_list): New.
1123 (struct objc_class): Only define if
1124 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1125 * objc/runtime.h (class_getName): New.
1126 (objc_getProtocol): New.
1127 (objc_copyProtocolList): New.
1128 (class_addProtocol): New.
1129 (class_conformsToProtocol): New.
1130 (class_copyProtocolList): New.
1131 (protocol_conformsToProtocol): New.
1132 (protocol_isEqual): New.
1133 (protocol_getName): New.
1134 (protocol_getMethodDescription): New.
1135 (protocol_copyMethodDescriptionList): New.
1136 (protocol_getProperty): New.
1137 (protocol_copyPropertyList): New.
1138 (protocol_copyProtocolList): New.
1139 * class.c (class_getName): New.
1140 * selector.c (sel_isEqual): New.
1142 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1144 * selector.c (sel_getName): Return "<null selector>" for a NULL
1146 (sel_get_name): Return 0 for a NULL argument.
1147 * objc/runtime.h (sel_getName): Updated documentation.
1149 * objc-private/hash.h (class_hash_table): Unused declaration
1151 (module_hash_table): Same.
1152 * objc/deprecated/hash.h: Same changes.
1154 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1156 * class.c (objc_getClassList): New.
1157 (objc_getRequiredClass): New.
1158 (objc_getMetaClass): New.
1159 (objc_lookupClass): New.
1160 (objc_getClass): New.
1161 (__objc_get_unknown_class_handler): New.
1162 (objc_setGetUnknownClassHandler): New.
1163 (objc_get_class): Use __objc_get_unknown_class_handler.
1164 (objc_lookup_class): Call objc_getClass.
1165 * objc/objc-api.h: Updated comment and copyright notice.
1166 * objc/runtime.h: Updated comments.
1167 (objc_getClass): New.
1168 (objc_lookupClass): New.
1169 (objc_getMetaClass): New.
1170 (objc_getRequiredClass): New.
1171 (objc_getClassList): New.
1172 (objc_setGetUnknownClassHandler): New.
1173 (objc_get_unknown_class_handler): New.
1174 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1175 instead of __objc_runtime_INCLUDE_GNU as include guard.
1176 * objc-private/error.h (_objc_abort): Mark as noreturn.
1178 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1180 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1182 * objc/objc.h: Updated comments.
1183 * objc/runtime.h (object_getClass): New.
1184 (object_getClassName): New.
1185 (object_setClass): New.
1186 (class_getInstanceVariable): New.
1187 (object_getIndexedIvars): New.
1188 (object_getInstanceVariable): New.
1189 (object_setInstanceVariable): New.
1190 (object_getIvar): New.
1191 (object_setIvar): New.
1192 (ivar_getName): New.
1193 (ivar_getOffset): New.
1194 (ivar_getTypeEncoding): New.
1195 * objc-private/module-abi-8.h (struct objc_class): Added.
1196 * objects.c (object_getClassName): New.
1197 (object_setClass): New.
1199 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1201 * objc/objc.h: Updated comments.
1202 * objc/objc-api.h: (object_copy): Added one argument; use a
1203 #define to maintain backwards-compatibility. Moved
1204 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1205 objc_get_uninstalled_dtable into
1206 objc/deprecated/objc_get_uninstalled_dtable.h and
1207 objc/deprecated/objc_object_alloc.h. Include these files.
1208 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1209 * objc/deprecated/objc_object_alloc.h: New.
1210 * objc/runtime.h (set_getName): New.
1213 (sel_registerName): New.
1214 (sel_registerTypedName): New.
1216 (class_createInstance): New.
1218 (object_dispose): New.
1219 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1220 building the garbage collection version.
1221 (__objc_object_alloc): Removed.
1222 (__objc_object_copy): Removed.
1223 (__objc_object_dispose): Removed.
1224 (class_createInstance): New from code in class_create_instance.
1225 Cast second argument of GC_malloc_explicitly_typed. Use
1226 objc_calloc. Do not call _objc_object_alloc.
1227 (class_create_instance): Call class_createInstance.
1228 (object_copy): Added extraBytes argument. Do not call
1230 (object_dispose): Do not call _objc_object_dispose.
1231 * memory.c (objc_free): When using garbage collection, mark the
1233 * selector.c (sel_getName): New.
1234 (sel_get_name): Call sel_getName.
1236 (sel_get_type): Call sel_getType.
1237 (sel_registerName): New.
1238 (sel_register_name): Call sel_registerName.
1239 (sel_registerTypedName): New.
1240 (sel_register_typed_name): Call sel_registerTypedName.
1242 (sel_get_uid): Call sel_getUid.
1244 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1246 * objc/objc-api.h: Define Method, Method_t, Category and
1247 Category_t. Prevent including this file at the same time as
1248 objc/runtime.h. Updated comments.
1249 * objc/deprecated/struct_objc_method.h: Do not define Method,
1251 * objc/deprecated/struct_objc_category.h: Do not define Category,
1253 * objc-private/module-abi-8.h: New file containing a copy of all
1254 the structure definitions. Not used yet.
1255 * objc/encoding.h (objc_aligned_size): Removed duplicate
1256 declaration. Updated comments.
1257 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1258 Category, struct objc_method_description, _C_ID and similar,
1259 _C_CONST and similar and _F_CONST and similar. Added
1260 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1261 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1262 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1263 struct objc_struct_layout, objc_layout_structure,
1264 objc_layout_structure_next_member, objc_layout_finish_structure,
1265 objc_layout_structure_get_info. Prevent including this file at
1266 the same time as objc/objc-api.h.
1268 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1270 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1271 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1272 struct_objc_method_list.h, struct_objc_module.h,
1273 struct_objc_protocol_list.h, struct_objc_symtab.h.
1274 * objc/deprecated/struct_objc_category.h: New.
1275 * objc/deprecated/struct_objc_ivar.h: New.
1276 * objc/deprecated/struct_objc_ivar_list.h: New.
1277 * objc/deprecated/struct_objc_method.h: New.
1278 * objc/deprecated/struct_objc_method_list.h: New.
1279 * objc/deprecated/struct_objc_module.h: New.
1280 * objc/deprecated/struct_objc_protocol_list.h: New.
1281 * objc/deprecated/struct_objc_symtab.h: New.
1282 * objc/deprecated/struct_objc_static_instances.h: New.
1283 * objc/objc-api.h: Definitions of deprecated structures moved into
1284 the above header fragment files in objc/deprecated/. Include the
1285 files instead of definition the structures here. Updated
1287 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1288 (objc_set_enumeration_mutation_handler): Renamed to
1289 objc_setEnumerationMutationHandler.
1290 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1291 to objc_setEnumerationMutationHandler.
1292 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1293 objc_setExceptionMatcher.
1294 (objc_set_uncaught_exception_handler): Renamed to
1295 objc_setUncaughtExceptionHandler.
1296 * exception.c: Same changes.
1298 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1300 * objc-sync.c: Include objc-private/common.h.
1302 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1304 * objc-foreach.c: Include objc-private/common.h.
1305 * objc/deprecated/METHOD_NULL.h: New file.
1306 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1307 defining METHOD_NULL here.
1308 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1309 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1311 ([-respondsTo:]): Same change.
1312 * objc/objc-api.h (method_get_imp): Converted it into a normal
1313 function so that we can hide the internals of struct objc_method.
1314 * sendmsg.c (method_get_imp): Implemented.
1316 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1318 * objc/objc-api.h (struct objc_super, Super, Super_t,
1319 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1320 objc_msg_forward2): Declarations moved to objc/message.h. Include
1322 * objc/message.h: Added such declarations; updated comments.
1324 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1326 Implemented fast enumeration for Objective-C.
1327 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1328 (OBJC_H): Added runtime.h
1329 * objc-foreach.c: New file.
1330 * objc/runtime.h: New file.
1332 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
1334 * objc/deprecated/struct_objc_class.h: Add padding
1335 to avoid warning with -Wpadded.
1337 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1339 * encoding.c (objc_sizeof_type): Added support for vector type and
1340 for double long types.
1341 (objc_alignof_type): Same change.
1342 (objc_skip_typespec): Same change.
1343 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1344 instead of '!' since '!' is already used for _C_VECTOR.
1345 * objc/objc-api.h (_C_LNG_DBL): Added.
1347 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1349 * libobjc_entry.c: File removed.
1351 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
1353 * sendmsg.c (objc_msg_lookup): Remove inline.
1354 (objc_get_uninstalled_dtable): Likewise.
1355 * encoding.c (objc_skip_type_qualifiers): Likewise.
1356 (objc_skip_offset): Likewise.
1357 * archive.c (__objc_write_object): Likewise
1358 (__objc_write_class):
1359 (__objc_write_selector):
1361 (objc_read_unsigned_char):
1363 (objc_read_unsigned_short):
1366 (__objc_read_nbyte_uint):
1367 (objc_read_unsigned_int):
1368 (objc_read_unsigned_long):
1369 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1370 (objc_EXPORT): Likewise.
1371 * objc/message.h (objc-decls.h): Add include.
1372 * objc/objc-api.h: Mark API by objc_EXPORT.
1373 * libobjc.def (__objc_responds_to): Removed.
1375 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1377 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1379 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1380 objc/sarray.h replaced with a placeholder including the file from
1381 the deprecated/ directory.
1382 * objc-private/sarray.h: New file (private copy of sarray.h).
1383 * hash.c: Include <assert.h> instead of "assert.h"
1384 * sarray.c: Include <assert.h> instead of "assert.h". Include
1385 objc-private/sarray.h instead of objc/sarray.h.
1386 * selector.c: Include objc-private/sarray.h instead of
1388 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1389 instead of objc/sarray.h.
1390 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1392 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1394 * objc-private/objc-list.h (list_remove_elem): Unused function
1395 removed. (list_nth): Unused function removed. (list_find):
1396 Unused function removed. (list_lenght): Unused function removed.
1398 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1400 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1401 replaced with a placeholder including the file from the
1402 deprecated/ directory.
1403 * objc/objc-api.h: Updated includes.
1404 * objc/typedstream.h: Updated includes.
1405 * objc-private/hash.h: New file (private copy of hash.h).
1406 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1407 objc/objc-list.h replaced with a placeholder including the file
1408 from the deprecated/ directory.
1409 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1410 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1411 instead of objc/hash.h and objc/objc-list.h.
1412 * selector.c: Same change.
1413 * class.c: Added include <string.h>, which used to be implicitly included
1414 when hash.h was included.
1415 * exception.c: Same change.
1416 * objects.c: Same change.
1417 * sarray.c: Same change.
1418 * sendmsg.c: Same change.
1419 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1421 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1423 Implemented objc_sync_enter() and objc_sync_exit(), which are
1424 required by @synchronized() to work.
1425 * objc-sync.c: New file.
1426 * objc/objc-sync.h: New file.
1427 * objc-private/objc-sync.h: New file.
1428 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1429 Objective-C runtime startup.
1430 * Makefile.in: Added objc-sync.c and objc-sync.h.
1431 * configure.ac: Added GCC_CHECK_TLS.
1432 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1433 * configure: Regenerated.
1434 * config.h.in: Regenerated.
1436 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1438 * Makefile.in (%_gc.lo): New pattern rules to build the
1439 garbage-collected version of the library. Removed rules for
1440 specific files that are no longer needed. Standardized all rules.
1441 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1442 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1444 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1446 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1448 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1449 with Garbage Colletion.
1451 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1453 * memory.c: Do not include objc-private/runtime.h.
1455 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1457 * objc/deprecated/objc_malloc.h: New file.
1458 * objc/deprecated/objc_valloc.h: New file.
1459 * objc/objc-api.h: Include the files instead of defining
1460 objc_valloc, _objc_malloc() and similar.
1461 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1463 * memory.c: Removed the extra layer of indirection of _objc_malloc
1465 (objc_calloc): Use GC_malloc in the garbage-collected
1466 implementation as GC_malloc returns memory that is already freed.
1467 (objc_valloc): Deprecated.
1469 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1471 * objc/deprecated/objc_error.h: New file.
1472 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1473 defining objc_error and related.
1474 * error.c: New file. Added _objc_abort function which replaces
1475 objc_error. No change in functionality as they both print an
1477 * misc.c: File removed. Code moved into memory.c and error.c.
1478 * memory.c: New file.
1479 * objc-private/error.h: New file.
1480 * archive.c: Include objc-private/error.h and use _objc_abort
1481 instead of objc_error everywhere.
1482 * class.c: Same change.
1483 * encoding.c: Same change.
1484 * init.c: Same change, and simplified init_check_module_version.
1485 * memory.c: Same change.
1486 * sendmsg.c: Same change.
1487 * thr.c: Same change.
1488 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1489 (OBJ_H): Reordered list.
1490 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1491 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1492 (misc_gc.lo): Rule removed.
1493 (error_gc.lo): Rule added.
1494 (memory_gc.lo): Rule added.
1496 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1498 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1499 to check the API version. Added some comments.
1501 * objc-private/common.h: New file.
1502 * NXConstStr.m: Include objc-private/common.h.
1503 * Object.m: Same change.
1504 * Protocol.m: Same change.
1505 * archive.c: Same change.
1506 * class.c: Same change.
1507 * encoding.c: Same change.
1508 * exception.c: Same change.
1509 * gc.c: Same change.
1510 * hash.c: Same change.
1511 * init.c: Same change.
1512 * libobjc_entry.c: Same change.
1513 * linking.m: Same change.
1514 * misc.c: Same change (and added a comment).
1515 * nil_method.c: Same change.
1516 * objects.c: Same change.
1517 * sarray.c: Same change.
1518 * selector.c: Same change.
1519 * sendmsg.c: Same change.
1520 * thr.c: Same change.
1522 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1524 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1526 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1528 * archive.c: Removed not needed includes.
1529 * class.c: Same change.
1530 * hash.c: Same change.
1531 * misc.c: Same change.
1532 * nil_method.c: Same change.
1533 * objects.c: Same change.
1534 * sarray.c: Same change.
1535 * sendmsg.c: Same change.
1536 * thr.c: Same change.
1538 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1540 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1541 all the objc/*.h files.
1542 * objc-private/runtime.h: New file.
1543 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1544 files) instead of objc/runtime.h.
1545 * class.c: Same change.
1546 * hash.c: Same change.
1547 * init.c: Same change.
1548 * misc.c: Same change.
1549 * nil_method.c: Same change.
1550 * objects.c: Same change.
1551 * sarray.c: Same change.
1552 * selector.c: Same change.
1553 * sendmsg.c: Same change.
1554 * thr.c: Same change.
1556 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1558 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1559 'struct objc_selector' and 'sel_eq' moved here.
1560 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1561 'struct objc_procotol' moved here.
1562 * objc/deprecated/struct_objc_class.h: New file. Definition of
1563 'struct objc_class' moved here.
1564 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1566 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1567 * objc/message.h: New file. Definitions for relval_t, apply_t,
1568 arglist, arglist_t and objc_msg_lookup were moved here.
1569 * objc/objc.h: Include the above files instead of defining the
1570 corresponding structs, types and functions here. Added new opaque
1571 definitions for SEL and Class. Use Class and not 'struct
1572 objc_class *' in the definition of 'struct objc_object'.
1573 Commented all types defined in the file. Removed special
1574 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1576 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1577 objc_unexpected_exception.h.
1578 * objc/objc-api.h: Updated include of
1579 objc-unexpetected-exception.h
1580 * objc/objc-exception.h: Updated comments.
1581 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1582 files. Reindented list of files.
1584 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1586 * objc/objc-api.h (objc_trace): Unused variable removed.
1588 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1590 * objc/deprecated: New directory.
1591 * objc/deprecated/README: New file.
1592 * objc/README: New file.
1593 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1594 objc/typedstream.h replaced with a placeholder including the file
1595 from the deprecated/ directory.
1596 * objc/deprecated/objc-unexpected-exception.h: New file with the
1597 definition of _objc_unexpected_exception.
1598 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1599 instead of defining _objc_unexpected_exception.
1600 * objc/deprecated/Object.h: New file with the deprecated Object
1601 methods in a 'Deprecated' category.
1602 * objc/Object.h Include deprecated/Object.h instead of defining
1603 the deprecated methods.
1604 * Object.m: Moved deprecated methods into 'Deprecated' category.
1605 * objc-private: New directory.
1606 * objc-private/README: New file.
1607 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1608 (install-headers): Create installation directory for
1609 OBJC_DEPRECATED_H headers, and install them.
1611 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1613 * objc/objc-exception.h: Fixed include of objc.h.
1615 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1617 * objc/objc-exception.h: New file.
1618 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1619 (objc_set_exception_matcher): Implemented.
1620 (objc_exception_throw): Use the uncaught exception handler if set.
1621 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1623 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1624 up. Removed segmentation fault when value is 'nil'.
1625 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1627 * Makefile.in (exception.lo, exception_gc.lo): Use
1628 -Wno-deprecated-declarations when compiling.
1629 (OBJC_H): Added objc-exception.h
1631 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1633 * objc/typedstream.h: Deprecate all functions in the file. This
1635 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1636 [-awake]): Documented that these methods are deprecated. Added a
1637 brief description of the Object class and its relationship to the
1639 * Makefile.in: Compile archive.c and Object.m with
1640 -Wno-deprecated-declarations.
1642 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1644 Removed obsolete intermediate threading layer.
1645 * thr.c: Use __gthread_objc_xxx functions directly instead of
1646 __objc_thread_xxx ones.
1647 * objc/thr.h: Removed prototypes of no longer existing
1648 __objc_thread_xxx functions.
1649 * Makefile.in: Removed thr-objc.lo.
1650 * thr-dce.c: File removed.
1651 * thr-decosf1.c: File removed.
1652 * thr-irix.c: File removed.
1653 * thr-mach.c: File removed.
1654 * thr-objc.c: File removed.
1655 * thr-os2.c: File removed.
1656 * thr-posix.c: File removed.
1657 * thr-pthreads.c: File removed.
1658 * thr-rtems.c: File removed.
1659 * thr-single.c: File removed.
1660 * thr-solaris.c: File removed.
1661 * thr-vxworks.c: File removed.
1662 * thr-win32.c: File removed.
1663 * README.threads: File removed.
1664 * THREADS.MACH: File removed.
1667 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1669 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1671 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1673 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1674 Add a comment as to why, update FIXME comments.
1676 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1678 * makefile.dos: Obsolete file removed.
1680 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1682 * aclocal.m4: Regenerate.
1684 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1687 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1688 Cygwin and MinGW hosts.
1689 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1690 (libobjc.dll): Likewise.
1691 * configure: Regenerate.
1693 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1695 * configure: Regenerate.
1697 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1699 * sarray.c (sarray_free): Use old_buckets variable.
1700 * encoding.c (objc_layout_structure_next_member): Remove unused
1701 bfld_type_size variable.
1703 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1705 * configure.ac (AC_PREREQ): Bump to 2.64.
1707 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1709 * aclocal.m4: Regenerate.
1710 * configure: Regenerate.
1711 * config.h.in: Regenerate.
1713 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1715 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1717 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1719 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1721 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1723 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1725 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1727 2009-04-09 Nick Clifton <nickc@redhat.com>
1729 * sendmsg.c: Change copyright header to refer to version 3 of
1730 the GNU General Public License with version 3.1 of the GCC
1731 Runtime Library Exception and to point readers at the COPYING3
1732 and COPYING3.RUNTIME files and the FSF's license web page.
1733 * NXConstStr.m: Likewise.
1734 * Object.m: Likewise.
1735 * Protocol.m: Likewise.
1736 * archive.c: Likewise.
1737 * class.c: Likewise.
1738 * encoding.c: Likewise.
1739 * exception.c: Likewise.
1743 * libobjc_entry.c: Likewise.
1744 * linking.m: Likewise.
1746 * nil_method.c: Likewise.
1747 * objc/NXConstStr.h: Likewise.
1748 * objc/Object.h: Likewise.
1749 * objc/Protocol.h: Likewise.
1750 * objc/encoding.h: Likewise.
1751 * objc/hash.h: Likewise.
1752 * objc/objc-api.h: Likewise.
1753 * objc/objc-decls.h: Likewise.
1754 * objc/objc-list.h: Likewise.
1755 * objc/objc.h: Likewise.
1756 * objc/runtime.h: Likewise.
1757 * objc/sarray.h: Likewise.
1758 * objc/thr.h: Likewise.
1759 * objc/typedstream.h: Likewise.
1760 * objects.c: Likewise.
1761 * sarray.c: Likewise.
1762 * selector.c: Likewise.
1763 * thr-dce.c: Likewise.
1764 * thr-decosf1.c: Likewise.
1765 * thr-irix.c: Likewise.
1766 * thr-mach.c: Likewise.
1767 * thr-objc.c: Likewise.
1768 * thr-os2.c: Likewise.
1769 * thr-posix.c: Likewise.
1770 * thr-pthreads.c: Likewise.
1771 * thr-rtems.c: Likewise.
1772 * thr-single.c: Likewise.
1773 * thr-solaris.c: Likewise.
1774 * thr-vxworks.c: Likewise.
1775 * thr-win32.c: Likewise.
1777 * libobjc.def: Change copyright header to refer to version 3 of
1778 the GNU General Public License and to point readers at the COPYING3
1779 file and the FSF's license web page.
1780 * makefile.dos: Likewise.
1782 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1784 * Makefile.in: Change copyright header to refer to version
1785 3 of the GNU General Public License and to point readers at the
1786 COPYING3 file and the FSF's license web page.
1787 * configure.ac: Likewise.
1789 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1790 David Ayers <ayers@fsfe.org>
1793 * objc/objc-api.h (_objc_unexpected_exception): Declare
1794 new hook. Update copyright dates.
1795 * exception.c (objc_exception_throw): Use hook. Update
1797 * libobjc.def (_objc_unexpected_exception): Export hook.
1798 Update copyright dates.
1800 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1802 * configure: Regenerate.
1804 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1806 * configure: Regenerate.
1808 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1810 * Object.m (errno): Replaced by errno.h include.
1811 (compare): Cast self to id to prevent warning on comparison.
1812 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1814 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1815 * thr-win32.c (__objc_thread_detach): Remove type warning.
1816 (__objc_thread_id): Likewise.
1817 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1820 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1821 Steve Ellcey <sje@cup.hp.com>
1823 * configure: Regenerate for new libtool.
1824 * config.h.in: Regenerate for new libtool.
1826 2008-07-18 Matthias Klose <doko@ubuntu.com>
1828 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1830 2008-07-18 Matthias Klose <doko@ubuntu.com>
1832 * Makefile.in: Include ../boehm-gc/threads.mk.
1833 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1835 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1837 * Makefile.in (install-info): New stub target.
1839 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1841 * configure: Regenerate.
1843 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1845 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1846 if HAVE_GETIPINFO is not defined.
1848 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1850 * Object.m (compare): Add type id.
1851 * objc/Object.h: Likewise.
1852 * archive.c (objc_read_class): Use size_t to extend version to be
1853 size of pointer scalar width.
1854 * sendmsg.c (rtx): Undefine it before redefinition.
1855 (__objc_print_dtable_stats): Cast arguments to long as intended.
1857 2008-05-30 Julian Brown <julian@codesourcery.com>
1859 * exception.c (__objc_exception_class): Initialise as constant
1860 array for ARM EABI. Change macro to static const for non-ARM EABI.
1861 (ObjcException): Add note about structure layout. Remove landingPad
1862 and handlerSwitchValue for ARM EABI.
1863 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1865 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1866 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1867 ARM EABI unwinding support.
1868 (objc_exception_throw): Use memcpy to initialise exception class.
1870 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1872 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1873 (rs6000_special_round_type_align): Update.
1875 2008-05-09 Julian Brown <julian@codesourcery.com>
1877 * Makefile.in (LTLDFLAGS): New.
1878 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1880 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1883 * aclocal.m4: Regenerate.
1884 * configure: Regenerate.
1886 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1888 * configure: Regenerate.
1890 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1892 * configure.ac: Don't run config-ml.in directly.
1893 (multilib_arg): New.
1894 * configure: Regenerated.
1896 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1899 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1900 of _Unwind_Word for variables which are used in
1901 read_uleb128/read_sleb128.
1902 (PERSONALITY_FUNCTION): Likewise.
1904 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1906 * aclocal.m4: Regenerated.
1908 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1910 * configure.ac: Fix a typo in *-*-darwin clause.
1911 * configure: Regenerated.
1913 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1915 * configure.ac: Fix a typo.
1916 * configure: Regenerated.
1918 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1920 * configure: Regenerate.
1922 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1924 * Makefile.in: Replace all uses of libext with libsuffix.
1925 * configure.ac: Likewise.
1926 * configure: Regenerate.
1929 * Makefile.in: Remove all uses of $(libext).
1931 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1933 * Makefile.in: Remove all uses of $(libext).
1935 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1937 * configure: Regenerate.
1938 * aclocal.m4: Regenerate.
1940 2007-04-21 Andrew Ruder <andy@aeruder.net>
1942 * sendmsg.c (__objc_get_forward_imp): Call
1943 __objc_msg_forward2 for real.
1945 2007-04-09 Andrew Ruder <andy@aeruder.net>
1947 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1948 external libraries to provide a function that returns the real
1949 forwarding function based on both the selector and the receiver.
1950 * objc/objc-api.h: Define __objc_msg_forward2.
1952 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1954 * Makefile.in: Add dummy install-pdf target.
1956 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1958 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1961 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1963 * encoding.c (darwin_rs6000_special_round_type_align): New.
1965 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1967 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1968 * configure.ac: Use multi.m4 from aclocal rather than custom
1969 code. Use multi_basedir instead of toplevel_srcdir.
1970 * aclocal.m4: Regenerate.
1971 * configure: Regenerate.
1973 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1975 * Makefile.in: Added empty "pdf" target.
1977 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1979 * configure: Regenerate.
1981 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1983 * Makefile.in: Add install-html target. Add install-html to .PHONY
1985 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1988 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1990 2006-01-24 David Ayers <d.ayers@inode.at>
1993 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1994 and insure the new strings are '\0' termintated.
1996 2006-01-24 David Ayers <d.ayers@inode.at>
1999 * configure.ac: Add include directives for --enable-objc-gc.
2000 * Makefile.in: Ditto.
2001 * configure: Regenerate.
2003 * gc.c (__objc_class_structure_encoding): Increment the used bytes
2004 instead of the local pointer to them.
2006 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2009 * objc/objc-api.c (_C_COMPLEX): New define.
2010 * encoding.c (objc_sizeof_type): Handle _C_Complex.
2011 (objc_alignof_type): Likewise.
2012 (objc_skip_typespec): Likewise.
2014 2005-12-15 David Ayers <d.ayers@inode.at>
2017 * README (+load,+initialize): Fix documentation to reflect
2018 intended and implemented semantics for +load and +initialize.
2020 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2022 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2024 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2025 (rs6000_special_round_type_align): Update for the ABI fix.
2026 (objc_layout_finish_structure): Correct the encoding which is passed to
2029 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2032 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2033 but use the struct layout functions.
2034 (objc_alignof_type): Likewise.
2035 (objc_layout_structure): Handle _C_UNION_B also.
2036 (objc_layout_structure_next_member): Likewise.
2037 (objc_layout_finish_structure): Likewise.
2039 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2042 * objc/objc-api.h (_C_BOOL): New define.
2043 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2044 (objc_alignof_type): Likewise.
2045 (objc_skip_typespec): Likewise.
2047 2005-11-20 David Ayers <d.ayers@inode.at>
2050 * objc/hash.h: Remove deprecated hash API.
2051 * hash_compat.c: Remove.
2052 * Makefile.in: Remove reference to hash_compat.c.
2054 * configure.ac (VERSION): Bump library version to 2:0:0.
2055 * configure: Regenerate.
2057 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
2060 * thr-objc.c (_XOPEN_SOURCE): Define.
2062 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
2065 * objc/objc-api.h (struct objc_ivar): Move definition to
2068 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
2069 Rasmus Hahn <rassahah@neofonie.de>
2072 * archive.c (objc_write_type): Correct the element offset.
2073 (objc_read_type): Likewise.
2075 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2077 * All files: Update FSF address.
2079 2005-08-13 Marcin Koziej <creep@desk.pl>
2080 Andrew Pinski <pinskia@physics.uc.edu>
2083 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2085 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2087 * Makefile.in (extra_ldflags_libobjc): New.
2088 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2089 (libobjc_gc$(libext).la): Likewise.
2090 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2091 "-Wl,-single_module".
2092 * configure: Regenerate.
2093 * linking.m (_objcInit): Remove.
2095 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2098 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2100 2005-06-08 David Ayers <d.ayers@inode.at>
2102 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2103 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2104 objc/runtime.h, objc/sarray.h, objc/thr.h,
2105 objc/typedstream.h: Do not include Objective-C headers as
2108 2005-06-07 David Ayers <d.ayers@inode.at>
2110 * archive.c, init.c, selector.c: Include hash.h.
2111 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2112 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2113 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2114 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2115 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2116 Include Objective-C headers with quotes and objc/ directory
2119 2005-05-19 Richard Henderson <rth@redhat.com>
2121 * exception.c: Revert last change.
2123 2005-05-19 David Ayers <d.ayers@inode.at>
2125 * exception.c: Include tsystem.h for unwind.h.
2127 2005-05-09 Mike Stump <mrs@apple.com>
2129 * configure: Regenerate.
2131 2005-04-12 Mike Stump <mrs@apple.com>
2133 * configure: Regenerate.
2135 2005-03-21 Zack Weinberg <zack@codesourcery.com>
2137 * Makefile.in: Set gcc_version here.
2138 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2139 in definition of toolexeclibdir so that $(gcc_version) is expanded
2141 * aclocal.m4, configure: Regenerate.
2143 2005-03-03 David Ayers <d.ayers@inode.at>
2145 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2146 version reference. Correct typo.
2148 2005-03-02 David Ayers <d.ayers@inode.at>
2151 * Makefile.in (OBJS): Add hash_compat.lo.
2152 (OBJS_GC): Add hash_compat_gc.lo.
2153 (hash_compat_gc.lo): New target and rule.
2154 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2155 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2156 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2157 with objc_. Add deprecated non prefixed inlined versions.
2158 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2160 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2161 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2163 * hash_compat.c: New file.
2164 * archive.c: Update callers.
2166 * selector.c: Likewise.
2167 * libobjc.def: Add objc_ versions of hash functions.
2169 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2172 * Makefile.in (GTHREAD_FLAGS): Remove.
2173 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2174 * thr-objc.c: Include config.h.
2175 * configure.ac: Instead of looking at GCC's makefile, figure out if
2176 GTHREAD_FLAGS should be defined by looking at the `thread model'
2178 * configure: Regenerate.
2179 * config.h.in: Regenerate.
2181 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2184 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2185 (Determine CFLAGS for gthread): Use $host_subdir.
2186 * configure: Regenerate.
2187 * Makefile.in (host_subdir): New.
2190 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2193 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2195 Include limits.h and stdlib.h.
2196 Define BITS_PER_WORD.
2198 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
2200 * selector.c (__objc_init_selector_tables): Add missing void to
2203 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
2205 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2206 * configure, aclocal.m4: Regenerate.
2208 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2210 * configure: Regenerate for libtool change.
2212 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2214 * configure: Regenerate for libtool reversion.
2216 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2218 * configure: Regenerate for libtool change.
2220 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2222 * aclocal.m4, config.h.in: Regenerate.
2224 2004-10-08 Mike Stump <mrs@apple.com>
2225 Andrew Pinski <pinskia@physics.uc.edu>
2227 * aclocal.m4: Rename to ...
2228 * acinclude.m4: here and also use m4_include instead of sinclude.
2229 * aclocal.m4: Regenerate.
2230 * configure: Regenerate.
2231 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2232 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2234 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2236 * archive.c: Fix all the warnings about passing unsigned char*
2237 to char* and the other way too.
2239 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2242 * exception.c: Include config.h
2243 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2245 * configure.ac: Find out what exception handling code we use.
2246 * configure: Regenerate.
2247 * config.h.in: New file, regenerate.
2249 2004-09-16 Andrew Pinski <apinski@apple.com>
2251 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2253 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2255 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2256 ACX_NONCANONICAL_TARGET.
2257 * configure: Regenerate.
2259 2004-08-13 Ziemowit Laski <zlaski@apple.com>
2261 * objc/sarray.h: Hoist include of assert.h near the top of file,
2262 and mark the remainder of the file 'extern "C"'.
2264 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2266 * objc/Object.h: Move includes out of extern "C" blocks.
2267 * objc/encoding.h: Likewise.
2268 * objc/hash.h: Likewise.
2269 * objc/objc-api.h: Likewise.
2270 * objc/runtime.h: Likewise.
2271 * objc/sarray.h: Likewise.
2272 * objc/typedstream.h: Likewise.
2274 2004-08-12 Ziemowit Laski <zlaski@apple.com>
2276 * objc/NXConstStr.h: Update copyright date; bracket with
2277 'extern "C"' for C++ use; make include syntax consistent
2278 by using <...> instead of "..."; hoist <objc/...> includes
2279 above the 'extern "C"' block.
2280 * objc/Object.h: Likewise.
2281 * objc/Protocol.h: Likewise.
2282 * objc/encoding.h: Likewise.
2283 * objc/hash.h: Likewise.
2284 * objc/runtime.h: Likewise.
2285 * objc/sarray.h: Likewise.
2286 * objc/thr.h: Likewise.
2287 * objc/typedstream.h: Likewise.
2288 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2289 (objc_static_instances): For C++ case, do away with
2291 (objc_method): Hoist definition to file scope.
2292 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2293 class_get_instance_method, class_create_instance,
2294 class_get_class_name, class_get_instance_size,
2295 class_get_meta_class, class_get_super_class, class_get_version,
2296 class_is_class, class_is_meta_class, class_set_version,
2297 class_get_gc_object_type, class_ivar_set_gcinvisible,
2298 get_imp): Rename 'class' parameter to '_class'.
2299 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2300 * objc/objc.h: Update copyright date.
2301 (arglist_t): Provide a union tag.
2303 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2305 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2306 but instead use the attribute noreturn.
2308 2004-06-28 Zack Weinberg <zack@codesourcery.com>
2310 * encoding.c: Rename target_flags with a #define to avoid
2311 conflict with a prior declaration.
2313 2004-06-24 Andrew Pinski <apinski@apple.com>
2315 * objc/encoding.h: Wrap the functions with extern "C" for C++
2317 * objc/hash.h: Likewise.
2318 * objc/objc-api.h: Likewise.
2319 * objc/objc-list.h: Likewise.
2320 * objc/runtime.h: Likewise.
2321 * objc/sarray.h: Likewise.
2322 * objc/thr.h: Likewise.
2323 * objc/typedstream.h: Likewise.
2326 2004-06-21 Nick Clifton <nickc@redhat.com>
2328 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2331 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
2333 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2334 (exception_gc.lo): New.
2335 (OBJS_GC): Add exception_gc.lo.
2337 2004-06-17 Richard Henderson <rth@redhat.com>
2339 * exception.c: New file.
2340 * Makefile.in (exception.lo): New.
2343 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2345 * linking.m (_objcInit): New empty function
2348 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2350 * configure.ac: Support --enable-shared=libobjc.
2351 * configure: Regenerate.
2354 * configure.ac: Do not disable shared by default.
2355 * configure: Regenerate.
2357 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2359 * Protocol.m ([-isEqual:]): Small optimizations returning
2360 immediately if the argument is equal to self, and accessing
2361 the argument's name directly if it's a protocol.
2363 2004-06-03 David Ayers <d.ayers@inode.at>
2365 * Protocol.m ([-isEqual:]): Test the class of the argument.
2367 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2369 * configure.ac (includedir): Rename to ...
2371 * Makefile.in: s/includedir/includedirname/.
2374 * configure.ac (includedir): Set to "include"
2376 (libext) Set to empty except for Darwin.
2377 * configure: Regenerate
2378 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2379 s/include/$(includedir)/g.
2381 2004-05-25 Daniel Jacobowitz <drow@false.org>
2383 * Makefile.in: Add .NOEXPORT.
2385 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2387 Merge from the libobjc-branch
2388 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2390 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2392 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2394 * Makefile.in (OBJC_H): Add objc-deps.h.
2396 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2398 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2399 ([-hash], [-isEqual:]): New methods.
2401 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2403 * sarray.c (sarray_free): Add a better comment.
2405 2004-01-27 Adam Fedor <fedor@gnu.org>
2407 * hash.c (hash_add): Cast cachep to int.
2408 * selector.c (__sel_register_typed_name): Cast
2409 soffset_decode to int.
2411 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2413 * selector.c: Rename register_selectors_from_list to
2414 __objc_register_selectors_from_list. Update caller.
2415 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2416 while registering selectors. Use __sel_register_typed_name instead
2417 of sel_register_typed_name. Check for NULL method_name:s.
2418 (pool_alloc_selector): New function.
2419 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2420 selector structures.
2421 * sendmsg.c (class_add_method_list): Use
2422 __objc_register_selectors_from_list.
2423 * objc/runtime.h: Add __objc_register_selectors_from_list.
2425 2004-01-25 Adam Fedor <fedor@gnu.org>
2426 Nicola Pero <n.pero@mi.flashnet.it>
2427 Andrew Pinski <pinskia@physics.uc.edu>
2429 * objc/objc-decls.h: New file.
2430 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2431 (_objc_load_callback): Likewise.
2432 (_objc_object_alloc): Likewise.
2433 (_objc_object_copy): Likewise.
2434 (_objc_object_dispose): Likewise.
2436 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2438 * archive.c: s/__inline__/inline
2439 * sendmsg.c: Likewise.
2441 * encoding.c: Remove FIXME about the warning
2442 about unused variable.
2443 * sendmsg.c: Add a FIXME comment saying that
2444 this should be using libffi.
2446 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2449 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2451 * archive.c (objc_read_class): Initialize class_name.
2452 (objc_read_selector): Initialize selector_name.
2454 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2456 * Makefile.in (toolexecdir): Remove trailing space.
2458 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2461 * configure.ac: De-precious CC so multilibs work.
2462 * configure: Regenerate.
2464 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2466 * configure.ac: Restore toolexecdir.
2467 * Makefile.in: Restore toolexecdir.
2468 * configure: Regenerate.
2470 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2472 * configure.ac: Remove (unused) glibcpp_prefixdir.
2473 * configure: Regenerate.
2475 * configure.in: Rename to configure.ac.
2476 * Makefile.in: Update to match.
2478 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2479 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2480 * configure.in: Remove glibcpp_toolexecdir (unused).
2481 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2482 config.h or stamp-h (unused). Move one comment to the right place.
2483 * configure: Regenerate.
2484 * config.h.in: Remove (unused).
2486 * config.h.in: Regenerate with autoheader.
2488 * Makefile.in: Remove (unused) gcc_version_trigger.
2489 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2490 gcc_version_trigger.
2491 * configure: Regenerate.
2493 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2494 Sort file into sections. Remove dnl where appropriate. Fix
2496 * configure: Regenerate.
2498 * configure.in: Replace old AC_PROG_CC hack with new one.
2499 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2500 are no subdirectory output files, so this is fine). Change prereq
2502 * aclocal.m4: Include ../config/no-executables.m4.
2503 * configure: Regenerate with autoconf 2.59.
2505 * configure.in: Improve comments on gthread_cflags. Improve m4
2506 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2507 * configure: Regenerate.
2509 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2510 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2511 redundant checks for values of RANLIB, AR, INSTALL.
2512 * configure: Regenerate.
2514 * configure.in: Clean up handling of
2515 --enable-version-specific-runtime-libs and related variables;
2516 replace 'if test' with 'case' where reasonable. Fix comments.
2517 Remove useless libstdcxx_interface.
2518 * configure: Regenerate.
2520 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2521 Replace uses of target_alias with target_noncanonical.
2522 * aclocal.m4: Include ../config/acx.m4.
2523 * configure: Regenerate.
2524 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2525 Fix copyright statement.
2527 * configure.in: Hand-inline bulky, confusing macros from
2528 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2529 Update copyright notice. Remove stuff for automake, which isn't
2530 used in this directory. Remove emacs local variables.
2531 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2532 * configure: Regenerate.
2534 2004-03-16 Manfred Hollstein <mh@suse.com>
2536 * Makefile.in, configure.in, configure: Update copyright years.
2538 2004-03-15 Manfred Hollstein <mh@suse.com>
2540 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2541 definition from configure.in.
2542 * configure.in (PACKAGE): Add definition.
2543 (VERSION): Add definition; substitute it in output files.
2544 * configure: Re-generate.
2546 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2548 * objc/hash.h (hash_string, compare_strings):
2549 Add type-casts to make Objective-C++ happy.
2550 * objc/typedstream.h (objc_get_stream_class_version):
2551 Rename parameter from 'class' to 'class_name' to make
2552 Objective-C++ happy.
2554 2004-03-01 Michael Matz <matz@suse.de>
2556 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2558 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2560 * objc/objc-api.h (objc_super): The 'class' field shall
2561 be named 'super_class' #ifdef __cplusplus.
2563 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2566 * encoding.c (rs6000_special_round_type_align): Define.
2568 2004-01-14 Adam Fedor <fedor@gnu.org>
2571 * selector.c (__objc_register_instance_methods_to_class): Free
2572 new_list if not used.
2574 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2577 * sarray.c (sarray_free): Free array->is_copy_of latter.
2579 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2582 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2583 instance_methods if it's NULL.
2584 (descriptionForClassMethod): Likewise for class_methods.
2586 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2588 * Makefile.in (runtime-info.h): Remove -Wp.
2590 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2592 * Makefile.in (CC1OBJ): Remove.
2593 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2595 Use .m extension for temporary file.
2596 Remove assembler temp file.
2598 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2600 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2602 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2604 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2606 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2608 * configure: Regenerate.
2610 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2612 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2613 (libdir)/gcc-lib/ when installing.
2614 * configure: Regenerate.
2616 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2619 * sendmsg.c (get_imp): Fixed rare threading problem.
2620 (__objc_responds_to): Similar fixes.
2621 (objc_msg_lookup): Similar fixes.
2622 (__objc_init_install_dtable): Lock the runtime before checking if the
2625 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2627 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2628 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2629 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2630 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2631 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2632 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2633 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2634 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2635 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2636 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2637 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2639 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2640 Nicola Pero <n.pero@mi.flashnet.it>
2643 * init.c (class_superclass_of_class): New function.
2644 (create_tree_of_subclasses_inherited_from): Use it.
2645 (__objc_tree_insert_class): Likewise.
2646 (class_is_subclass_of_class): Likewise.
2648 2003-04-11 David Chad <davidc@freebsd.org>
2649 Loren J. Rittle <ljrittle@acm.org>
2652 * objc/hash.h (hash_string): Constify correctly.
2653 (compare_ptrs): Use direct compare.
2654 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2655 * objc/sarray.h: Global rename index to indx to avoid shadow.
2657 2003-03-12 Andreas Schwab <schwab@suse.de>
2659 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2660 glibcpp_toolexeclibdir.
2661 * configure: Rebuilt.
2663 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2665 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2667 * configure: Rebuilt.
2669 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2671 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2672 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2673 version_specific_libs is enabled.
2674 * configure: Rebuilt.
2676 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2678 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2679 (install-libs, install-headers): Prepend $(DESTDIR) to
2680 destination paths in all (un)installation commands.
2682 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2684 * thr-objc.c: Include coretypes.h and tm.h.
2686 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2688 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2690 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2692 * configure.in: Remove skip-this-dir support.
2693 * configure: Regenerate.
2695 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2697 * Makefile.in (all): Fix multilib parallel build.
2699 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2701 * sendmsg.c (nil_method): Declare not to take a variable number of
2703 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2704 (objc_msg_lookup_super): The same.
2706 2002-09-10 Jan Hubicka <jh@suse.cz>
2708 * nil_method.c (nil_method): No longer defined with variable
2711 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2713 * objc/encoding.h: Fix formatting.
2714 * objc/hash.h: Likewise.
2715 * objc/objc-api.h: Likewise.
2716 * objc/runtime.h: Likewise.
2717 * objc/thr.h: Likewise.
2718 * archive.c: Likewise.
2719 * class.c: Likewise.
2720 * encoding.c: Likewise.
2725 * nil_method.c: Likewise.
2726 * objects.c: Likewise.
2727 * sarray.c: Likewise.
2728 * selector.c: Likewise.
2729 * sendmsg.c: Likewise.
2730 * thr-mach.c: Likewise.
2733 2002-06-25 DJ Delorie <dj@redhat.com>
2735 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2736 GLIBCPP_TOPREL_CONFIGURE.
2737 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2738 * configure: Regenerate.
2740 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2742 * Object.m (forward, read, write): Fix unused parameter warnings.
2743 * encoding.c: Include <stdlib.h>.
2744 (target_flags): Mark with attribute unused.
2746 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2747 (__objc_generate_gc_type_description): Prototype.
2748 * selector.c (__objc_selector_max_index): Change to unsigned int.
2750 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2752 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2753 we always have a return value: if __objc_msg_forward does not
2754 supply a forwarding implementation, return the default
2755 __builtin_apply based one.
2757 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2759 * Object.m: Fix signed/unsigned warning.
2760 * Protocol.m: Likewise.
2761 * archive.c: Always include stdlib.h.
2762 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2763 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2764 Fix signed/unsigned warning.
2765 (objc_write_type, objc_read_type, objc_write_types,
2766 objc_read_types): Ensure ctype 8-bit safety.
2767 (__objc_no_write, __objc_no_read): Mark unused parameters.
2768 * class.c (class_table_setup): Specify void arg.
2769 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2770 objc_skip_typespec, objc_skip_offset,
2771 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2772 (objc_layout_structure_next_member): Ensure variables are
2774 * gc.c (__objc_generate_gc_type_description,
2775 class_ivar_set_gcinvisible): Mark unused parameters.
2776 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2778 (__objc_init_protocols) Fix signed/unsigned warning.
2779 * nil_method.c (nil_method): Mark unused parameters.
2780 * thr.h (objc_thread_callback): Specify void arg.
2781 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2782 signed/unsigned warning.
2783 (sarray_free): Fix formatting.
2784 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2785 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2787 2002-06-09 Andreas Jaeger <aj@suse.de>
2789 * encoding.c (objc_layout_structure_next_member): Remove unused
2792 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2794 * Makefile.in (SHELL): Set to @SHELL@.
2796 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2798 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2800 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2801 * configure: Regenerate.
2803 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2805 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2806 script entry, and set LD to it when configuring multilibs.
2807 * configure: Rebuilt.
2809 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2811 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2813 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2816 * objc/objc-api.h (struct objc_protocol_list): Change type of
2817 member count from int to size_t.
2819 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2822 * aclocal.m4: Replace with version copied from libstdc++-v3.
2823 * configure.in: Update for changes to aclocal and Makefile.
2824 * configure: Regenerate.
2825 * Makefile.in: Correct install of multilibs and shared libs, use
2826 INSTALL_DATA for include files.
2828 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2830 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2831 categories - when an unclaimed category was found, the loop was
2832 doing two steps forward instead of one, so that in certain cases
2833 it was failing to properly load all the categories. (Reported
2834 with fix by Alexander Malmberg <alexander@malmberg.org>).
2836 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2838 * encoding.c: Add target_flags.
2840 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2842 * objc/objc-api.h (_C_VECTOR): New.
2844 * encoding.c (VECTOR_TYPE): New.
2846 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2848 * class.c: Rewritten the class table to use optimized, lock-free
2849 lookup. This more than doubles the speed of class method
2850 invocations. (class_table_setup), (class_table_insert),
2851 (class_table_replace), (class_table_get_safe),
2852 (class_table_next), (class_table_print),
2853 (class_table_print_histogram): New functions.
2854 (__objc_init_class_tables): Use class_table_setup.
2855 (__objc_add_class_to_hash): Use class_table_get_safe and
2856 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2857 assert the existence of the table; do not lock the runtime; use
2858 class_table_get_safe. (objc_next_class): Use class_table_next.
2859 (__objc_resolve_class_links): Use class_table_next.
2860 (class_pose_as): Use class_table_replace.
2862 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2864 * gc.c: Removed the DEBUG declaration.
2866 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2868 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2869 rather than through objc_thread_id, to save a function call.
2870 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2873 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2875 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2876 to cast an id to a Class, which can not be done. Make the check
2877 by using CLS_ISMETA on the class pointer instead.
2878 (object_is_meta_class): Similar fix.
2880 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2882 * configure.in (AC_EXEEXT): Work around in case it expands to
2883 nothing, as in autoconf 2.50.
2884 * acinclude.m4: Likewise.
2885 * configure: Rebuilt.
2887 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2889 * THREADS: Explain that when we compile libobjc inside GCC, we
2890 always use thr-objc.c as a backend, which uses GCC's thread code.
2892 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2894 * init.c (__objc_send_message_in_list): When setting a new entry
2895 in __objc_load_methods use the method IMP as key, but check to see
2896 if the method is in the hashtable by looking at the IMP also.
2897 Also ... call the method after adding it to the hashtable rather
2898 than before ... thus preventing an obscure possibility of infinite
2899 recursion if a +load method itself loads a subclass.
2901 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2903 * init.c (__objc_send_message_in_list): When setting a new entry
2904 in __objc_load_methods use the method name as key, not the method
2905 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2907 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2909 * objc-features.texi: Move to ../gcc/objc.texi.
2911 * Makefile.in: Don't generate documentation from
2914 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2916 * fdl.texi: New file.
2917 * objc-features.texi: Simplify.
2918 * Makefile.in: Adjust accordingly.
2920 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2922 * objc-features.texi: Use the GFDL.
2924 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2926 * encoding.c (REAL_TYPE): Define.
2928 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2930 * encoding.c (TYPE_MODE): Define.
2932 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2934 * thr.c (objc_thread_add): New function.
2935 (objc_thread_remove): Ditto.
2936 * objc/thr.h: Declare them.
2937 * libobjc.def: Mention them.
2939 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2941 * objc-features.texi: Document the @compatibility_alias compiler
2942 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2944 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2946 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2948 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2950 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2951 we're not interested in the result and they might fail.
2952 * configure: Regenerated.
2954 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2956 * objc-features.texi: Use @email.
2958 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2960 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2963 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2965 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2966 determines the value dynamically.
2968 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2970 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2971 libraries to provide a function that returns the real forwarding
2972 function. This can alleviate problems __builtin_apply() and
2973 friends have on various platforms. (Solution suggested by Helge
2976 * objc/objc-api.h: Define __objc_msg_forward.
2978 * sendmsg.c: Define gen_rtx_REG.
2980 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2982 * thr-rtems.c: New file. Stub to compile.
2984 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2986 * configure: Rebuilt with new libtool.m4.
2988 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2990 * configure.in: Create a config.h file. Check for <sched.h>.
2991 * configure: Regenerate.
2993 * config.h.in: Check for <sched.h>.
2995 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2997 * configure: Regenerate after change to ../libtool.m4.
2999 2000-08-14 Andreas Schwab <schwab@suse.de>
3001 * objc-features.texi (Top): Move @menu at end of node.
3003 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
3005 * objc-features.texi: Move @node Top before @menu.
3007 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3009 * objc-features.texi: Documented the new -fconstant-string-class
3012 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3014 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3015 improve the Posix thread support for Objective-C.
3017 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3019 * aclocal.m4: Replace copy of ../libtool.m4 with
3020 sinclude(../libtool.m4).
3022 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
3024 * configure.in: Added libtool support; build shared libraries
3025 if --enable-shared was passed on command line.
3026 * Makefile.in: Modified most compilation commands to use libtool.
3027 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3028 libtool distribution.
3030 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3032 * sarray.c, Object.m: Removed the explicit prototypes for strlen
3033 and memcpy on 64-bit platforms (Suggested by Rodney Brown
3036 2000-05-12 H.J. Lu (hjl@gnu.org)
3038 * Makefile.in (GTHREAD_FLAGS): New.
3039 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3040 (OBJC_THREAD_FILE): Changed to thr-objc.
3042 * configure.in (GTHREAD_FLAGS): New, check and replace it for
3044 (OBJC_THREAD_FILE): Removed.
3048 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3050 * objc/hash.h: Include string.h.
3052 2000-04-15 David Edelsohn <edelsohn@gnu.org>
3054 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3056 2000-04-12 Jakub Jelinek <jakub@redhat.com>
3058 * Object.m (strlen): Provide prototype on all 64bit platforms,
3060 * sarray.c (memcpy): Likewise.
3061 * encoding.c (objc_layout_finish_structure): Don't use
3062 ROUND_TYPE_ALIGN on sparc.
3064 * encoding.c (objc_layout_structure_next_member): Do the whole
3065 procedure even for the first member, so that we get correct
3068 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3070 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3073 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3075 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3077 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3079 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3081 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3083 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3084 the compiler when building C code.
3086 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3088 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3089 libdir, libsubdir and tooldir.
3091 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3093 * init.c (__objc_force_linking): Make global.
3095 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3097 * configure.in (AC_EXEEXT): Remove call.
3098 (compiler_name): Explicitly check with no extension and .exe
3100 * configure: Regenerate.
3102 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3104 * Makefile.in (CC1OBJ): Define in terms of CC.
3105 (runtime-info.h): Use.
3107 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3109 * objc-features.texi: Updated the URL to Boehm's GC page.
3111 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3113 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3114 the char as being signed (patch from Daniel Jacobowitz
3117 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3119 * configure.in (AC_PREREQ): Update to 2.13.
3120 (AC_EXEEXT): Call to find possible file extension.
3121 (compiler_name): Use.
3122 * configure: Regenerate.
3124 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3126 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3128 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3130 * configure.in (thread_file): Correct and simplify code to find
3132 * configure: Rebuilt.
3134 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3136 * configure.in (compiler_name): Add check to detect if this
3137 language's compiler has been built.
3138 * configure: Regenerate.
3140 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3142 * configure.in: Use AC_PREREQ(2.12.1).
3144 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3146 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3148 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3150 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3152 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3154 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3156 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3158 * objc-features.texi (Top): Changed the email address.
3159 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3161 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3163 * encoding.c: Redefine get_inner_array_type to get the first entry
3166 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3168 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3169 (objc_get_type_qualifiers): Similarly.
3170 * objc/encoding.h (_C_BYREF): Define.
3173 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3175 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3176 works out on 64-bit systems.
3178 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3180 * Makefile.in (INCLUDES): Make it multilib-friendly.
3182 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3184 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3186 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3187 Jeffrey A Law (law@cygnus.com)
3189 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3190 (FLAGS_TO_PASS): Added.
3191 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3193 * archive.c: Change config.h to tconfig.h.
3195 * configure.in: Find gcc's object directory even for multilibs.
3197 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
3199 * configure.in: Escape ^ in grep string.
3200 * configure: Rebuilt.
3202 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3204 * All .h files pushed down into the objc/ subdirectory.
3205 * Makefile.in (copy_headers): Corresponding changes.
3206 * configure.in (AC_INIT): Corresponding changes.
3207 * configure: Rebuilt.
3209 1998-09-30 Ben Elliston <bje@cygnus.com>
3210 Jeff Law <law@cygnus.com>
3212 * Makefile.in: Rewrite.
3214 * configure.in: Likewise.
3216 * configure: Regenerate.
3218 * All .c files. Remove "objc" prefix when including objc header
3219 files. Include tconfig.h, not ../tconfig.h.
3221 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3223 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3224 (get_inner_array_type): Define.
3226 1998-09-21 Ben Elliston <bje@cygnus.com>
3228 * New directory. Moved files from ../gcc/objc.